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

Give WindowProxy objects an innerObject hook. #9584

Merged
merged 1 commit into from Feb 9, 2016

Conversation

@Ms2ger
Copy link
Contributor

Ms2ger commented Feb 9, 2016

This ensures that UncheckedUnwrap(obj, /* stopAtOuter = */ true) will indeed
stop at the WindowProxy ("outer window", in older SpiderMonkey jargon), which
is necessary to prevent raw Window ("inner window") objects becoming visible
to JavaScript code, or tripping assertions that we don't do that.

Review on Reviewable

This ensures that UncheckedUnwrap(obj, /* stopAtOuter = */ true) will indeed
stop at the WindowProxy ("outer window", in older SpiderMonkey jargon), which
is necessary to prevent raw Window ("inner window") objects becoming visible
to JavaScript code, or tripping assertions that we don't do that.
@highfive
Copy link

highfive commented Feb 9, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@Ms2ger
Copy link
Contributor Author

Ms2ger commented Feb 9, 2016

r? @jdm

@jdm
Copy link
Member

jdm commented Feb 9, 2016

@bors-servo: r+
I compared this against Gecko's NewOuterWindowProxy and it looks good.

@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

📌 Commit d79660e has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

Testing commit d79660e with merge 2d1293d...

bors-servo added a commit that referenced this pull request Feb 9, 2016
Give WindowProxy objects an innerObject hook.

This ensures that UncheckedUnwrap(obj, /* stopAtOuter = */ true) will indeed
stop at the WindowProxy ("outer window", in older SpiderMonkey jargon), which
is necessary to prevent raw Window ("inner window") objects becoming visible
to JavaScript code, or tripping assertions that we don't do that.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9584)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

💔 Test failed - linux-rel

@jdm
Copy link
Member

jdm commented Feb 9, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

Previous build results for android, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

💔 Test failed - linux-rel

@jdm
Copy link
Member

jdm commented Feb 9, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

Previous build results for android, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 9, 2016

@bors-servo bors-servo merged commit d79660e into servo:master Feb 9, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@Ms2ger Ms2ger deleted the Ms2ger:WindowProxy branch Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.