Open
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
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