New issue
Advanced search Search tips

Issue 909646 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

When having Two chrome instances, slack notifications try to open in Both

Reported by erik.ziv...@gmail.com, Nov 28

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Steps to reproduce the problem:
1. Start one instance of Google Chrome normally
2. Start a second instance of Google Chrome using /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/some/path/ > /dev/null 2>&1 &
3. Log into a slack account on the second instance.
4. Allow notifications
5. Ask someone to send you a message, and move focus to another tab or window.

What is the expected behavior?
Before Chrome 68 (or somewhere thereabouts) the notification opened in the correct browser instance + correct tab on the second instance.

The expected behavior is for the notification to target the correct browser instance + tab as before.

What went wrong?
The first (wrong) instance opens a new Slack tab with an affordance to log into slack.

The second (correct) instance opens as well, but is often unfocused because the first (wrong) instance steals focus.

Did this work before? Yes 68 or 67, I think

Chrome version: 70.0.3538.110  Channel: stable
OS Version: OS X 10.14.1
Flash Version: 

I was hoping for this bug getting fixed without posting a bug report, so I don't remember the exact version this stopped working. But it was pretty recent (a few months)

If you fix this I will be a very happy puppy 🐶
 
To clarify: After step 5:

Step 6: Click the notification as it appears in the upper right corner of the OS.
Labels: Needs-Triage-M70 Needs-Bisect
Cc: swarnasree.mukkala@chromium.org
Components: -UI UI>Notifications
Labels: Needs-Feedback Triaged-ET
Tried testing the issue on reported chrome version #70.0.3538.110 using Mac 10.14.1 by following below steps.

Steps:
=====
1.Launched chrome normally.
2.Launched second instance of chrome through the terminal(using command mentioned in comment#0).
3.Signed into the Slack account and allowed notifications.
4.Moved the focus to another tab.
5.When a new message is received, a notification has been received.
6.Clicked on notification, it navigated to the correct window+tab.
7.Tried testing same, by moving focus to the prior window opened.
8.When a new message is received unable to see any notification.

Attached screencast for reference.
@reporter: Could you please review attached screencast and let us know if anything is being missed here.
Thanks.!
909646.mp4
4.7 MB View Download
That is unfortunately incorrect. Since you did not change "/some/path" to something valid, you do not get a NEW chrome instance, you just get the same chrome instance you already had only in a second window of that instance.

Please change "/some/path" to (on mac): "/Users/<MY USERNAME>/<SOME DIR YOU CREATED SO YOU DONT POLLUTE YOUR HOME DIR>"

In my case it is e.g. mkdir -p "/Users/myuser/secondchrome"
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 29

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Tried testing issue on reported chrome version #70.0.3538.110 using Mac OS 10.14.1 by following below steps.

Steps:
=====
1.Launched chrome normally.
2.Made a directory using mkdir -p "/Downloads/myuser/secondChrome"
3.In terminal using "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/Downloads/myuser/secondChrome > /dev/null 2>&1 &" launched second instance of chrome.
4.Signed into Slack account and allowed notifications.
5.Moved focus to another tab, and received a new message notification.
6.After clicking on the notification, it switched to the tab where my slack account has been opened without opening a new tab.
7.Tested the same by moving focus to prior opened window and found the same result as mentioned in Step6.

Attached screencast for reference.
@reporter: Could you please review attached screencast and let us know if anything is being missed here. Request you to provide the screencast of the issue so that it would be really helpful in triaging the issue.
Thanks.!
909646_New.mp4
3.3 MB View Download
I can see clearly in your video that Chrome says "Google Chrome cannot read and write to its data directory: /Downloads/myuser/secondChrome", which is a clear indication that you did not get a completely new instance of Chrome, just a new window in the same Chrome instance.

In step 3 you clearly point Chrome to ANOTHER directory than the one you created!
My guess is that you created the directory "Downloads/myuser/secondChrome" inside "/Users/<myuser>" ===> The actual created directory is "/Users/<myuser>/Downloads/myuser/secondChrome" - But then you launch chrome using "/Downloads/myuser/secondChrome" which obviously is a directory that does NOT exist.

May I suggest that you do "pwd" in the terminal after creating your chrome profile directory so that you can make sure that the directory you created actually exists.

Please make sure, very carefully, that the directory you created and the path that you give to the new chrome instance are EXACTLY THE SAME, and that it does in fact exist!

Thank you!
Project Member

Comment 8 by sheriffbot@chromium.org, Dec 11

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: ellyjo...@chromium.org
Status: WontFix (was: Unconfirmed)
Running two instances of Chrome with different user-data-dirs is generally an unsupported scenario. We recommend that you use separate profiles (see the profile selector next to the 3-dot button on the top of Chrome).

In your case, I suspect Slack has also registered for notifications in your first instance of Chrome. You'll need to clear that permission in your first instance to avoid duplicate notifications as well as activating the correct instance of Chrome in the unsupported scenario.
Well seeing as this has worked perfectly up until recently I am disappointed, but we all have a job to do I guess.

Sign in to add a comment