<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>137775</bug_id>
          
          <creation_ts>2014-10-16 02:52:35 -0700</creation_ts>
          <short_desc>[GTK] Minibrowser : Add window fullscreen support for Minibrowser</short_desc>
          <delta_ts>2014-10-30 06:45:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rohit">kumar.rohit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gustavo</cc>
    
    <cc>mrobinson</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1042103</commentid>
    <comment_count>0</comment_count>
    <who name="Rohit">kumar.rohit</who>
    <bug_when>2014-10-16 02:52:35 -0700</bug_when>
    <thetext>Add support for window fullscreen toggling in Minibrowser using keyboard F11 key.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1042104</commentid>
    <comment_count>1</comment_count>
      <attachid>239941</attachid>
    <who name="Rohit">kumar.rohit</who>
    <bug_when>2014-10-16 03:00:18 -0700</bug_when>
    <thetext>Created attachment 239941
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043379</commentid>
    <comment_count>2</comment_count>
      <attachid>239941</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2014-10-22 00:26:30 -0700</bug_when>
    <thetext>Comment on attachment 239941
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review

&gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; +    } else {
&gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; +    }

We already have code to enter/leave fullscreen when requested by wk, maybe we can reuse that code to make it work also when requested by the user, because there are some inconsistencies. The other code shows a message explaining the user how to leave fullscreen mode, and the keybindings are f or ESC, not F11. Also the other code takes care of showing/hide the findbar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043387</commentid>
    <comment_count>3</comment_count>
    <who name="Rohit">kumar.rohit</who>
    <bug_when>2014-10-22 02:07:15 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 239941 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; 
&gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; +    } else {
&gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; +    }
&gt; 
&gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; we can reuse that code to make it work also when requested by the user,
&gt; because there are some inconsistencies. The other code shows a message
&gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.

I think the code to enter/leave fullscreen is for HTML element/webview fullscreen and not for the minibrowser window itself. We don&apos;t need message and title for window to be displayed on fullscreen in this case. Most of the browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043393</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2014-10-22 02:32:06 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Comment on attachment 239941 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; &gt; +    } else {
&gt; &gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; &gt; +    }
&gt; &gt; 
&gt; &gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; &gt; we can reuse that code to make it work also when requested by the user,
&gt; &gt; because there are some inconsistencies. The other code shows a message
&gt; &gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; &gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.
&gt; 
&gt; I think the code to enter/leave fullscreen is for HTML element/webview
&gt; fullscreen and not for the minibrowser window itself.

Right.

&gt; We don&apos;t need message
&gt; and title for window to be displayed on fullscreen in this case. Most of the
&gt; browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window
&gt; fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.

Yes, Epiphany also uses F11, but also shows a message. In any case, my point is that the code that enters/leaves fullscreen could be common in both cases. Move the common logic to a function, and call it from both places.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043732</commentid>
    <comment_count>5</comment_count>
    <who name="Rohit">kumar.rohit</who>
    <bug_when>2014-10-23 03:06:56 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Comment on attachment 239941 [details]
&gt; &gt; &gt; Patch
&gt; &gt; &gt; 
&gt; &gt; &gt; View in context:
&gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; &gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; &gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; &gt; &gt; +    } else {
&gt; &gt; &gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; &gt; &gt; +    }
&gt; &gt; &gt; 
&gt; &gt; &gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; &gt; &gt; we can reuse that code to make it work also when requested by the user,
&gt; &gt; &gt; because there are some inconsistencies. The other code shows a message
&gt; &gt; &gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; &gt; &gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.
&gt; &gt; 
&gt; &gt; I think the code to enter/leave fullscreen is for HTML element/webview
&gt; &gt; fullscreen and not for the minibrowser window itself.
&gt; 
&gt; Right.
&gt; 
&gt; &gt; We don&apos;t need message
&gt; &gt; and title for window to be displayed on fullscreen in this case. Most of the
&gt; &gt; browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window
&gt; &gt; fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.
&gt; 
&gt; Yes, Epiphany also uses F11, but also shows a message. In any case, my point
&gt; is that the code that enters/leaves fullscreen could be common in both
&gt; cases. Move the common logic to a function, and call it from both places.

There is no common code in BrowserWindow.c file for webkitView and window fullscreen except findbar hide. Are you suggesting to implement it in WebKitWebViewBase.cpp file to handle the F11 keypress event similar to ESC and F key handle?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043736</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2014-10-23 03:53:11 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; Comment on attachment 239941 [details]
&gt; &gt; &gt; &gt; Patch
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; View in context:
&gt; &gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; &gt; &gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; &gt; &gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; &gt; &gt; &gt; +    } else {
&gt; &gt; &gt; &gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; &gt; &gt; &gt; +    }
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; &gt; &gt; &gt; we can reuse that code to make it work also when requested by the user,
&gt; &gt; &gt; &gt; because there are some inconsistencies. The other code shows a message
&gt; &gt; &gt; &gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; &gt; &gt; &gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.
&gt; &gt; &gt; 
&gt; &gt; &gt; I think the code to enter/leave fullscreen is for HTML element/webview
&gt; &gt; &gt; fullscreen and not for the minibrowser window itself.
&gt; &gt; 
&gt; &gt; Right.
&gt; &gt; 
&gt; &gt; &gt; We don&apos;t need message
&gt; &gt; &gt; and title for window to be displayed on fullscreen in this case. Most of the
&gt; &gt; &gt; browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window
&gt; &gt; &gt; fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.
&gt; &gt; 
&gt; &gt; Yes, Epiphany also uses F11, but also shows a message. In any case, my point
&gt; &gt; is that the code that enters/leaves fullscreen could be common in both
&gt; &gt; cases. Move the common logic to a function, and call it from both places.
&gt; 
&gt; There is no common code in BrowserWindow.c file for webkitView and window
&gt; fullscreen except findbar hide. Are you suggesting to implement it in
&gt; WebKitWebViewBase.cpp file to handle the F11 keypress event similar to ESC
&gt; and F key handle?

Oh, you are right, sorry, I thought we were also doing the fullscreen/unfullscreen in MB when entering/leaving fs, but that&apos;s done by the web view. So, yes, it&apos;s enough to move the searchbar visibility code to their own functions and call those from both places. Something like browserWindowHideSearchBarForFullscreen() and browserWindowShowSearchBarAfterFullscreen(), for example</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043740</commentid>
    <comment_count>7</comment_count>
    <who name="Rohit">kumar.rohit</who>
    <bug_when>2014-10-23 04:11:06 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; &gt; Comment on attachment 239941 [details]
&gt; &gt; &gt; &gt; &gt; Patch
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; View in context:
&gt; &gt; &gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; &gt; &gt; &gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; &gt; &gt; &gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; &gt; &gt; &gt; &gt; +    } else {
&gt; &gt; &gt; &gt; &gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; &gt; &gt; &gt; &gt; +    }
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; &gt; &gt; &gt; &gt; we can reuse that code to make it work also when requested by the user,
&gt; &gt; &gt; &gt; &gt; because there are some inconsistencies. The other code shows a message
&gt; &gt; &gt; &gt; &gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; &gt; &gt; &gt; &gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; I think the code to enter/leave fullscreen is for HTML element/webview
&gt; &gt; &gt; &gt; fullscreen and not for the minibrowser window itself.
&gt; &gt; &gt; 
&gt; &gt; &gt; Right.
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; We don&apos;t need message
&gt; &gt; &gt; &gt; and title for window to be displayed on fullscreen in this case. Most of the
&gt; &gt; &gt; &gt; browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window
&gt; &gt; &gt; &gt; fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.
&gt; &gt; &gt; 
&gt; &gt; &gt; Yes, Epiphany also uses F11, but also shows a message. In any case, my point
&gt; &gt; &gt; is that the code that enters/leaves fullscreen could be common in both
&gt; &gt; &gt; cases. Move the common logic to a function, and call it from both places.
&gt; &gt; 
&gt; &gt; There is no common code in BrowserWindow.c file for webkitView and window
&gt; &gt; fullscreen except findbar hide. Are you suggesting to implement it in
&gt; &gt; WebKitWebViewBase.cpp file to handle the F11 keypress event similar to ESC
&gt; &gt; and F key handle?
&gt; 
&gt; Oh, you are right, sorry, I thought we were also doing the
&gt; fullscreen/unfullscreen in MB when entering/leaving fs, but that&apos;s done by
&gt; the web view. So, yes, it&apos;s enough to move the searchbar visibility code to
&gt; their own functions and call those from both places. Something like
&gt; browserWindowHideSearchBarForFullscreen() and
&gt; browserWindowShowSearchBarAfterFullscreen(), for example

Do you mean to say hide &apos;toolbar&apos; in place of searchbar? We dont need to hide &apos;searchbar&apos; as this beahviour is not needed in case of window fullscreen and needed in case of webview fullscreen.(checked in firefox and chrome).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1043741</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2014-10-23 04:16:03 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; &gt; &gt; Comment on attachment 239941 [details]
&gt; &gt; &gt; &gt; &gt; &gt; Patch
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; View in context:
&gt; &gt; &gt; &gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +    } else {
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; +    }
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; &gt; &gt; &gt; &gt; &gt; we can reuse that code to make it work also when requested by the user,
&gt; &gt; &gt; &gt; &gt; &gt; because there are some inconsistencies. The other code shows a message
&gt; &gt; &gt; &gt; &gt; &gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; &gt; &gt; &gt; &gt; &gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; I think the code to enter/leave fullscreen is for HTML element/webview
&gt; &gt; &gt; &gt; &gt; fullscreen and not for the minibrowser window itself.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Right.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; We don&apos;t need message
&gt; &gt; &gt; &gt; &gt; and title for window to be displayed on fullscreen in this case. Most of the
&gt; &gt; &gt; &gt; &gt; browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window
&gt; &gt; &gt; &gt; &gt; fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Yes, Epiphany also uses F11, but also shows a message. In any case, my point
&gt; &gt; &gt; &gt; is that the code that enters/leaves fullscreen could be common in both
&gt; &gt; &gt; &gt; cases. Move the common logic to a function, and call it from both places.
&gt; &gt; &gt; 
&gt; &gt; &gt; There is no common code in BrowserWindow.c file for webkitView and window
&gt; &gt; &gt; fullscreen except findbar hide. Are you suggesting to implement it in
&gt; &gt; &gt; WebKitWebViewBase.cpp file to handle the F11 keypress event similar to ESC
&gt; &gt; &gt; and F key handle?
&gt; &gt; 
&gt; &gt; Oh, you are right, sorry, I thought we were also doing the
&gt; &gt; fullscreen/unfullscreen in MB when entering/leaving fs, but that&apos;s done by
&gt; &gt; the web view. So, yes, it&apos;s enough to move the searchbar visibility code to
&gt; &gt; their own functions and call those from both places. Something like
&gt; &gt; browserWindowHideSearchBarForFullscreen() and
&gt; &gt; browserWindowShowSearchBarAfterFullscreen(), for example
&gt; 
&gt; Do you mean to say hide &apos;toolbar&apos; in place of searchbar? We dont need to
&gt; hide &apos;searchbar&apos; as this beahviour is not needed in case of window
&gt; fullscreen and needed in case of webview fullscreen.(checked in firefox and
&gt; chrome).

I don&apos;t know why we hide the searchbar when entering fs TBH, I proposed it for consistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1044217</commentid>
    <comment_count>9</comment_count>
    <who name="Rohit">kumar.rohit</who>
    <bug_when>2014-10-27 00:14:06 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; &gt; &gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Comment on attachment 239941 [details]
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Patch
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; View in context:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=239941&amp;action=review
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Tools/MiniBrowser/gtk/BrowserWindow.c:575
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +    if (!window-&gt;fullScreenIsEnabled) {
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_window_fullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_widget_hide(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = TRUE;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +    } else {
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_window_unfullscreen(GTK_WINDOW(window));
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +        gtk_widget_show(window-&gt;toolbar);
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +        window-&gt;fullScreenIsEnabled = FALSE;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; +    }
&gt; &gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; &gt; We already have code to enter/leave fullscreen when requested by wk, maybe
&gt; &gt; &gt; &gt; &gt; &gt; &gt; we can reuse that code to make it work also when requested by the user,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; because there are some inconsistencies. The other code shows a message
&gt; &gt; &gt; &gt; &gt; &gt; &gt; explaining the user how to leave fullscreen mode, and the keybindings are f
&gt; &gt; &gt; &gt; &gt; &gt; &gt; or ESC, not F11. Also the other code takes care of showing/hide the findbar.
&gt; &gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; I think the code to enter/leave fullscreen is for HTML element/webview
&gt; &gt; &gt; &gt; &gt; &gt; fullscreen and not for the minibrowser window itself.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Right.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; &gt; We don&apos;t need message
&gt; &gt; &gt; &gt; &gt; &gt; and title for window to be displayed on fullscreen in this case. Most of the
&gt; &gt; &gt; &gt; &gt; &gt; browsers (Chrome, Firefox, IE) uses F11 key to toggle browser window
&gt; &gt; &gt; &gt; &gt; &gt; fullscreen and f or ESC for HTML elements. Please correct me if I am wrong.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Yes, Epiphany also uses F11, but also shows a message. In any case, my point
&gt; &gt; &gt; &gt; &gt; is that the code that enters/leaves fullscreen could be common in both
&gt; &gt; &gt; &gt; &gt; cases. Move the common logic to a function, and call it from both places.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; There is no common code in BrowserWindow.c file for webkitView and window
&gt; &gt; &gt; &gt; fullscreen except findbar hide. Are you suggesting to implement it in
&gt; &gt; &gt; &gt; WebKitWebViewBase.cpp file to handle the F11 keypress event similar to ESC
&gt; &gt; &gt; &gt; and F key handle?
&gt; &gt; &gt; 
&gt; &gt; &gt; Oh, you are right, sorry, I thought we were also doing the
&gt; &gt; &gt; fullscreen/unfullscreen in MB when entering/leaving fs, but that&apos;s done by
&gt; &gt; &gt; the web view. So, yes, it&apos;s enough to move the searchbar visibility code to
&gt; &gt; &gt; their own functions and call those from both places. Something like
&gt; &gt; &gt; browserWindowHideSearchBarForFullscreen() and
&gt; &gt; &gt; browserWindowShowSearchBarAfterFullscreen(), for example
&gt; &gt; 
&gt; &gt; Do you mean to say hide &apos;toolbar&apos; in place of searchbar? We dont need to
&gt; &gt; hide &apos;searchbar&apos; as this beahviour is not needed in case of window
&gt; &gt; fullscreen and needed in case of webview fullscreen.(checked in firefox and
&gt; &gt; chrome).
&gt; 
&gt; I don&apos;t know why we hide the searchbar when entering fs TBH, I proposed it
&gt; for consistency.

I think we need to hide searchbar while entering fs because otherwise searchbar would be visible on top of fullscreen element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1045027</commentid>
    <comment_count>10</comment_count>
      <attachid>239941</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-10-30 06:45:05 -0700</bug_when>
    <thetext>Comment on attachment 239941
Patch

Clearing flags on attachment: 239941

Committed r175371: &lt;http://trac.webkit.org/changeset/175371&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1045028</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-10-30 06:45:08 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>239941</attachid>
            <date>2014-10-16 03:00:18 -0700</date>
            <delta_ts>2014-10-30 06:45:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-137775-20141016153138.patch</filename>
            <type>text/plain</type>
            <size>2638</size>
            <attacher name="Rohit">kumar.rohit</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTc0NzYxCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNTRkMmVlYzk5Mjk3YmRlNTAyYTYyNzc4ZjViMmU1YzY2
MWM0MGZjMi4uN2JjMTMwZmU0NjRjYmFlOGU0NmFkMzBmOGM0NTM4Y2M4NTZlMDRlNSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0
IEBACisyMDE0LTEwLTE2ICBSb2hpdCBLdW1hciAgPGt1bWFyLnJvaGl0QHNhbXN1bmcuY29tPgor
CisgICAgICAgIFtHVEtdIE1pbmlicm93c2VyIDogQWRkIHdpbmRvdyBmdWxsc2NyZWVuIHN1cHBv
cnQgZm9yIE1pbmlicm93c2VyCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0xMzc3NzUKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICAqIE1pbmlCcm93c2VyL2d0ay9Ccm93c2VyV2luZG93LmM6CisgICAgICAgICh0
b2dnbGVGdWxsU2NyZWVuKTogQ2FsbGJhY2sgdG8gdG9nZ2xlIHdpbmRvdyBmdWxsc2NyZWVuIG9u
IHByZXNzaW5nIEYxMSBrZXkuCisgICAgICAgIChicm93c2VyX3dpbmRvd19pbml0KToKKwogMjAx
NC0xMC0xNSAgR3l1eW91bmcgS2ltICA8Z3l1eW91bmcua2ltQHNhbXN1bmcuY29tPgogCiAgICAg
ICAgIFVucmV2aWV3ZWQsIGFkZCBteXNlbGYgdG8gQ29vcmRpbmF0ZWRHcmFwaGljcyB3YXRjaGVy
cy4KZGlmZiAtLWdpdC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