<?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>273975</bug_id>
          
          <creation_ts>2024-05-09 15:30:38 -0700</creation_ts>
          <short_desc>[WPE][GTK] createNewPage in WebKitUIClient.cpp needs some hooking up of the API::PageConfiguration</short_desc>
          <delta_ts>2024-05-16 16:59:22 -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>FIXED</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>
          <dependson>273993</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2034420</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-05-09 15:30:38 -0700</bug_when>
    <thetext>On webkit-dev@, Alex writes:

&quot;createNewPage in WebKitUIClient.cpp needs some hooking up of the API::PageConfiguration in a way I couldn’t figure out in the few minutes I looked at it.  This should be pretty straightforward to someone who knows the glib code better than I do.&quot;

I&apos;m going to propose a pull request to unblock this, but I have a question. In webkitWebContextCreatePageForWebView, we need to take many settings from the related view&apos;s configuration, because this is an API guarantee. Presumably the new API::Configuration object is expected to match the related view, so it&apos;s probably not a problem, but this does mean we won&apos;t respect all of the values set in the API::Configuration in case they are different for some reason. Specifically:

    pageConfiguration-&gt;setProcessPool(context-&gt;priv-&gt;processPool.get());
    pageConfiguration-&gt;setPreferences(webkitSettingsGetPreferences(webkit_web_view_get_settings(webView)));
    pageConfiguration-&gt;setRelatedPage(relatedView ? &amp;webkitWebViewGetPage(relatedView) : nullptr);
    pageConfiguration-&gt;setUserContentController(userContentManager ? webkitUserContentManagerGetUserContentControllerProxy(userContentManager) : nullptr);
    pageConfiguration-&gt;setControlledByAutomation(webkit_web_view_is_controlled_by_automation(webView));

All those will get overridden. I *assume* this is OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034422</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-05-09 15:37:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28365</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035914</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-16 16:59:19 -0700</bug_when>
    <thetext>Committed 278896@main (4f5aa1a1182d): &lt;https://commits.webkit.org/278896@main&gt;

Reviewed commits have been landed. Closing PR #28365 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>