info("Wait until the iframe picker button is visible"); try {
await waitFor(() => toolbox.doc.getElementById("command-button-frames"));
} catch (e) { if (isFissionEnabled() && !isEveryFrameTargetEnabled()) {
ok( true, "Remote frames are not displayed in iframe picker if Fission is enabled but EFT is not"
); return;
} throw e;
}
info("Check `document` property when no specific frame is focused");
let documentPropertyValue = getDocumentPropertyValue(panel);
ok(
documentPropertyValue.startsWith("HTMLDocument https://example.com"),
`Got expected "document" value (${documentPropertyValue})`
);
info( "Select the frame in the iframe picker and check that the document property is updated"
); // Wait for the DOM panel to refresh. const store = getReduxStoreFromPanel(panel);
let onPropertiesFetched = waitForDispatch(store, "FETCH_PROPERTIES");
info( "Select the top-level frame and check that the document property is updated"
);
onPropertiesFetched = waitForDispatch(store, "FETCH_PROPERTIES");
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 ist noch experimentell.