Skip to content

Commit

Permalink
Bug 1671656: Remove intersection observer after calling finish(). r=nika
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaglione committed Mar 22, 2021
1 parent ed88fc8 commit 8fcbfe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dom/base/test/test_bug1399605.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
let observer = new IntersectionObserver(function() {
ok(true, "we are still observing");
SimpleTest.finish();
observer.unobserve(document.getElementById('target'));
});
observer.observe(document.getElementById('target'));
observer.unobserve(document.getElementById('content'));
Expand Down

0 comments on commit 8fcbfe7

Please sign in to comment.