diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-27 16:00:53 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-27 16:00:53 +0200 |
commit | 8b71cda1956ab640ad76bea36e7971476aa78bcf (patch) | |
tree | c369019586632332b2627225eb7f6adab1e285d8 /dom/base/nsDocument.cpp | |
parent | 9168a0fc95f523c7c852ca95969edb39069f4a03 (diff) | |
download | UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar.gz UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar.lz UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.tar.xz UXP-8b71cda1956ab640ad76bea36e7971476aa78bcf.zip |
Stabilize and align Intersection Observers
- Fixes several crashes
- Aligns the feature with the W3C WD spec
Tag #249
Diffstat (limited to 'dom/base/nsDocument.cpp')
-rw-r--r-- | dom/base/nsDocument.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index fd3b52948..8acfd901a 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -12507,7 +12507,8 @@ nsDocument::ScheduleIntersectionObserverNotification() void nsDocument::NotifyIntersectionObservers() { - for (const auto& observer : mIntersectionObservers) { + nsTArray<RefPtr<DOMIntersectionObserver>> observers(mIntersectionObservers); + for (const auto& observer : observers) { observer->Notify(); } } |