<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Epiphany application mode on Wayland broken with WebKit 2.13.92"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=771561#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Epiphany application mode on Wayland broken with WebKit 2.13.92"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=771561">bug 771561</a>
              from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=carlosg%40gnome.org" title="Carlos Garnacho <carlosg@gnome.org>"> <span class="fn">Carlos Garnacho</span></a>
</span></b>
        <pre>FWIW, Some gdb debugging:

(gdb) bt
</pre>
<p class="trace_link" title="See Full Trace">
  <a class="trace_toggle_box" href="#"
     title="Expand/Collapse Trace"
     onclick="traceparser_toggle_trace(this, 236675); return false;">+</a>
  <a href="page.cgi?id=traceparser/trace.html&trace_id=236675">Trace
    236675</a></p>

<table border="0" cellpadding="0" cellspacing="0"><tr><td>
<div class="trace  bz_default_hidden"
     id="trace_236675">


      <ul class="frames">
          <li class="frame ">
              <span class="frame_number">#0</span>
            <span class="frame_function">gdk_wayland_window_set_geometry_hints</span>
          </li>
          <li class="frame ">
              <span class="frame_number">#1</span>
            <span class="frame_function">gdk_window_set_geometry_hints</span>
          </li>
          <li class="frame ">
              <span class="frame_number">#2</span>
            <span class="frame_function">gtk_window_move_resize</span>
              <div class="frame_file_container">
                at <span class="frame_file">gtkwindow.c</span>
                  line
                  <span class="frame_line">9691</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#3</span>
            <span class="frame_function">gtk_window_check_resize</span>
              <div class="frame_file_container">
                at <span class="frame_file">gtkwindow.c</span>
                  line
                  <span class="frame_line">8304</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#4</span>
            <span class="frame_function">g_cclosure_marshal_VOID__VOIDv</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gmarshal.c</span>
                  line
                  <span class="frame_line">905</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#5</span>
            <span class="frame_function">g_type_class_meta_marshalv</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gclosure.c</span>
                  line
                  <span class="frame_line">1024</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#6</span>
            <span class="frame_function">_g_closure_invoke_va</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gclosure.c</span>
                  line
                  <span class="frame_line">867</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#7</span>
            <span class="frame_function">g_signal_emit_valist</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gsignal.c</span>
                  line
                  <span class="frame_line">3300</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#8</span>
            <span class="frame_function">g_signal_emit</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gsignal.c</span>
                  line
                  <span class="frame_line">3447</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#9</span>
            <span class="frame_function">gtk_container_check_resize</span>
              <div class="frame_file_container">
                at <span class="frame_file">gtkcontainer.c</span>
                  line
                  <span class="frame_line">2171</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#10</span>
            <span class="frame_function">gtk_container_idle_sizer</span>
              <div class="frame_file_container">
                at <span class="frame_file">gtkcontainer.c</span>
                  line
                  <span class="frame_line">2064</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#11</span>
            <span class="frame_function">g_cclosure_marshal_VOID__VOID</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gmarshal.c</span>
                  line
                  <span class="frame_line">875</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#12</span>
            <span class="frame_function">g_closure_invoke</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gclosure.c</span>
                  line
                  <span class="frame_line">804</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#13</span>
            <span class="frame_function">signal_emit_unlocked_R</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gsignal.c</span>
                  line
                  <span class="frame_line">3635</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#14</span>
            <span class="frame_function">g_signal_emit_valist</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gsignal.c</span>
                  line
                  <span class="frame_line">3391</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#15</span>
            <span class="frame_function">g_signal_emit</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gobject/gsignal.c</span>
                  line
                  <span class="frame_line">3447</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#16</span>
            <span class="frame_function">_gdk_frame_clock_emit_layout</span>
              <div class="frame_file_container">
                at <span class="frame_file">gdkframeclock.c</span>
                  line
                  <span class="frame_line">634</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#17</span>
            <span class="frame_function">gdk_frame_clock_paint_idle</span>
              <div class="frame_file_container">
                at <span class="frame_file">gdkframeclockidle.c</span>
                  line
                  <span class="frame_line">408</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#18</span>
            <span class="frame_function">gdk_threads_dispatch</span>
              <div class="frame_file_container">
                at <span class="frame_file">gdk.c</span>
                  line
                  <span class="frame_line">743</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#19</span>
            <span class="frame_function">g_timeout_dispatch</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/glib/gmain.c</span>
                  line
                  <span class="frame_line">4672</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#20</span>
            <span class="frame_function">g_main_dispatch</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/glib/gmain.c</span>
                  line
                  <span class="frame_line">3201</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#21</span>
            <span class="frame_function">g_main_context_dispatch</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/glib/gmain.c</span>
                  line
                  <span class="frame_line">3854</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#22</span>
            <span class="frame_function">g_main_context_iterate</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/glib/gmain.c</span>
                  line
                  <span class="frame_line">3927</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#23</span>
            <span class="frame_function">g_main_context_iteration</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/glib/gmain.c</span>
                  line
                  <span class="frame_line">3988</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#24</span>
            <span class="frame_function">g_application_run</span>
              <div class="frame_file_container">
                at <span class="frame_file">/home/carlos/Source/gnome/glib/gio/gapplication.c</span>
                  line
                  <span class="frame_line">2381</span>
              </div>
          </li>
          <li class="frame ">
              <span class="frame_number">#25</span>
            <span class="frame_function">main</span>
          </li>
      </ul>
</div>
</td></tr></table>
<pre class="bz_comment_text" >
$4 = {min_width = 405, min_height = 47, max_width = 0, max_height = 0,
base_width = 0, base_height = 0, width_inc = 0, height_inc = 0, min_aspect = 0,
max_aspect = 0, 
  win_gravity = GDK_GRAVITY_NORTH_WEST}
(gdb) p (GdkWindowImplWayland)*window->impl
$5 = {parent_instance = {parent = {g_type_instance = {g_class = 0x6fd5d0},
ref_count = 30, qdata = 0x0}}, wrapper = 0x6fe330, display_server = {outputs =
0x0, wl_surface = 0xc17710, 
    xdg_surface = 0x11b9d70, xdg_toplevel = 0x11b9dc0, xdg_popup = 0x0,
gtk_surface = 0x11b8430, wl_subsurface = 0x0, egl_window = 0x0,
dummy_egl_window = 0x0, xdg_exported = 0x0}, 
  egl_surface = 0x0, dummy_egl_surface = 0x0, initial_configure_received = 0,
mapped = 1, use_custom_surface = 0, pending_buffer_attached = 0, pending_commit
= 0, awaiting_frame = 0, 
  hint = GDK_WINDOW_TYPE_HINT_NORMAL, transient_for = 0x0, popup_parent = 0x0,
position_method = POSITION_METHOD_NONE, staging_cairo_surface = 0x0,
committed_cairo_surface = 0x0, 
  backfill_cairo_surface = 0x0, pending_buffer_offset_x = 0,
pending_buffer_offset_y = 0, title = 0x11c6da0 "Blank page", application =
{was_set = 1, 
    application_id = 0x11f6400 "org.gnome.Epiphany", app_menu_path = 0x11f6710
"/org/gnome/Epiphany/menus/appmenu", menubar_path = 0x0, 
    window_object_path = 0x11f6740 "/org/gnome/Epiphany/window/1",
application_object_path = 0x11f6770 "/org/gnome/Epiphany", unique_bus_name =
0x11f6790 ":1.113"}, geometry_hints = {
    min_width = 457, min_height = 99, max_width = 0, max_height = 0, base_width
= 0, base_height = 0, width_inc = 0, height_inc = 0, min_aspect = 0, max_aspect
= 0, 
    win_gravity = GDK_GRAVITY_NORTH_WEST}, geometry_mask = (GDK_HINT_MIN_SIZE |
GDK_HINT_BASE_SIZE | GDK_HINT_WIN_GRAVITY), grab_input_seat = 0x0,
pending_frame_counter = 0, scale = 1, 
  margin_left = 26, margin_right = 26, margin_top = 23, margin_bottom = 29,
margin_dirty = 0, initial_fullscreen_monitor = -1, opaque_region = 0x1192550,
opaque_region_dirty = 1, 
  input_region = 0x0, input_region_dirty = 1, staged_updates_region = 0x0,
saved_width = 600, saved_height = 547, parent_surface_committed_handler = 0,
pending_move_to_rect = {rect = {x = 0, 
      y = 0, width = 0, height = 0}, rect_anchor = 0, window_anchor = 0,
anchor_hints = 0, rect_anchor_dx = 0, rect_anchor_dy = 0}, pending = {width =
0, height = 0, state = (unknown: 0)}, 
  exported = {callback = 0x0, user_data = 0x0, destroy_func = 0x0},
imported_transient_for = 0x0}

So min_height is 47, and impl->margin_top+bottom are 23+29=52, this results in
the -5 size.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>