<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pending API request URL no set when loading Alternate HTML or plain text"
   href="https://bugs.webkit.org/show_bug.cgi?id=136916#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pending API request URL no set when loading Alternate HTML or plain text"
   href="https://bugs.webkit.org/show_bug.cgi?id=136916">bug 136916</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=136916#c12">comment #12</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=243974&amp;action=diff" name="attach_243974" title="Now also including the xcode file changes">attachment 243974</a> <a href="attachment.cgi?id=243974&amp;action=edit" title="Now also including the xcode file changes">[details]</a></span>
&gt; Now also including the xcode file changes
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=243974&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=243974&amp;action=review</a>
&gt; 
&gt; I’m saying review+ but I’d still like to understand if Anders agrees about
&gt; this use of &quot;about:blank&quot;.
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/WebPageProxy.cpp:860
&gt; &gt; +    auto transaction = m_pageLoadState.transaction();
&gt; &gt; +    m_pageLoadState.setPendingAPIRequestURL(transaction, ASCIILiteral(&quot;about:blank&quot;));
&gt; 
&gt; I think it’s a little peculiar to actually set the URL to about::blank here.
&gt; Do we agree that explicitly giving it this particular URL makes sense? Does
&gt; WebKit already treat this as if it came from that URL in other ways or is
&gt; that a new concept we are introducing? If WebKit does already use this URL
&gt; then why are we having to inject it specifically here?
&gt; 
&gt; I think this would read better without the local variable even though the
&gt; other function does have it in a local variable since it uses it twice. I
&gt; think blankURL().string() is better than ASCIILiteral(&quot;about:blank&quot;).
&gt; 
&gt;     m_pageLoadState.setPendingAPIRequestURL(m_pageLoadState.transaction(),
&gt; blankURL().string());</span >

The local variable is not because it's reused, but because we want the transaction to be finished when the function goes out of scope, the transaction destructor is the one committing the changes to the page load state.</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>