|
Disallow adding ContextLifecycleObservers during iteration.
The implementation of ContextLifecycleNotifier disallows the addition
of ActiveDOMObjects while delivering its notifications, by way of
a RELEASE_ASSERT(). This prevents ending up in inconsistent states where
(e.g.) instructing the ActiveDOMObjects to stop would lead to the
creation of new, but running, ActiveDOMObjects.
Extend this restriction to encompass all ContextLifecycleObservers; none
may be added while iterating over the registered ActiveDOMObjects. This
allows us to simplify the underlying implementation somewhat.
R=haraken
BUG= 462949
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192377
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+36 lines, -234 lines) |
Patch |
|
M |
Source/core/core.gypi
|
View
|
|
5 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleNotifier.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleNotifier.cpp
|
View
|
|
3 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/ContextLifecycleObserver.h
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
D |
Source/core/dom/ContextLifecycleObserver.cpp
|
View
|
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/DocumentLifecycleObserver.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
D |
Source/core/dom/DocumentLifecycleObserver.cpp
|
View
|
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/DOMWindowLifecycleObserver.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
D |
Source/core/frame/DOMWindowLifecycleObserver.cpp
|
View
|
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/FrameDestructionObserver.h
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
D |
Source/core/frame/FrameDestructionObserver.cpp
|
View
|
|
1 chunk |
+0 lines, -43 lines |
0 comments
|
Download
|
|
M |
Source/core/page/PageLifecycleObserver.h
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
D |
Source/core/page/PageLifecycleObserver.cpp
|
View
|
|
1 chunk |
+0 lines, -37 lines |
0 comments
|
Download
|
|
M |
Source/platform/LifecycleContextTest.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/platform/LifecycleNotifier.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/platform/LifecycleObserver.h
|
View
|
1
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
Total messages: 8 (3 generated)
|