mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 59d44948 (#323860)
This commit is contained in:
@ -307,9 +307,6 @@ void CefBrowserImpl::LoadRequest(const CefMsg_LoadRequest_Params& params) {
|
||||
|
||||
blink::WebURLRequest request(params.url);
|
||||
|
||||
// DidCreateDataSource checks for this value.
|
||||
request.setRequestorID(-1);
|
||||
|
||||
if (!params.method.empty())
|
||||
request.setHTTPMethod(base::ASCIIToUTF16(params.method));
|
||||
|
||||
@ -574,30 +571,6 @@ void CefBrowserImpl::FocusedNodeChanged(const blink::WebNode& node) {
|
||||
}
|
||||
}
|
||||
|
||||
void CefBrowserImpl::DidCreateDataSource(blink::WebLocalFrame* frame,
|
||||
blink::WebDataSource* ds) {
|
||||
const blink::WebURLRequest& request = ds->request();
|
||||
if (request.requestorID() == -1) {
|
||||
// Mark the request as browser-initiated so
|
||||
// RenderViewImpl::decidePolicyForNavigation won't attempt to fork it.
|
||||
content::DocumentState* document_state =
|
||||
content::DocumentState::FromDataSource(ds);
|
||||
document_state->set_navigation_state(
|
||||
content::NavigationStateImpl::CreateBrowserInitiated(
|
||||
content::CommonNavigationParams(),
|
||||
content::StartNavigationParams(),
|
||||
content::HistoryNavigationParams()));
|
||||
}
|
||||
|
||||
if (frame->parent() == 0) {
|
||||
GURL url = ds->request().url();
|
||||
if (!url.is_empty()) {
|
||||
// Notify that the loading URL has changed.
|
||||
Send(new CefHostMsg_LoadingURLChange(routing_id(), url));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool CefBrowserImpl::OnMessageReceived(const IPC::Message& message) {
|
||||
bool handled = true;
|
||||
IPC_BEGIN_MESSAGE_MAP(CefBrowserImpl, message)
|
||||
|
Reference in New Issue
Block a user