<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: when testing frontend, inserting external resource in DOM crashes WebKit"
href="https://bugs.webkit.org/show_bug.cgi?id=151398#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: when testing frontend, inserting external resource in DOM crashes WebKit"
href="https://bugs.webkit.org/show_bug.cgi?id=151398">bug 151398</a>
from <span class="vcard"><a class="email" href="mailto:joepeck@webkit.org" title="Joseph Pecoraro <joepeck@webkit.org>"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
<pre>This is happening because the FrameLoaderClient clears the request:
void ResourceLoadNotifier::dispatchWillSendRequest(DocumentLoader* loader, unsigned long identifier, ResourceRequest& request, const ResourceResponse& redirectResponse)
{
...
String oldRequestURL = request.url().string();
m_frame.loader().documentLoader()->didTellClientAboutLoad(request.url());
m_frame.loader().client().dispatchWillSendRequest(loader, identifier, request, redirectResponse);
// If the URL changed, then we want to put that new URL in the "did tell client" set too.
if (!request.isNull() && oldRequestURL != request.url().string())
m_frame.loader().documentLoader()->didTellClientAboutLoad(request.url());
InspectorInstrumentation::willSendRequest(&m_frame, identifier, loader, request, redirectResponse);
...
}
In this case, the inspector code and below does not gracefully handle a null string.</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>