8000 [Feature Request]: setPermissionRequestHandler should pass the requesting frame in the details · Issue #30683 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature Request]: setPermissionRequestHandler should pass the requesting frame in the details #30683
Open
@nornagon

Description

@nornagon

Preflight Checklist

Problem Description

session.setPermissionRequestHandler provides a webContents and isMainFrame, but there is no way to know which specific frame the permission request came from.

Proposed Solution

Provide a reference to the specific frame which originated the request, as a WebFrameMain in the details structure.

Alternatives Considered

I think if we were designing this API today we'd pass a WebFrameMain as the first arg instead of a WebContents, but for back compat let's add the frame to the details.

Additional Information

NA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0