New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Switch To Parent Frame" has to check for top-level browsing context before the parent browsing context open check #1544
Comments
Oh I misunderstood this when you mentioned it on matrix; I was looking at the later steps. This is clearly a spec bug, "no longer open" isn't a state that |
Ok, so for the upcoming tests I will keep the behavior of current webdriver clients that is just a no-op. We can refine the tests later whenever we have made a change here. |
…nt Frame" if current browsing context is already the top-level one. r=webdriver-reviewers,jgraham Tests for proposed WebDriver changes: w3c/webdriver#1544 Differential Revision: https://phabricator.services.mozilla.com/D93763
…urrent browsing context is already the top-level one. Tests for proposed WebDriver changes: w3c/webdriver#1544 Differential Revision: https://phabricator.services.mozilla.com/D93763 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1671622 gecko-commit: 8c6fc4ee769c8069381ca80846359a718f62535b gecko-reviewers: webdriver-reviewers, jgraham
…urrent browsing context is already the top-level one. Tests for proposed WebDriver changes: w3c/webdriver#1544 Differential Revision: https://phabricator.services.mozilla.com/D93763 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1671622 gecko-commit: 8c6fc4ee769c8069381ca80846359a718f62535b gecko-reviewers: webdriver-reviewers, jgraham
Fixed by #1556. |
…nt Frame" if current browsing context is already the top-level one. r=webdriver-reviewers,jgraham Tests for proposed WebDriver changes: w3c/webdriver#1544 Differential Revision: https://phabricator.services.mozilla.com/D93763
This is a follow-up from issue #1539.
If the currently selected browsing context is already the top-level browsing context the call to "Switch To Parent Frame" should be a no-op. That's how the Chromedriver behaves currently. But right now when reading the spec the first step of the remote steps will actually error out:
https://w3c.github.io/webdriver/#switch-to-parent-frame
If the current browsing context is already the top browsing context, the parent will be
null
. As such the command should return a "no such window" error.CC'ing @jgraham for his opinion.
The text was updated successfully, but these errors were encountered: