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:
		@@ -25,6 +25,7 @@
 | 
			
		||||
#include "base/macros.h"
 | 
			
		||||
#include "base/memory/ptr_util.h"
 | 
			
		||||
#include "base/strings/string_number_conversions.h"
 | 
			
		||||
#include "base/strings/string_util.h"
 | 
			
		||||
#include "base/strings/stringprintf.h"
 | 
			
		||||
#include "base/strings/utf_string_conversions.h"
 | 
			
		||||
#include "base/task/post_task.h"
 | 
			
		||||
@@ -538,7 +539,7 @@ void CefDevToolsFrontend::DispatchProtocolMessage(
 | 
			
		||||
  if (ProtocolLoggingEnabled()) {
 | 
			
		||||
    // Quick check to avoid parsing the JSON object. Events begin with a
 | 
			
		||||
    // "method" value whereas method results begin with an "id" value.
 | 
			
		||||
    LogProtocolMessage(str_message.starts_with("{\"method\":")
 | 
			
		||||
    LogProtocolMessage(base::StartsWith(str_message, "{\"method\":")
 | 
			
		||||
                           ? ProtocolMessageType::EVENT
 | 
			
		||||
                           : ProtocolMessageType::RESULT,
 | 
			
		||||
                       str_message);
 | 
			
		||||
 
 | 
			
		||||
@@ -5,6 +5,7 @@
 | 
			
		||||
#include "libcef/browser/devtools/devtools_util.h"
 | 
			
		||||
 | 
			
		||||
#include "base/strings/string_number_conversions.h"
 | 
			
		||||
#include "base/strings/string_util.h"
 | 
			
		||||
 | 
			
		||||
namespace devtools_util {
 | 
			
		||||
 | 
			
		||||
@@ -24,7 +25,7 @@ bool ParseEvent(const base::StringPiece& message,
 | 
			
		||||
  static const char kMethodEnd[] = "\"";
 | 
			
		||||
  static const char kParamsStart[] = ",\"params\":";
 | 
			
		||||
 | 
			
		||||
  if (!message.starts_with(kMethodStart))
 | 
			
		||||
  if (!base::StartsWith(message, kMethodStart))
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  const size_t method_start = sizeof(kMethodStart) - 1;
 | 
			
		||||
@@ -41,7 +42,7 @@ bool ParseEvent(const base::StringPiece& message,
 | 
			
		||||
    params = base::StringPiece();
 | 
			
		||||
  } else {
 | 
			
		||||
    const base::StringPiece& remainder = message.substr(remainder_start);
 | 
			
		||||
    if (remainder.starts_with(kParamsStart)) {
 | 
			
		||||
    if (base::StartsWith(remainder, kParamsStart)) {
 | 
			
		||||
      // Stop immediately before the message closing bracket.
 | 
			
		||||
      remainder_start += sizeof(kParamsStart) - 1;
 | 
			
		||||
      params =
 | 
			
		||||
@@ -71,7 +72,7 @@ bool ParseResult(const base::StringPiece& message,
 | 
			
		||||
  static const char kResultStart[] = "\"result\":";
 | 
			
		||||
  static const char kErrorStart[] = "\"error\":";
 | 
			
		||||
 | 
			
		||||
  if (!message.starts_with(kIdStart))
 | 
			
		||||
  if (!base::StartsWith(message, kIdStart))
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  const size_t id_start = sizeof(kIdStart) - 1;
 | 
			
		||||
@@ -84,13 +85,13 @@ bool ParseResult(const base::StringPiece& message,
 | 
			
		||||
 | 
			
		||||
  size_t remainder_start = id_end + sizeof(kIdEnd) - 1;
 | 
			
		||||
  const base::StringPiece& remainder = message.substr(remainder_start);
 | 
			
		||||
  if (remainder.starts_with(kResultStart)) {
 | 
			
		||||
  if (base::StartsWith(remainder, kResultStart)) {
 | 
			
		||||
    // Stop immediately before the message closing bracket.
 | 
			
		||||
    remainder_start += sizeof(kResultStart) - 1;
 | 
			
		||||
    result =
 | 
			
		||||
        message.substr(remainder_start, message.size() - 1 - remainder_start);
 | 
			
		||||
    success = true;
 | 
			
		||||
  } else if (remainder.starts_with(kErrorStart)) {
 | 
			
		||||
  } else if (base::StartsWith(remainder, kErrorStart)) {
 | 
			
		||||
    // Stop immediately before the message closing bracket.
 | 
			
		||||
    remainder_start += sizeof(kErrorStart) - 1;
 | 
			
		||||
    result =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user