summaryrefslogtreecommitdiffstats
path: root/dom/xbl/test/test_bug310107.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/xbl/test/test_bug310107.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/xbl/test/test_bug310107.html')
-rw-r--r--dom/xbl/test/test_bug310107.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/dom/xbl/test/test_bug310107.html b/dom/xbl/test/test_bug310107.html
new file mode 100644
index 000000000..17e642b97
--- /dev/null
+++ b/dom/xbl/test/test_bug310107.html
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=310107
+-->
+<head>
+ <title>Test for Bug 310107</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+</head>
+<body>
+<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=310107">Mozilla Bug 310107</a>
+<p id="display"></p>
+<div id="content" style="display: none">
+
+</div>
+<pre id="test">
+<script class="testbody" type="text/javascript">
+/** Test for Bug 310107 **/
+SimpleTest.waitForExplicitFinish();
+
+var win = window.open("bug310107-resource.xhtml", "", "width=10, height=10");
+
+function runTest() {
+ window.el = win.document.getElementById("bar");
+ window.doc = win.document;
+ is(window.el.prop, 2, "Unexpected prop value at load");
+
+ win.location = "data:text/html,<body onload='window.opener.loadDone()'>";
+}
+
+function loadDone() {
+ is(window.el.prop, 2, "Prop still 2 because we're in bfcache");
+ is(window.el, window.doc.getElementById("bar"),
+ "document didn't get bfcached?");
+
+ // Remove our node from the DOM
+ window.el.parentNode.removeChild(window.el);
+
+ is(window.el.prop, undefined, "Binding should have been detached");
+ is(typeof(window.el.prop), "undefined", "Really undefined");
+
+ win.close();
+
+ SimpleTest.finish();
+}
+
+
+</script>
+</pre>
+</body>
+</html>
+