mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-21 20:03:08 +09:00
17 lines
811 B
JavaScript
17 lines
811 B
JavaScript
// ----------------------------------------------------------------------------
|
|
// Test whether setting a new property in InstallTrigger then persists to other
|
|
// page loads
|
|
add_task(function* test() {
|
|
yield BrowserTestUtils.withNewTab({ gBrowser, url: TESTROOT + "enabled.html" }, function* (browser) {
|
|
yield ContentTask.spawn(browser, null, () => {
|
|
content.wrappedJSObject.InstallTrigger.enabled.k = function() { };
|
|
});
|
|
|
|
BrowserTestUtils.loadURI(browser, TESTROOT2 + "enabled.html");
|
|
yield BrowserTestUtils.browserLoaded(browser);
|
|
yield ContentTask.spawn(browser, null, () => {
|
|
is(content.wrappedJSObject.InstallTrigger.enabled.k, undefined, "Property should not be defined");
|
|
});
|
|
});
|
|
});
|
|
// ----------------------------------------------------------------------------
|