diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-05-28 15:52:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 15:52:31 -0400 |
commit | 2439ab02b8e021836ff620ef473e556adaa66d58 (patch) | |
tree | 54ad73a97d0b26029602a7327fa752b08dca34aa /components/script_plugins/lib.rs | |
parent | 77850c2c05d9dbfe226e97dd62d82fa8c6d402b3 (diff) | |
parent | 57c0d82944969f7ee645c9208f41fb24e8561d43 (diff) | |
download | servo-2439ab02b8e021836ff620ef473e556adaa66d58.tar.gz servo-2439ab02b8e021836ff620ef473e556adaa66d58.zip |
Auto merge of #20837 - gterzian:tests_for_has_event_listener, r=cbrewster
Fix for document salvageable state
I noticed a bug where if the document was un-salavageable due to the presence of `beforeunload` listeners, this could be overwritten if there were no listeners for `unload`. This could also have happened if an iframe of the document had no listeners while the parent did.
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- 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/20837)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script_plugins/lib.rs')
0 files changed, 0 insertions, 0 deletions