<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Environment variables for enabling/disabling AC mode should take precedence over the API."
   href="https://bugs.webkit.org/show_bug.cgi?id=167605">167605</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] Environment variables for enabling/disabling AC mode should take precedence over the API.
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>clopez&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>167509
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After r211363 &lt;<a href="http://trac.webkit.org/r211363">http://trac.webkit.org/r211363</a>&gt; the WEBKIT_DISABLE_COMPOSITING_MODE environment variable not longer works as one should expect.

Not sure if this was intentional or not.

But I think we should bring back this environment variable, and make it take precedence over any API setting that the application defines.


This is useful for the following use cases:

 * Testing if disabling AC makes a difference without having to rebuild the application to add a different API call. 
 * Letting the user override the application acceleration hardware policy, which is useful when the user has a broken graphics drivers, and despite of that wants to use a WebKitGTK+ based application that enables AC mode by default (or that enables it ondemand).

    - For example, users of nvidia binary graphics drivers right now can only use Epiphany flatpaks with this environment variable. Otherwise the browser will crash when trying to enter into AC mode. And I don't expect Epiphany to disable AC.

    - So with this at least the user can use this environment variable at runtime to override the HW policy settings of the application 



And the same for the other variable WEBKIT_FORCE_COMPISITING_MODE</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>