-
Notifications
You must be signed in to change notification settings - Fork 3k
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
runJavaScriptAlertPanelWithMessage completion handler not called #12709
Comments
➤ Laurie Marceau commented: It seems we need to call the completion handler in the two following codepath on the delegate call
|
➤ Laurie Marceau commented: Has a high occurrence in 108.1, should be fixed as soon as possible. |
➤ Laurie Marceau commented: Had another look, it seems the problem relates to the queueing of JS alerts. When the webview isn’t shown (or there’s something else showing on top) we queue the alert which means the webview completion handler isn’t called right away. I tested in Safari if they do some equivalent of this, and it seems they indeed do some queuing (when you come back to the tab, the JS alert is there). What I used for test: JavaScript AlertTry it <script> setTimeout(function() { alert("I am an alert box!"); }, 5000); // Delay 5 seconds </script> |
➤ Yoana Rios Diaz commented: Note to QA: The crash was related to Javascript alert being queued on a Tab and not showing once the tab became active again.
Expected:
Actual:
|
➤ Simion Basca commented: Verifying as fix on v110 (27314) |
➤ Simion Basca commented: Re-opening since the fix for this issue has been reverted. |
➤ Yoana Rios Diaz commented: The fix for this ticket https://mozilla-hub.atlassian.net/browse/FXIOS-5787 ( https://mozilla-hub.atlassian.net/browse/FXIOS-5787|smart-link ) should fix the root cause of this crash too |
➤ Andrei Bodea commented: Verified as fixed on v9000 (29995) with iPhone 13 Pro (15.7.1). As the https://mozilla-hub.atlassian.net/browse/FXIOS-5787 ( https://mozilla-hub.atlassian.net/browse/FXIOS-5787|smart-link ) was verified. Yoana Rios Diaz I think we can re-open this in case we see again the crash, is this fine by closing it? |
➤ Yoana Rios Diaz commented: Andrei Bodea yes I think we can close it 🤞 and reopen again if the crash returns |
Sentry report
Completion handler passed to -[Client.BrowserViewController webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:] was not called
Probably relates to this Xcode trace
!Screen Shot 2022-12-15 at 2.09.03 PM.png|width=1171,height=580!
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: