-
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
fix: fix firefox redirection from old dot #18631
fix: fix firefox redirection from old dot #18631
Conversation
@ntdiary will you want to do all the testing and reviewer checklist? |
@mountiny , yeah, I would be glad to to these things if permitted. : ) |
@ntdiary Of course, I think you can do all the checklist and review just fine once this is not a draft |
@neil-marcellini Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@koko57 just noting the issue was incorrectly linked, it must be:
Just for future prs its easy to miss this :D |
Sorry for the ping Neil |
@@ -87,7 +87,7 @@ class DeeplinkWrapper extends PureComponent { | |||
// This check is necessary for Safari, otherwise, if the user | |||
// does NOT have the Expensify desktop app installed, it's gonna | |||
// show an error in the page saying that the address is invalid | |||
if (CONST.BROWSER.SAFARI === Browser.getBrowser()) { | |||
if (CONST.BROWSER.SAFARI === Browser.getBrowser() || CONST.BROWSER.FIREFOX === Browser.getBrowser()) { |
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.
if (CONST.BROWSER.SAFARI === Browser.getBrowser() || CONST.BROWSER.FIREFOX === Browser.getBrowser()) { | |
// This check is also necessary for Firefox, otherwise the window.location.href redirect will abort the fetch request from NetInfo, | |
// which will cause the app to go offline temporarily. | |
const browser = Browser.getBrowser(); | |
if (browser === CONST.BROWSER.SAFARI || browser === CONST.BROWSER.FIREFOX) { |
A small suggestion, hope it can help others understand the intention of the code, and reduce one call to the getBrowser
function. : )
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.
Thanks 😊
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
Reviewer Checklist
Screenshots/VideosWebfirefox.mp4Mobile Web - ChromeN/AMobile Web - SafariN/ADesktopN/AiOSN/AAndroidN/A |
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.
|
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
…refox fix: fix firefox redirection from old dot (cherry picked from commit 7db9619)
…-18631 🍒 Cherry pick PR #18631 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.15-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.15-12 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Second attempt to fix firefox redirection issue.
Fixed Issues
$ #17630
PROPOSAL: #17630
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
(This is how I was able to reproduce it locally, it won't look that way in production ;) )not_working.mov
working.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android