diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-06-15 12:36:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 12:36:19 -0700 |
commit | 0c53ba318aaccf9b4a8b233496ed7bfe929c02ce (patch) | |
tree | b7617b0ca11e3c60823d60eef0d846b873807ddc /components/script/dom/cssimportrule.rs | |
parent | d903bd883ee064b295944af28a76a6223f2bc56d (diff) | |
parent | 11fb9db7bfdcf0e2a5b5a3b6fe2e257549b20c96 (diff) | |
download | servo-0c53ba318aaccf9b4a8b233496ed7bfe929c02ce.tar.gz servo-0c53ba318aaccf9b4a8b233496ed7bfe929c02ce.zip |
Auto merge of #17323 - ibmandura:issue16057, r=jdm
Avoid panic when reloading a page with mouse event handlers
This PR fixes issue #16057, by nullifying `topmost_mouse_over_target` inside of the `handle_exit_pipeline_msg` method, in case owner document is the same as the pipeline document that is being destroyed.
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
Testing was done manually, by running `./mach run (-r|-d) "http://localhost:8000/minimal.html" `, where `minimal.html` contains `<div onmouseover="location.reload()" onmouseout="this.clientLeft">hi there</div>`.
r?@jdm
<!-- 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/17323)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/cssimportrule.rs')
0 files changed, 0 insertions, 0 deletions