<?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>199570</bug_id>
          
          <creation_ts>2019-07-08 04:34:37 -0700</creation_ts>
          <short_desc>[GTK] Blank web view when transitioning between hardware acceleration (composition) modes</short_desc>
          <delta_ts>2019-07-20 01:54:58 -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>WebKitGTK</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=199826</see_also>
          <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>mail</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1550788</commentid>
    <comment_count>0</comment_count>
    <who name="">mail</who>
    <bug_when>2019-07-08 04:34:37 -0700</bug_when>
    <thetext>WebKitGTK 2.24.2

I&apos;m working on the WebKitGTK port of Next browser:
https://next.atlas.engineer.
(Mirror: https://github.com/atlas-engineer/next)

When I switch &quot;buffer&quot; (or &quot;tab&quot;) between 1 page displaying https://imdb.com and
another displaying https://github.com, the github page is _very often_
blank (not always).  If I open a new tab for github, it works.

After a discussion with Michael Catanzaro, we presumed that the issue may lie in
the transition in and out of accelerated composition mode.

Indeed, if I start Next with WEBKIT_FORCE_COMPOSITING_MODE=1, the issue
disappears.

A work around would be to set it to &quot;forced&quot; with
webkit_settings_set_hardware_acceleration_policy(), but what about systems that
do not support hardware acceleration then?

The problem occurs on master (for posterity: commit e13f5b9ecd232aa780b636a0c873fdccc1be6f0d).

Could be related to
https://bugs.webkit.org/show_bug.cgi?id=193224.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550803</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-07-08 07:37:21 -0700</bug_when>
    <thetext>It&apos;s not related to bug #193224 because PSON is not enabled in the 2.24 branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553157</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-07-16 03:24:51 -0700</bug_when>
    <thetext>I can&apos;t reproduce it with 2.24.2, but there are a lot more issues with current trunk, it only works with AC disabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553161</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-07-16 04:01:20 -0700</bug_when>
    <thetext>hmm, I guess I can&apos;t reproduce in 2.24 because AC is now forced in next.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553168</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-07-16 06:51:47 -0700</bug_when>
    <thetext>I&apos;ve found the problem in trunk, but I can&apos;t reproduce it in trunk even when not forcing AC mode yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553207</commentid>
    <comment_count>5</comment_count>
    <who name="">mail</who>
    <bug_when>2019-07-16 09:46:06 -0700</bug_when>
    <thetext>Indeed, as a workaround I&apos;m forcing AC in Next.
Force-disabling AC works too.  Only &quot;auto&quot; triggers the issue.

I&apos;m not sure I understand the last comment: you found the problem, but it works with Next nonetheless?  Is there anything I can do to help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553471</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-07-17 03:12:26 -0700</bug_when>
    <thetext>I tried to reproduce the issue in current trunk patching next to not force AC mode, and I couldn&apos;t reproduce it. Neither with 2.24.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553847</commentid>
    <comment_count>7</comment_count>
    <who name="">mail</who>
    <bug_when>2019-07-18 02:11:26 -0700</bug_when>
    <thetext>I&apos;m running Next on Guix, if that can help reproducing the issue.
(Guix can be installed on any GNU/Linux distro.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1553848</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2019-07-18 02:19:31 -0700</bug_when>
    <thetext>Wayland or X11?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1554478</commentid>
    <comment_count>9</comment_count>
    <who name="">mail</who>
    <bug_when>2019-07-20 01:54:58 -0700</bug_when>
    <thetext>X11.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>