mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 122.0.6261.0 (#1250580)
Frame identifiers have changed from int64_t to string type. This is due to https://crbug.com/1502660 which removes access to frame routing IDs in the renderer process. New cross-process frame identifiers are 160-bit values (32-bit child process ID + 128-bit local frame token) and most easily represented as strings. All other frame-related expectations and behaviors remain the same.
This commit is contained in:
@ -191,6 +191,8 @@ cef_permission_request_types_t GetCefRequestType(
|
||||
return CEF_PERMISSION_TYPE_CAMERA_PAN_TILT_ZOOM;
|
||||
case permissions::RequestType::kCameraStream:
|
||||
return CEF_PERMISSION_TYPE_CAMERA_STREAM;
|
||||
case permissions::RequestType::kCapturedSurfaceControl:
|
||||
return CEF_PERMISSION_TYPE_CAPTURED_SURFACE_CONTROL;
|
||||
case permissions::RequestType::kClipboard:
|
||||
return CEF_PERMISSION_TYPE_CLIPBOARD;
|
||||
case permissions::RequestType::kDiskQuota:
|
||||
@ -236,7 +238,7 @@ cef_permission_request_types_t GetCefRequestType(
|
||||
uint32_t GetRequestedPermissions(
|
||||
permissions::PermissionPrompt::Delegate* delegate) {
|
||||
uint32_t permissions = CEF_PERMISSION_TYPE_NONE;
|
||||
for (const auto* request : delegate->Requests()) {
|
||||
for (const auto& request : delegate->Requests()) {
|
||||
permissions |= GetCefRequestType(request->request_type());
|
||||
}
|
||||
return permissions;
|
||||
|
Reference in New Issue
Block a user