mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 86.0.4240.0 (#800218)
- CefURLRequest::Create is no longer supported in the renderer process (see https://crbug.com/891872). Use CefFrame::CreateURLRequest instead. - Mac platform definitions have been changed from `MACOSX` to `MAC` (see https://crbug.com/1105907) and related CMake macro names have been updated. The old `OS_MACOSX` define is still set in code and CMake for backwards compatibility. - Linux ARM build is currently broken (see https://crbug.com/1123214).
This commit is contained in:
@ -113,15 +113,15 @@ void Send(const SendConfig& config, const RequestDoneCallback& callback) {
|
||||
std::string GetPathURL(const std::string& url) {
|
||||
const size_t index1 = url.find('?');
|
||||
const size_t index2 = url.find('#');
|
||||
size_t index = -1;
|
||||
if (index1 >= 0 && index2 >= 0) {
|
||||
size_t index = std::string::npos;
|
||||
if (index1 != std::string::npos && index2 != std::string::npos) {
|
||||
index = std::min(index1, index2);
|
||||
} else if (index1 >= 0) {
|
||||
} else if (index1 != std::string::npos) {
|
||||
index = index1;
|
||||
} else if (index2 >= 0) {
|
||||
} else if (index2 != std::string::npos) {
|
||||
index = index2;
|
||||
}
|
||||
if (index >= 0) {
|
||||
if (index != std::string::npos) {
|
||||
return url.substr(0, index);
|
||||
}
|
||||
return url;
|
||||
|
Reference in New Issue
Block a user