Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDispatch mozbrowsershowmodalprompt event for alert() #8352
Closed
Labels
Comments
|
Actually, my initial suggestion for solving this wasn't correct. We should add any required information to the |
|
I'd like to give it a try; I guess I should use a js::jsapi::JSObject to represent the "detail" property, correct? |
|
For that, we should build on the changes in #8347. |
bors-servo
added a commit
that referenced
this issue
Dec 9, 2015
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). Fixes #8352 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Dec 11, 2015
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). Fixes #8352 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Dec 13, 2015
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). Fixes #8352 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Dec 19, 2015
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). Fixes #8352 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Dec 20, 2015
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). Fixes #8352 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8863) <!-- Reviewable:end -->
jrmuizel
pushed a commit
to jrmuizel/gecko-cinnabar
that referenced
this issue
Jun 12, 2017
…event for alert() (from simartin:issue_8352); r=jdm Fixes servo/servo#8352 Source-Repo: https://github.com/servo/servo Source-Revision: 9a4d82c314754d377edb0ef6b87873076bf3c057
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-comments-removed
that referenced
this issue
Oct 1, 2019
…event for alert() (from simartin:issue_8352); r=jdm Fixes servo/servo#8352 Source-Repo: https://github.com/servo/servo Source-Revision: 9a4d82c314754d377edb0ef6b87873076bf3c057 UltraBlame original commit: c8ab22fa8b0a219bc367bf11cdc756bad82e2eef
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified-and-comments-removed
that referenced
this issue
Oct 1, 2019
…event for alert() (from simartin:issue_8352); r=jdm Fixes servo/servo#8352 Source-Repo: https://github.com/servo/servo Source-Revision: 9a4d82c314754d377edb0ef6b87873076bf3c057 UltraBlame original commit: c8ab22fa8b0a219bc367bf11cdc756bad82e2eef
gecko-dev-updater
pushed a commit
to marco-c/gecko-dev-wordified
that referenced
this issue
Oct 1, 2019
…event for alert() (from simartin:issue_8352); r=jdm Fixes servo/servo#8352 Source-Repo: https://github.com/servo/servo Source-Revision: 9a4d82c314754d377edb0ef6b87873076bf3c057 UltraBlame original commit: c8ab22fa8b0a219bc367bf11cdc756bad82e2eef
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When browser.html is using servo, it wants to intercept calls like
window.alert('foo')and show its own prompt, instead of relying on Servo's default behaviour. We need to implement the part of the Browsing API related to this, by creating aCustomEventthat matches the specification and dispatching that inWindow::Alert.dispatch_mozbrowser_eventinhtmliframeelement.rsis a good model for this.Code: components/script/dom/window.rs