-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 781476 - Cross-compartment wrap same-origin objects with PreCreat…
…e even if PreCreate requests one wrapper per scope. r=mrbkap a=lsblakk
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script type="application/javascript"> | ||
function makeEvent() { | ||
var evt = new Event("MouseEvents"); | ||
evt.expando = 42; | ||
is(evt.expando, 42, "Expando properly visible in iframe"); | ||
return evt; | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<!-- | ||
https://bugzilla.mozilla.org/show_bug.cgi?id=781476 | ||
--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Test for Bug 781476</title> | ||
<script type="application/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=781476">Mozilla Bug 781476</a> | ||
<p id="display"></p> | ||
<div id="content" style="display: none"> | ||
<iframe onload="go();" id="ifr" src="file_bug781476.html"></iframe> | ||
</div> | ||
<pre id="test"> | ||
<script type="application/javascript"> | ||
|
||
/** Test for Bug 781476 **/ | ||
SimpleTest.waitForExplicitFinish(); | ||
|
||
function go() { | ||
var iwin = document.getElementById('ifr').contentWindow; | ||
iwin.is = is; | ||
var evt = iwin.makeEvent(); | ||
is(evt.expando, 42, "Expando properly visible in caller frame"); | ||
SimpleTest.finish(); | ||
} | ||
|
||
|
||
</script> | ||
</pre> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters