Changeset 236110 in webkit
- Timestamp:
- Sep 18, 2018, 2:16:40 AM (8 years ago)
- Location:
- releases/WebKitGTK/webkit-2.22
- 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
-
releases/WebKitGTK/webkit-2.22/LayoutTests/ChangeLog
r236109 r236110 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-27 Myles C. Maxfield <mmaxfield@apple.com> 2 13 -
releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog
r236109 r236110 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-27 Myles C. Maxfield <mmaxfield@apple.com> 2 21 -
releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/mediastream/MediaDevices.cpp
r235061 r236110 169 169 bool MediaDevices::hasPendingActivity() const 170 170 { 171 return scriptExecutionContext() && hasEventListeners(m_eventNames.devicechangeEvent);171 return !isContextStopped() && hasEventListeners(m_eventNames.devicechangeEvent); 172 172 } 173 173 -
releases/WebKitGTK/webkit-2.22/Source/WebCore/dom/ActiveDOMObject.cpp
r229903 r236110 107 107 } 108 108 109 bool ActiveDOMObject::isContextStopped() const 110 { 111 return !scriptExecutionContext() || scriptExecutionContext()->activeDOMObjectsAreStopped(); 112 } 113 109 114 } // namespace WebCore -
releases/WebKitGTK/webkit-2.22/Source/WebCore/dom/ActiveDOMObject.h
r233611 r236110 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.