Skip to content
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

Merged
merged 2 commits into from Mar 15, 2019
Merged

HTML: BarProp objects #15815

merged 2 commits into from Mar 15, 2019

Conversation

annevk
Copy link
Member

@annevk annevk commented Mar 13, 2019

annevk added a commit to whatwg/html that referenced this pull request Mar 13, 2019
Also describe what happens when the browsing context is discarded.

Tests: web-platform-tests/wpt#15815.

Fixes #2579.
@jdm jdm assigned domenic and unassigned jdm Mar 13, 2019
function assert_barProps(barPropObjects, visible) {
let lastBarProp = undefined;
for (let barProp of barPropObjects) {
const currentBarProp = barProp;
Copy link
Member

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);
Copy link
Member

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);
Copy link
Member

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.

annevk added a commit to whatwg/html that referenced this pull request Mar 14, 2019
Also describe what happens when the browsing context is discarded.

Tests: web-platform-tests/wpt#15815.

Follow-up: #4431.

Fixes #2579.
@domenic domenic merged commit d256b6d into master Mar 15, 2019
@annevk annevk deleted the annevk/barprop branch March 16, 2019 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants