12012-04-04 Jer Noble <jer.noble@apple.com>
2
3 apple.com top navigation bar appears inside video during full screen exit animation
4 https://bugs.webkit.org/show_bug.cgi?id=83095
5
6 Reviewed by NOBODY (OOPS!).
7
8 Add a new LayoutTestController function, setHasCustomFullScreenBehavior(), which allows scripts to
9 disable the standard full screen behavior, and replace it with explicit callbacks to the relevant
10 Document methods from within the script. This allows subtle timing bugs to be consistently reproduced
11 from within LayoutTests.
12
13 Add the new methods, hasCustomFullScreenBehavior() and setHasCustomFullScreenBehavior():
14 * DumpRenderTree/LayoutTestController.cpp:
15 (setHasCustomFullScreenBehaviorCallback):
16 (LayoutTestController::staticFunctions):
17 * DumpRenderTree/LayoutTestController.h:
18 (LayoutTestController::setHasCustomFullScreenBehavior):
19 (LayoutTestController::hasCustomFullScreenBehavior):
20 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
21 (WTR::InjectedBundlePage::enterFullScreenForElement):
22 (WTR::InjectedBundlePage::exitFullScreenForElement):
23 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
24 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
25 * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
26 (WTR::LayoutTestController::setHasCustomFullScreenBehavior):
27 (WTR::LayoutTestController::hasCustomFullScreenBehavior):
28
29 Query the new methods before calling will/did/Enter/ExitFullScreen:
30 * DumpRenderTree/chromium/WebViewHost.cpp:
31 (WebViewHost::enterFullScreenNow):
32 (WebViewHost::exitFullScreenNow):
33 * DumpRenderTree/mac/UIDelegate.mm:
34 (-[UIDelegate webView:enterFullScreenForElement:listener:]):
35 (-[UIDelegate webView:exitFullScreenForElement:listener:]):
36