<?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>187172</bug_id>
          
          <creation_ts>2018-06-29 02:39:37 -0700</creation_ts>
          <short_desc>[GTK] web inspector does not work with is-ephemeral set to true</short_desc>
          <delta_ts>2018-07-11 02:11:20 -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 Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gaute Hope">eg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1437730</commentid>
    <comment_count>0</comment_count>
    <who name="Gaute Hope">eg</who>
    <bug_when>2018-06-29 02:39:37 -0700</bug_when>
    <thetext>Hi,

it seems that the web inspector cannot be attached when is-ephemeral is set to TRUE. The docs only mention that developer-extras must be enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437731</commentid>
    <comment_count>1</comment_count>
    <who name="Gaute Hope">eg</who>
    <bug_when>2018-06-29 02:43:39 -0700</bug_when>
    <thetext>Relevant code: https://github.com/gauteh/astroid/blob/41acfc5a6b800120e82fad5a6d02e17a604fc63f/src/modes/thread_view/thread_view.cc#L87</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437742</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-06-29 03:50:41 -0700</bug_when>
    <thetext>Epiphany&apos;s incognito windows use ephemeral web contexts, and the
inspector works fine there.

I am not sure whether this would be the reason, but one difference
between the code you linked from Astroid and Epiphany is:

 - Epiphany uses g_object_new() to pass *both* the WebKitWebContext
   and the WebKitSettings objects at construction time.

 - Astroid uses webkit_web_view_new_with_context(), which sets the
   WebKitWebContext only at construction time. After the WebKitWebView
   has been constructed, later on it uses webkit_web_view_set_settings().

Could it be that for some reason some settings cannot are not being
applied correctly when the WebKitSettings is changed after construction
and the WebKitWebContext is ephemeral? If there is something inside
WebKit that prevents the second usage pattern, we should at least add
some notes to the API documentation.

I am adding Carlos García and Michael Catanzaro on CC, because they
might have some idea about this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1440837</commentid>
    <comment_count>3</comment_count>
    <who name="Gaute Hope">eg</who>
    <bug_when>2018-07-10 07:33:50 -0700</bug_when>
    <thetext>Using g_object_new (...) and passing a context generated using ..context_new_ephemeral() as well as settings (not with any is-ephemeral property) works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441140</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-07-11 02:11:20 -0700</bug_when>
    <thetext>You&apos;re trying to set the is-ephemeral property of WebKitWebSettings, which does not exist. I&apos;m surprised there is no nasty runtime warning about this.

is-ephemeral is a construct-only property of WebKitWebView and WebKitWebsiteDataManager. It&apos;s not a WebKitWebSettings property. The property cannot be changed after construct time.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>