-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
HTML: BarProp objects #15815
HTML: BarProp objects #15815
Conversation
Also describe what happens when the browsing context is discarded. Tests: web-platform-tests/wpt#15815. Fixes #2579.
function assert_barProps(barPropObjects, visible) { | ||
let lastBarProp = undefined; | ||
for (let barProp of barPropObjects) { | ||
const currentBarProp = barProp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const currentBarProp of barPropObjects
?
barProps = ["locationbar", "menubar", "personalbar", "scrollbars", "statusbar", "toolbar"], | ||
barPropObjects = barProps.map(val => frameW[val]); | ||
|
||
assert_barProps(barPropObjects, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly it's pretty surprising these count as visible for an iframe. Something for whatwg/html#4431 I suppose.
assert_identical_barProps(barProps, openee, barPropObjects, true); | ||
|
||
openee.onunload = t.step_func(() => { | ||
assert_barProps(barPropObjects, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whenever you use assert_barProps
instead of assert_identical_barProps
, I wonder to myself: does this mean they're supposed to have changed since the last time? If so, replacing it with an assertion that they are supposed to be different would be good. If not, replacing it with assert_identitical_barProps
would be good.
Also describe what happens when the browsing context is discarded. Tests: web-platform-tests/wpt#15815. Follow-up: #4431. Fixes #2579.
For whatwg/html#2579.