mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix dom/tests/mochitest/general/file_frameElementWrapping.html to deal with proxies. r=mrbkap
This commit is contained in:
parent
c9ad413f3a
commit
0148dfb36c
@ -1,10 +1,10 @@
|
||||
<html>
|
||||
<script>
|
||||
function check(elt, expectXOW, message) {
|
||||
function check(elt, expectProxy, message) {
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIDOMWindowUtils);
|
||||
var result = ((utils.getClassName(elt) === 'XPCCrossOriginWrapper') === expectXOW)
|
||||
var result = ((utils.getClassName(elt) === 'Proxy') === expectProxy)
|
||||
? "PASS"
|
||||
: "FAIL";
|
||||
|
||||
|
@ -26,7 +26,7 @@ function go() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIDOMWindowUtils);
|
||||
is(utils.getClassName(win), "XPCCrossOriginWrapper", "correctly wrap frame elements");
|
||||
is(utils.getClassName(win), "Proxy", "correctly wrap frame elements");
|
||||
})()
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user