Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression(259658@main) Geolocation permission prompt is no longer showing in modal view #12489

Merged

Conversation

cdumez
Copy link
Contributor

@cdumez cdumez commented Apr 7, 2023

14f4676

Regression(259658@main) Geolocation permission prompt is no longer showing in modal view
https://bugs.webkit.org/show_bug.cgi?id=255133
rdar://107352115

Reviewed by Wenson Hsieh and Tim Horton.

Use the same view controller to present the prompt as the UIWebView code used to.
I have verified locally that this fixes the issue.

* Source/WebKit/UIProcess/ios/WKWebGeolocationPolicyDeciderIOS.mm:
(-[WKWebGeolocationPolicyDecider _executeNextChallenge]):

Canonical link: https://commits.webkit.org/262697@main

891735d

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style   πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe   πŸ›  wincairo
  πŸ›  ios-sim βœ… πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
  πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1   πŸ§ͺ gtk-wk2
βœ… πŸ›  tv   πŸ§ͺ api-ios   πŸ§ͺ api-gtk
βœ… πŸ§ͺ mac-wk2   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
βœ… πŸ›  watch-sim

@cdumez cdumez self-assigned this Apr 7, 2023
@cdumez cdumez added the WebKit2 Bugs relating to the WebKit2 API layer label Apr 7, 2023
@cdumez cdumez force-pushed the 255133_geolocation_prompt_fix branch from e7d960f to 891735d Compare April 7, 2023 01:15
@@ -196,7 +196,7 @@ - (void)_executeNextChallenge
[alert addAction:denyAction];
[alert addAction:allowAction];

[[_activeChallenge->view window].rootViewController presentViewController:alert animated:YES completion:nil];
[[UIViewController _viewControllerForFullScreenPresentationFromView:_activeChallenge->view.get()] presentViewController:alert animated:YES completion:nil];
Copy link
Contributor

Choose a reason for hiding this comment

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

This is what we do throughout WK2 so πŸ‘

@cdumez cdumez added the merge-queue Applied to send a pull request to merge-queue label Apr 7, 2023
…owing in modal view

https://bugs.webkit.org/show_bug.cgi?id=255133
rdar://107352115

Reviewed by Wenson Hsieh and Tim Horton.

Use the same view controller to present the prompt as the UIWebView code used to.
I have verified locally that this fixes the issue.

* Source/WebKit/UIProcess/ios/WKWebGeolocationPolicyDeciderIOS.mm:
(-[WKWebGeolocationPolicyDecider _executeNextChallenge]):

Canonical link: https://commits.webkit.org/262697@main
@webkit-commit-queue
Copy link
Collaborator

Committed 262697@main (14f4676): https://commits.webkit.org/262697@main

Reviewed commits have been landed. Closing PR #12489 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 14f4676 into WebKit:main Apr 7, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit2 Bugs relating to the WebKit2 API layer
Projects
None yet
5 participants