mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 970290 - Rename NoWhitelist to NoPermission. r=fabrice
We no longer use whitelist to control the permission. Test against no permission instead. --HG-- extra : rebase_source : 8fd77b2588a07bc17363b49d104b3b08ee2293a5
This commit is contained in:
parent
1cb56f4f43
commit
592a198730
@ -16,7 +16,7 @@ MOCHITEST_FILES = \
|
||||
browserElementTestHelpers.js \
|
||||
test_browserElement_NoAttr.html \
|
||||
test_browserElement_NoPref.html \
|
||||
test_browserElement_NoWhitelist.html \
|
||||
test_browserElement_NoPermission.html \
|
||||
browserElement_LoadEvents.js \
|
||||
file_browserElement_LoadEvents.html \
|
||||
test_browserElement_inproc_LoadEvents.html \
|
||||
|
@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=710231
|
||||
|
||||
<!--
|
||||
Test that an iframe with the |mozbrowser| attribute does not emit
|
||||
mozbrowserX events when this page is not in the whitelist.
|
||||
mozbrowserX events when this page does not have the "browser" permission.
|
||||
-->
|
||||
|
||||
<script type="application/javascript;version=1.7">
|
||||
@ -23,9 +23,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=710231
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
function runTest() {
|
||||
browserElementTestHelpers.setEnabledPref(true);
|
||||
browserElementTestHelpers.addPermissionForUrl('http://foobar.com');
|
||||
|
||||
var iframe = document.createElement('iframe');
|
||||
SpecialPowers.wrap(iframe).mozbrowser = true;
|
||||
document.body.appendChild(iframe);
|
||||
@ -42,6 +39,8 @@ function runTest() {
|
||||
iframe.src = browserElementTestHelpers.emptyPage1;
|
||||
}
|
||||
|
||||
browserElementTestHelpers.setEnabledPref(true);
|
||||
SpecialPowers.removePermission("browser", document);
|
||||
addEventListener('testready', runTest);
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user