<?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>180039</bug_id>
          
          <creation_ts>2017-11-27 08:45:32 -0800</creation_ts>
          <short_desc>[GTK] Prefer using GApplication for suspend inhibitors, if available</short_desc>
          <delta_ts>2017-11-27 09:43:09 -0800</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>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Michael Catanzaro">mcatanzaro</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>1374944</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-27 08:45:32 -0800</bug_when>
    <thetext>If there is a default GApplication, then we should use the GApplication suspend inhibitor API, so that it automatically works inside flatpak.

Currently WebKit is using the org.freedesktop.ScreenSaver D-Bus API, which is blocked by default. It would be better if applications were not required to magically know that they need to whitelist this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374946</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2017-11-27 08:48:11 -0800</bug_when>
    <thetext>Aren&apos;t we going to replace that with an impl in PAL anyway?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374966</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-27 09:42:38 -0800</bug_when>
    <thetext>Yes. The problem I just realized is that, while this will work right now, for WebKitWebViewBase, the only place that takes a sleep inhibitor currently, it conflicts with the task in bug #178485, which would expose inhibitors to the web process and which would inhibit suspend on video playback.

We might need to use the flatpak portal D-Bus API directly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374967</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-27 09:43:02 -0800</bug_when>
    <thetext>(The conflict is because the GtkApplication would not be available in the web process.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>