Commit 1a5b135
Make
Chrome returns some computed value for `offsetX` and `offsetY` even in this
hacky case, but we should return `{0, 0}` for now to keep the traditional
behavior [1] and avoid the crash because Chrome's behavior is also tricky
because they cache offset values at first access. Let's change the behavior
in a separated bug.
1. https://searchfox.org/mozilla-central/rev/80343eb85f0bda693730a394496ce66e48eae561/dom/events/Event.cpp#683,702-704
Differential Revision: https://phabricator.services.mozilla.com/D237172
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1946461
gecko-commit: c9b281a867f33bb3aa88dd8318abe1c50d22e81d
gecko-reviewers: smaug, emilioEvent::GetPrimaryFrameOfEventTarget return nullptr if target is moved outside the original `nsPresContext1 parent 54db559 commit 1a5b135
1 file changed
Lines changed: 37 additions & 0 deletions
File tree
- uievents/mouse/crashtests
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments