| Index: webkit/glue/webframeloaderclient_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webframeloaderclient_impl.cc (revision 16750)
|
| +++ webkit/glue/webframeloaderclient_impl.cc (working copy)
|
| @@ -224,15 +224,16 @@
|
| // first-party request.
|
| if (request.targetType() != ResourceRequest::TargetIsMainFrame &&
|
| webframe_->frame()->document()) {
|
| - request.setPolicyURL(webframe_->frame()->document()->policyBaseURL());
|
| + request.setPolicyURL(
|
| + webframe_->frame()->document()->firstPartyForCookies());
|
| }
|
|
|
| // FrameLoader::loadEmptyDocumentSynchronously() creates an empty document
|
| // with no URL. We don't like that, so we'll rename it to about:blank.
|
| if (request.url().isEmpty())
|
| request.setURL(KURL("about:blank"));
|
| - if (request.mainDocumentURL().isEmpty())
|
| - request.setMainDocumentURL(KURL("about:blank"));
|
| + if (request.firstPartyForCookies().isEmpty())
|
| + request.setFirstPartyForCookies(KURL("about:blank"));
|
|
|
| // Give the delegate a crack at the request.
|
| WebViewImpl* webview = webframe_->GetWebViewImpl();
|
|
|