mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
Bug 1560294 - Relax frameId check in Page.navigate. r=remote-protocol-reviewers,ato
This assertion was mostly meant to warn about this being unimplemented when you were trying to target an iframe. If frameId refers to the top level tab document, that is fine. This method will work as expected. Differential Revision: https://phabricator.services.mozilla.com/D35426 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
eac6a82151
commit
441a04f86b
@ -51,7 +51,7 @@ class Page extends ContentProcessDomain {
|
||||
}
|
||||
|
||||
async navigate({url, referrer, transitionType, frameId} = {}) {
|
||||
if (frameId) {
|
||||
if (frameId && frameId != this.content.windowUtils.outerWindowID) {
|
||||
throw new UnsupportedError("frameId not supported");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user