mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix bugs and test failures with browser-side navigation (issue #2290)
This commit is contained in:
22
libcef/browser/net/net_util.cc
Normal file
22
libcef/browser/net/net_util.cc
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include "libcef/browser/net/net_util.h"
|
||||
|
||||
#include "net/url_request/url_request.h"
|
||||
#include "url/url_constants.h"
|
||||
|
||||
namespace net_util {
|
||||
|
||||
bool IsInternalRequest(net::URLRequest* request) {
|
||||
// With PlzNavigate we now receive blob URLs. Ignore these URLs.
|
||||
// See https://crbug.com/776884 for details.
|
||||
if (request->url().SchemeIs(url::kBlobScheme)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}; // namespace net_util
|
Reference in New Issue
Block a user