-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Awaiting Payment][$1000] Chat - Google meet opens in new window instead of new tab #24288
Comments
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~0129c8265c6b7e57ae |
Current assignee @garrettmknight is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Confirmed on Safari. Chrome opens a new tab so I think we'll want to update this for consistency. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Google meet opens in new window instead of new tab What is the root cause of that problem?It's safari default behaviour What changes do you think we should make in order to solve the problem?We can use the same logic here that we are using while opening help page App/src/pages/settings/InitialSettingsPage.js Line 245 in c08d588
here We can change it to Link.openExternalLink(props.googleMeetURL); We need to change this for zoom link too What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.It should start google meeting in same window but in new tab like Chrome What is the root cause of that problem?When you click the Google Meet or Zoom button in the menu, BaseVideoChatButtonAndMenu.js file is running Linking.openURL. What changes do you think we should make in order to solve the problem?For web, if you're using React Native Web or any library that uses the web's built-in navigation API, you can use the the window. Open(url, '_self') method to navigate to a URL in the same tab. if (Platform.OS === 'web') { What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Google meet opens in new window instead of new tab What is the root cause of that problem?This seems due to default browser behavior in ios platform. What changes do you think we should make in order to solve the problem?For header context menu's Linking.openURL(CONST.NEW_ZOOM_MEETING_URL) to Link.openExternalLink(CONST.NEW_ZOOM_MEETING_URL) Also apply the same change for Google meet menu item as well. What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
if (Browser.getBrowser() === CONST.BROWSER.SAFARI) {
window.open(props.googleMeetURL, '_blank');
} else {
Linking.openURL(props.googleMeetURL);
} What alternative solutions did you explore? (Optional)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Linking.openURL(url) opens in new window instead of new tab What is the root cause of that problem?It's Safari's default behavior. In the Linking component:
The problem is What changes do you think we should make in order to solve the problem?We need to define a new openLinkOnNewTab function.
What alternative solutions did you explore? (Optional)N/A |
📣 @Pluto0104! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Google meet opens in new window instead of new tab in safari browser What is the root cause of that problem?Linking.openURL() in React Native does not control whether a link opens in a new tab or new window within a WebView. WebView behavior is determined by how the WebView component is implemented and configured in app. Linking.openURL() in React Native, it opens the URL using the device's default browser or an external browser app. It does not directly manipulate the behavior of a WebView within your app. What changes do you think we should make in order to solve the problem?Just use the below code to solve the issue in file ```
Screen.Recording.2023-08-09.at.3.54.21.PM.movWhat alternative solutions did you explore? (Optional) |
Check my Proposal |
The behavior you're observing, where Google Meet opens in a new window instead of a new tab, is influenced by Safari's settings. In Safari, there's a preference that determines how links open, either in a new window or a new tab. By default, Safari might be set to open links in a new window, especially when they're triggered programmatically, like in our app. This behavior can be modified in the Safari preferences.
By adjusting this setting, links should now open in new tabs instead of new windows. However, it's essential to note that individual user settings and extensions might override this behavior. Grabacion.de.pantalla.2023-08-10.a.la.s.12.44.44.mov |
@grafaleg Fair point - I still think we want to set this to default to consistent behavior where possible, but that might be a good note to make in the reproduction steps or QA process. |
|
@sobitneupane can you take a look at these proposals when you get a chance? |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@sobitneupane can you complete the checklist when you get a chance? |
@garrettmknight @sobitneupane @techievivek @Nodebrute this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @sobitneupane is eligible for the Internal assigner, not assigning anyone new. |
The bug is fixed, melv! |
The issue reported here is default behavior of Safari and was probably present from the very beginning. Rather than a bug, it was an improvement on the app. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Requested payment on newDot. |
$1,500 approved for payment via NewDot based on BZ summary. |
Leaving open for regression test. |
Regression tests #24288 (comment) looks good to me, @garrettmknight can we please get this added to testRail. Thanks |
Gentle bump @garrettmknight for adding the regression test to testRail. |
Done! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
It should start google meeting in same window but in new tab like Chrome
Actual Result:
Starts meeting in new window
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.50.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-08-02.at.2.15.03.AM.1.mov
2023-08-07.11.00.55.mp4
Expensify/Expensify Issue URL:
Issue reported by: @DinalJivani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690922869306029
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: