const browsingContext = newTab.linkedBrowser.browsingContext; Assert.equal(
browsingContext.opener, null, "A tab opened with noopener shouldn't have an opener"
); Assert.ok(
browsingContext.crossGroupOpener, "A cross origin A tab opened with noopener should have a crossGroupOpener"
); Assert.equal(
browsingContext.crossGroupOpener,
openerBrowsingContext, "The crossGroupOpener should be the same as the actual opener"
);
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.