-
Notifications
You must be signed in to change notification settings - Fork 16
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
Navigation failure handled in navigation bar buttons and their menus #540
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, very long awaited fix, @tomasstrba!
Couple of issues I found though:
- Search for "a"
- Search for "b"
- Go back
- Paste&go to https://expired.badssl.com/
- When error displayed the Forward button is still enabled and Forward menu shows "✅ Oops, a, b". It shouldn't be shown or at least don‘t diplay the "a" item
Another one:
- Search for "a"
- Paste&go to https://expired.badssl.com/
- Without waiting for error screen to display paste&go to https://expired.badssl.com/ again
- webView.reload() is triggered instead of loadRequest for https://expired.badssl.com/ and SERP for "a" is loaded instead
Also if you don‘t mind could you fix another annoying bug:
- Open new tab
- Navigate to https://expired.badssl.com/
- Progress is not hidden when error appears and keeps going
- this can be fixed by...
Wrapping ProgressView.swift:182 into DispatchQueue.main.async! Ba-dum-tss 🥁
Thanks Alex! 👍 I will address all issues tomorrow. |
@mallexxx I wasn't able to resolve issues 2 and 4 in a reasonable time. Since they aren't the scope of this PR, can we move on and land the back/forward button improvement? |
Sorry, @tomasstrba , didn‘t notice your comment, will review today! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better now :)
There's still the "b" search in the forward menu if you go back from the error screen but I suppose we can live with it for now. Would you please set up a follow-up task for making a custom wrapper for the back-forward stack and feel free to merge after resolving the conflict
Alex, wow thanks a lot for the layout settings! 🙏 I merged those, resolved the conflict and re-tested again and scoped next steps in https://app.asana.com/0/1177771139624306/1202210923581858/f |
# By Sam Symons (2) and others # Via Sam Symons (2) and GitHub (1) * develop: Autoconsent: prompt only when if an actual cookie popup is found (#565) Fix incorrect action name for selfTest (#561) BSK: Check array items for surrogate methods (#563) BSK: Check array items for surrogate methods (#563) Navigation failure handled in navigation bar buttons and their menus (#540) Version 0.23.1 Ensure that we don’t trip an assertion failure when Fireproofing. (#559) Tweak autoconsent events (#554) Remove Punycode reference after recent bump of BSK (#560) If navigationAction does not target main frame open in new tab (#557) Use macos-12 environment in GitHub Actions workflows (#556) Version 0.23.0 # Conflicts: # DuckDuckGo.xcodeproj/project.pbxproj
Task/Issue URL: https://app.asana.com/0/1177771139624306/1201217438689718/f
Description:
Making back/forward navigation buttons and their menus able to cope with navigation error.
Steps to test this PR:
Test back/forward buttons and their menus in regular usage
Test closing back to the parent tab using the back button
Test going back after navigation error
Testing checklist:
Internal references:
Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM