Repository navigation
Allow window elements as well as iframes to the the target of mozbrowser events - #12426
Merged
Merged
Conversation
|
Heads up! This PR modifies the following files:
|
Contributor
Author
| cx: *mut JSContext, | ||
| rval: MutableHandleValue); | ||
| #[allow(unsafe_code)] | ||
| pub unsafe fn build_mozbrowser_custom_event(window: Root<Window>, event: MozBrowserEvent) -> Root<CustomEvent> { |
Contributor
There was a problem hiding this comment.
This function provides a safe abstraction; it should just have an internal unsafe {} block.
Also, arguments should never be Root<T>; use &Window.
Contributor
|
☔ The latest upstream changes (presumably #11841) made this pull request unmergeable. Please resolve the merge conflicts. |
asajeffrey
force-pushed
the
mozbrowser-event-targets
branch
from
July 18, 2016 16:23
0ee5ae2 to
72aa4f2
Compare
Contributor
Author
|
Rebased. |
Member
|
@bors-servo r+ Reviewed 8 of 8 files at r3. Comments from Reviewable |
Contributor
|
📌 Commit 72aa4f2 has been approved by |
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Jul 20, 2016
Allow window elements as well as iframes to the the target of mozbrowser events <!-- Please describe your changes on the following line: --> Allow mozbrowser events, in particular mozbrowsererror events, to target a window. Needed for browserhtml/browserhtml#1182 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12420 - [X] These changes do not require tests because we're not testing our issue reporting system, which this is intended for. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12426) <!-- Reviewable:end -->
Contributor
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
This was referenced Jul 20, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow mozbrowser events, in particular mozbrowsererror events, to target a window. Needed for browserhtml/browserhtml#1182
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is