/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis *file,Youcanobtainoneathttp://mozilla.org/MPL/2.0/.
*/
// For bug 773980, test that Components.utils.isDeadWrapper works as expected.
let contentDocDead = await SpecialPowers.spawn(
browser,
[],
async function () {
let iframe = content.document.createElement("iframe");
content.document.body.appendChild(iframe);
let doc = iframe.contentDocument;
let innerWindowId = iframe.contentWindow.windowGlobalChild.innerWindowId;
let { TestUtils } = ChromeUtils.importESModule( "resource://testing-common/TestUtils.sys.mjs"
);
let promise = TestUtils.topicObserved("inner-window-nuked", subject => {
let id = subject.QueryInterface(Ci.nsISupportsPRUint64).data; return id == innerWindowId;
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.