Changeset 267724 in webkit
- Timestamp:
- Sep 28, 2020, 9:10:11 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/shadow-dom/fullscreen-in-shadow-event-should-propagate-expected.txt (added)
-
LayoutTests/fast/shadow-dom/fullscreen-in-shadow-event-should-propagate.html (added)
-
LayoutTests/platform/ios-wk2/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/FullscreenManager.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r267723 r267724 1 2020-09-28 Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> 2 3 webkitfullscreenchange does not fire for shadow DOM elements 4 https://bugs.webkit.org/show_bug.cgi?id=216607 5 6 Reviewed by Ryosuke Niwa. 7 8 Added a regression test for making an element inside a shadow tree full screen, 9 and listening to `webkitfullscreenchange` outside the shadow tree. 10 11 * fast/shadow-dom/fullscreen-in-shadow-event-should-propagate-expected.txt: Added. 12 * fast/shadow-dom/fullscreen-in-shadow-event-should-propagate.html: Added. 13 * platform/ios-wk2/TestExpectations: 14 Other testcases related to fullscreen API in fast/shadow-dom/ are also 15 disabled for ios-wk2. 16 1 17 2020-09-28 Devin Rousso <drousso@apple.com> 2 18 -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r267168 r267724 1018 1018 fast/dom/Window/post-message-user-action.html [ Skip ] 1019 1019 fast/images/image-usemap-parsing.html [ Skip ] 1020 fast/shadow-dom/fullscreen-in-shadow-event-should-propagate.html [ Skip ] 1020 1021 fast/shadow-dom/fullscreen-in-shadow-full-screen-ancestor.html [ Skip ] 1021 1022 fast/shadow-dom/fullscreen-in-shadow-fullscreenElement.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r267713 r267724 1 2020-09-28 Tetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com> 2 3 webkitfullscreenchange does not fire for shadow DOM elements 4 https://bugs.webkit.org/show_bug.cgi?id=216607 5 6 Reviewed by Ryosuke Niwa. 7 8 This bug was caused by the `webkitfullscreenchange` event being fired 9 but without _composed_ flag set. 10 11 This patch fixed the bug by making it composed as defined as 12 the step 3-2 of https://fullscreen.spec.whatwg.org/#run-the-fullscreen-steps. 13 so that event listeners outside shadow tree could observe it. 14 15 Test: fast/shadow-dom/fullscreen-in-shadow-event-should-propagate.html 16 17 * dom/FullscreenManager.cpp: 18 (WebCore::FullscreenManager::dispatchFullscreenChangeOrErrorEvent): 19 1 20 2020-09-28 Eric Carlson <eric.carlson@apple.com> 2 21 -
trunk/Source/WebCore/dom/FullscreenManager.cpp
r265357 r267724 483 483 void FullscreenManager::dispatchFullscreenChangeOrErrorEvent(Deque<RefPtr<Node>>& queue, const AtomString& eventName, bool shouldNotifyMediaElement) 484 484 { 485 // Step 3 of https://fullscreen.spec.whatwg.org/#run-the-fullscreen-steps 485 486 while (!queue.isEmpty()) { 486 487 RefPtr<Node> node = queue.takeFirst(); … … 502 503 UNUSED_PARAM(shouldNotifyMediaElement); 503 504 #endif 504 node->dispatchEvent(Event::create(eventName, Event::CanBubble::Yes, Event::IsCancelable::No ));505 node->dispatchEvent(Event::create(eventName, Event::CanBubble::Yes, Event::IsCancelable::No, Event::IsComposed::Yes)); 505 506 } 506 507 }
Note:
See TracChangeset
for help on using the changeset viewer.