Changeset 235438 in webkit
- Timestamp:
- Aug 28, 2018, 1:53:17 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/mediastream/MediaDevices.cpp (modified) (1 diff)
-
Source/WebCore/dom/ActiveDOMObject.cpp (modified) (1 diff)
-
Source/WebCore/dom/ActiveDOMObject.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r235437 r235438 1 2018-08-28 Youenn Fablet <youenn@apple.com> 2 3 MediaDevices should be collectable as soon as its document is stopped 4 https://bugs.webkit.org/show_bug.cgi?id=189021 5 6 Reviewed by Eric Carlson. 7 8 * http/tests/media/media-stream/collect-media-devices.https-expected.txt: Added. 9 * http/tests/media/media-stream/collect-media-devices.https.html: Added. 10 * http/tests/media/media-stream/resources/mymediadevicesframe.htm: Added. 11 1 12 2018-08-28 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r235437 r235438 1 2018-08-28 Youenn Fablet <youenn@apple.com> 2 3 MediaDevices should be collectable as soon as its document is stopped 4 https://bugs.webkit.org/show_bug.cgi?id=189021 5 6 Reviewed by Eric Carlson. 7 8 Introduce ActiveDOMObject::isContextStopped to check whether the context is stopped. 9 Use this check in MediaDevices::hasPendingActivity so that it returns false as soon as active dom objects are stopped. 10 11 Test: http/tests/media/collect-media-devices.https.html 12 13 * Modules/mediastream/MediaDevices.cpp: 14 (WebCore::MediaDevices::hasPendingActivity const): 15 * dom/ActiveDOMObject.cpp: 16 (WebCore::ActiveDOMObject::hasPendingActivity const): 17 (WebCore::ActiveDOMObject::isContextStopped const): 18 * dom/ActiveDOMObject.h: 19 1 20 2018-08-28 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 21 -
trunk/Source/WebCore/Modules/mediastream/MediaDevices.cpp
r235086 r235438 163 163 bool MediaDevices::hasPendingActivity() const 164 164 { 165 return scriptExecutionContext() && hasEventListeners(m_eventNames.devicechangeEvent);165 return !isContextStopped() && hasEventListeners(m_eventNames.devicechangeEvent); 166 166 } 167 167 -
trunk/Source/WebCore/dom/ActiveDOMObject.cpp
r229903 r235438 107 107 } 108 108 109 bool ActiveDOMObject::isContextStopped() const 110 { 111 return !scriptExecutionContext() || scriptExecutionContext()->activeDOMObjectsAreStopped(); 112 } 113 109 114 } // namespace WebCore -
trunk/Source/WebCore/dom/ActiveDOMObject.h
r233611 r235438 111 111 } 112 112 113 bool isContextStopped() const; 114 113 115 protected: 114 116 explicit ActiveDOMObject(ScriptExecutionContext*);
Note:
See TracChangeset
for help on using the changeset viewer.