Closed
Bug 1399605
Opened 7 years ago
Closed 7 years ago
[intersection-observer] Check if target is actually being observed when unobserving
Categories
(Core :: Layout, enhancement, P3)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: tschneider, Assigned: tschneider)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 4 obsolete files)
2.16 KB,
patch
|
Details | Diff | Splinter Review | |
729 bytes,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
We don't check if a target element passed to .observe() is actually being observed when removing it and eventually disconnecting the observer. This can lead to single observed targets being unobserved if an unobserved target is passed.
Assignee | ||
Updated•7 years ago
|
Blocks: intersection-observer
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8907766 -
Attachment is obsolete: true
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Updated•7 years ago
|
Attachment #8907767 -
Flags: review?(mrbkap)
Comment 3•7 years ago
|
||
Comment on attachment 8907767 [details] [diff] [review]
Check if target is actually being observed when unobserving
Can you add a test for this?
Attachment #8907767 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 5•7 years ago
|
||
Fix indentation.
Attachment #8909801 -
Attachment is obsolete: true
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8909802 -
Attachment is obsolete: true
Assignee | ||
Comment 7•7 years ago
|
||
Pushed by tschneider@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/76e4f11cc7a6
[intersection-observer] Check if target is actually being observed when unobserving. r=mrbkap
Comment 9•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 10•7 years ago
|
||
Comment on attachment 8909803 [details] [diff] [review]
Check if target is actually being observed when unobserving. r=mrbkap
Review of attachment 8909803 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/test/mochitest.ini
@@ +627,1 @@
> skip-if = toolkit == 'android'
It looks from this diff like the skip-if Android check has changed from applying to test_bug1384658.html to test_bug1399605.html. Was that intentional?
Assignee | ||
Comment 12•7 years ago
|
||
Ugh, totally not intentional. Kinda forgot that those statements follow a test rather then leading it. Those should really be indented to make it more clear. No excuse tho.
Flags: needinfo?(tschneider)
Assignee | ||
Comment 13•7 years ago
|
||
Attachment #8910068 -
Flags: review?(mrbkap)
Updated•7 years ago
|
Attachment #8910068 -
Flags: review?(mrbkap) → review+
Comment 14•7 years ago
|
||
Pushed by tschneider@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a7b3fe40c4f4
Fix wrong test being skipped. r=mrbkap
Comment 15•7 years ago
|
||
bugherder |
Updated•7 years ago
|
Assignee: nobody → tschneider
You need to log in
before you can comment on or make changes to this bug.
Description
•