Changeset 162724 in webkit


Ignore:
Timestamp:
Jan 24, 2014 2:05:22 PM (10 years ago)
Author:
vjaquez@igalia.com
Message:

[GTK] youtube HTML5 videos in fullscreen, after <Esc>, can't go fullscreen again
https://bugs.webkit.org/show_bug.cgi?id=127064

When pressing <Esc> or <f> at full screen, the WebView shall emit the
event webkitfullscreenchange, but wk2gtk does not emit it. This is
because the WebView manages directly the exit of the full screen.

With this patch the WebView calls requestExitFullScreen to the full
screen manager, instead of managing directly the exit of the full
screen, and the event webkitfullscreenchange will be dispatched
correctly.

Reviewed by Martin Robinson.

No tests are included because there is a bug in WKTR that prevents the
execution of a test for this patch. See
https://bugs.webkit.org/show_bug.cgi?id=127348

  • UIProcess/API/gtk/WebKitWebViewBase.cpp:

(webkitWebViewBaseKeyPressEvent): Call
webkitWebViewBaseRequestExitFullScreen.
(webkitWebViewBaseRequestExitFullScreen): Added.

  • UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Ditto.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162721 r162724  
     12014-01-24  Víctor Manuel Jáquez Leal  <vjaquez@igalia.com>
     2
     3        [GTK] youtube HTML5 videos in fullscreen, after <Esc>, can't go fullscreen again
     4        https://bugs.webkit.org/show_bug.cgi?id=127064
     5
     6        When pressing <Esc> or <f> at full screen, the WebView shall emit the
     7        event webkitfullscreenchange, but wk2gtk does not emit it. This is
     8        because the WebView manages directly the exit of the full screen.
     9
     10        With this patch the WebView calls requestExitFullScreen to the full
     11        screen manager, instead of managing directly the exit of the full
     12        screen, and the event webkitfullscreenchange will be dispatched
     13        correctly.
     14
     15        Reviewed by Martin Robinson.
     16
     17        No tests are included because there is a bug in WKTR that prevents the
     18        execution of a test for this patch. See
     19        https://bugs.webkit.org/show_bug.cgi?id=127348
     20
     21        * UIProcess/API/gtk/WebKitWebViewBase.cpp:
     22        (webkitWebViewBaseKeyPressEvent): Call
     23        webkitWebViewBaseRequestExitFullScreen.
     24        (webkitWebViewBaseRequestExitFullScreen): Added.
     25        * UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Ditto.
     26
    1272014-01-24  Tim Horton  <timothy_horton@apple.com>
    228
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp

    r162599 r162724  
    617617        case GDK_KEY_f:
    618618        case GDK_KEY_F:
    619             webkitWebViewBaseExitFullScreen(webViewBase);
     619            webkitWebViewBaseRequestExitFullScreen(webViewBase);
    620620            return TRUE;
    621621        default:
     
    10631063}
    10641064
     1065void webkitWebViewBaseRequestExitFullScreen(WebKitWebViewBase* webkitWebViewBase)
     1066{
     1067#if ENABLE(FULLSCREEN_API)
     1068    webkitWebViewBase->priv->pageProxy->fullScreenManager()->requestExitFullScreen();
     1069#endif
     1070}
     1071
    10651072void webkitWebViewBaseInitializeFullScreenClient(WebKitWebViewBase* webkitWebViewBase, const WKFullScreenClientGtkBase* wkClient)
    10661073{
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBasePrivate.h

    r160918 r162724  
    4646void webkitWebViewBaseEnterFullScreen(WebKitWebViewBase*);
    4747void webkitWebViewBaseExitFullScreen(WebKitWebViewBase*);
     48void webkitWebViewBaseRequestExitFullScreen(WebKitWebViewBase*);
    4849void webkitWebViewBaseInitializeFullScreenClient(WebKitWebViewBase*, const WKFullScreenClientGtkBase*);
    4950void webkitWebViewBaseSetInspectorViewSize(WebKitWebViewBase*, unsigned size);
Note: See TracChangeset for help on using the changeset viewer.