Skip to content

fix: undefined details.requestingUrl from session.setPermissionCheckHandler - #35281

Merged
zcbenz merged 1 commit into
mainfrom
robo/fix_permission_handler_details
Aug 23, 2022
Merged

fix: undefined details.requestingUrl from session.setPermissionCheckHandler#35281
zcbenz merged 1 commit into
mainfrom
robo/fix_permission_handler_details

Conversation

@deepak1556

@deepak1556 deepak1556 commented Aug 9, 2022

Copy link
Copy Markdown
Member

Description of Change

With 7e59d78, https://chromium-review.googlesource.com/c/chromium/src/+/3495142 deprecates GetPermissionStatusForFrame in favor of GetPermissionStatusForCurrentDocument and the latter always called into GetPermissionStatus which does not have a frame context leading to empty RenderFrameHost causing the above issue.

Depends on #35292

Checklist

Release Notes

Notes: fix undefined details.requestingUrl from session.setPermissionCheckHandler

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 9, 2022
@deepak1556 deepak1556 added semver/patch backwards-compatible bug fixes target/19-x-y target/21-x-y PR should also be added to the "21-x-y" branch. labels Aug 9, 2022

@miniak miniak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the WebFrameMain::ExecuteJavaScript change should be a separate PR

@deepak1556
deepak1556 force-pushed the robo/fix_permission_handler_details branch from 06f1491 to a8f0c4a Compare August 10, 2022 04:27
@deepak1556
deepak1556 requested a review from miniak August 10, 2022 04:27
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Aug 10, 2022
@deepak1556
deepak1556 force-pushed the robo/fix_permission_handler_details branch from a8f0c4a to b63dc8e Compare August 17, 2022 15:17
@zcbenz
zcbenz merged commit 33325e3 into main Aug 23, 2022
@zcbenz
zcbenz deleted the robo/fix_permission_handler_details branch August 23, 2022 01:25
@release-clerk

release-clerk Bot commented Aug 23, 2022

Copy link
Copy Markdown

Release Notes Persisted

fix undefined details.requestingUrl from session.setPermissionCheckHandler

@trop

trop Bot commented Aug 23, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "19-x-y", please check out #35407

@trop

trop Bot commented Aug 23, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "20-x-y", please check out #35408

@trop

trop Bot commented Aug 23, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "21-x-y", please check out #35409

@trop trop Bot added merged/21-x-y PR was merged to the "21-x-y" branch. merged/20-x-y and removed target/21-x-y PR should also be added to the "21-x-y" branch. in-flight/21-x-y labels Aug 23, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
…andler (electron#35281)

fix: undefined details.requestingUrl from setPermissionCheckHandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/21-x-y PR was merged to the "21-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants