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 upProperly cancel event when beforeunload handler returns null #15142
Conversation
highfive
commented
Jan 22, 2017
| } | ||
| None => { | ||
| event.upcast::<Event>().PreventDefault(); | ||
| if let Ok(value) = handler.Call_(object, event, exception_handle) { |
This comment has been minimized.
This comment has been minimized.
Ms2ger
Jan 23, 2017
Contributor
Can you add some tests for returnValue? Stick them in event-handler-processing-algorithm.html along with the others.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ms2ger
Jan 23, 2017
Contributor
We should have a test that uses BeforeUnloadEvent rather than Event.
|
@bors-servo try |
|
|
This was referenced Jan 23, 2017
|
@bors-servo try |
bors-servo
added a commit
that referenced
this pull request
Jan 25, 2017
Properly cancel event when beforeunload handler returns null <!-- 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/15142) <!-- Reviewable:end -->
|
|
|
Seems like #8157 is back? |
|
In a new timeout-based form, sure. We should file a new issue for that. |
|
Over to @Ms2ger |
|
We should probably postpone this until whatwg/html#2297 is resolved. |
|
The HTML fix landed but the tests now require full unload support to run. We don't support that. |
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.
nox commentedJan 22, 2017
•
edited by larsbergstrom
This change is