Skip to content

PermissionRequestType is out of sync compared to cef_permission_request_types_t #4935

@szanto90balazs

Description

@szanto90balazs

Is there an existing issue for this?

  • I have searched both open/closed issues, no issue already exists.

CefSharp Version

128.4.90

Operating System

Windows 11

Architecture

x64

.Net Version

.Net 6.0

Implementation

WPF

Reproduction Steps

  1. Run the CefSharp.Wpf.Example app with debugger attached
  2. Go to https://permission.site/
  3. Click on the Location button
  4. Go to the Debug output and find the following debug line sent by this code (System.Diagnostics.Debug.WriteLine($"{promptId}|{requestedPermissions} {requestingOrigin}");)

Expected behavior

Expected: 1|Geolocation https://permission.site/

Actual behavior

Actual: 1|MicStream https://permission.site/

Regression?

The C# PermissionRequestType enum and the C++ cef_permission_request_types_t enum got out of sync, seems like since this CEF commit: chromiumembedded/cef@dc2231c

image

Known Workarounds

You could introduce MyPermissionRequestType based on the values of cef_permission_request_types_t and cast PermissionRequestType to uint to MyPermissionRequestType, this will require a custom permission handler implementation.

Does this problem also occur in the CEF Sample Application

No

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions