Changeset 238348 in webkit
- Timestamp:
- Nov 17, 2018 7:13:07 AM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r238342 r238348 1 2018-11-17 Jer Noble <jer.noble@apple.com> 2 3 Regression(r233865): Causes synchronous IPC in the middle of layout 4 https://bugs.webkit.org/show_bug.cgi?id=188307 5 <rdar://problem/42807306> 6 7 Reviewed by Eric Carlson. 8 9 Follow-up test fix for r238322: 10 11 In ExitFullscreenOnEnterPiP.ElementFullScreen, explicitly make the video 12 element in element fullscreen the "main content" by playing the video during 13 a user gesture; only "main content" videos will cause fullscreen mode to exit 14 when that element is taken into PiP. 15 16 In FullscreenZoomInitialFrame.WebKit, the WebView is not visible, so the Page 17 is considered hidden, and fullscreen is not allowed when the WebView is hidden. 18 Make the WebView visible by ordering the test window on-screen. 19 20 * TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.html: 21 * TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.mm: 22 (TestWebKitAPI::TEST): 23 * TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm: 24 (TestWebKitAPI::FullscreenZoomInitialFrame::runTest): 25 1 26 2018-11-16 Alex Christensen <achristensen@webkit.org> 2 27 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.html
r233926 r238348 2 2 <html> 3 3 <head> 4 <script> 5 window.addEventListener('load', event => { 6 let video = document.querySelector('video'); 7 video.addEventListener('playing', event => { 8 try { 9 window.webkit.messageHandlers.testHandler.postMessage('playing'); 10 } catch (e) { } 11 }); 12 }, {once: true}); 13 </script> 4 14 </head> 5 15 <button id="enter-video-fullscreen" onclick="document.querySelector('video').webkitEnterFullscreen()">enter video fullscreen</button> … … 7 17 <button id="enter-pip" onclick="document.querySelector('video').webkitSetPresentationMode('picture-in-picture')">enter pip</button> 8 18 <button id="exit-pip" onclick="document.querySelector('video').webkitSetPresentationMode('inline')">exit pip</button> 9 <body onload="load(); window.onloadcompleted = true; "> 19 <button id="play" onclick="document.querySelector('video').play()">play video</button> 20 <body> 10 21 <div id="target"> 11 22 <video id="video" playsinline src="test.mp4" /> -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ExitFullscreenOnEnterPiP.mm
r237266 r238348 115 115 ASSERT_TRUE(didEnterFullscreen); 116 116 117 // Make the video the "main content" by playing with a user gesture. 118 __block bool didBeginPlaying = false; 119 [webView performAfterReceivingMessage:@"playing" action:^{ didBeginPlaying = true; }]; 120 [webView evaluateJavaScript:@"document.getElementById('play').click()" completionHandler:nil]; 121 TestWebKitAPI::Util::run(&didBeginPlaying); 122 117 123 didEnterPiP = false; 118 124 didExitFullscreen = false; -
trunk/Tools/TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm
r219050 r238348 157 157 RetainPtr<NSWindow> window = adoptNS([[NSWindow alloc] initWithContentRect:view.frame styleMask:NSWindowStyleMaskBorderless backing:NSBackingStoreBuffered defer:NO]); 158 158 [window.get().contentView addSubview:view]; 159 [window makeKeyAndOrderFront:view]; 159 160 160 161 setPageScale(view, 2);
Note: See TracChangeset
for help on using the changeset viewer.