New issue
Advanced search Search tips

Issue 676313 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 671916


Show other hotlists

Hotlists containing this issue:
MacViews-Task-Queue


Sign in to add a comment

MacViews: External request to open a URL in background brings browser window to foreground.

Reported by an...@yandex-team.ru, Dec 21 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12

Steps to reproduce the problem:
1. Set Chromium as the default browser.
2. Either launch Chromium (case 1) or don't launch it yet (case 2).
3. Switch to Mail.app, or Twitter.app or any other native app that supports opening browser links behind that app.
4. Within Mail.app, open context menu on a link, click on menu item "Open Link Behind"

or:

1. From the terminal, use `open -g` command to open a link in the background, for example:
    open -g -a <path-to>/Chromium.app https://example.com

What is the expected behavior?
Link opens in a new tab in Chromium, but Chromium window remains in background. The window of the app from which the link is clicked stays in the foreground and retains focus.

What went wrong?
Link opened and Chromium window moved to the foreground.

Did this work before? No 

Chrome version: 57.0.2957.0  Channel: dev
OS Version: OS X 10.12.2
Flash Version: off

Related to  Issue 500038 
 

Comment 1 by tapted@chromium.org, Dec 21 2016

Blocking: 671916
Components: -UI Internals>Views UI>Browser
Labels: phase4 Proj-MacViews
Status: Available (was: Unconfirmed)
Widget::ShowInactive() probably the way to achieve this, but special-cased for Mac to handle the `Do not bring application to the foreground` case. (i.e. we can't change Widget::Show() to not activate on Mac).
I've submitted a patch for the case when Chromium is already launched (case 1): https://codereview.chromium.org/2596763003/

Currently there seems to be a lack of macOS experts to review it thoroughly.
Labels: M-60
Labels: MacViews-Browser
Labels: -M-60 -phase4 -Via-Wizard-UI Target-69
Owner: sdy@chromium.org
Status: Assigned (was: Available)
MacViews triage: this repros locally; over to sdy@ for window issues. Let's target M69 for this.

Comment 6 by gov...@chromium.org, Mar 27 2018

Labels: M-69

Comment 7 by sdy@chromium.org, Jun 11 2018

Labels: Hotlist-Helper
Labels: -M-69 Group-Views_Regressions_from_Cocoa
Labels: M-69
Cc: erikc...@chromium.org
Labels: Needs-TestConfirmation
Is this still an issue?
Labels: -Needs-TestConfirmation Triaged-ET Needs-Milestone
Still able to reproduce the issue on mac 10.13.3 using latest chromium version #69.0.3496.0.
Attached a screen cast for reference.
Following are the steps followed to reproduce the issue.
------------
1. Set Chromium as the default browser.
2. Launched Chromium.
3. Switched to Mail.app.
4. Within Mail.app, opened context menu on a link, click on menu item "Open Link Behind".
5. Observed that link opened and Chromium window moved to the foreground, which is the issue.
Thanks...!!

676313.mp4
1.8 MB View Download
Labels: -M-69 -Target-69 M-70 Target-70
Labels: Hotlist-DesktopUIChecked Hotlist-DesktopUIValid
**UI Mass Triage**

This issue is still reproducible on latest canary #72.0.3618.0. Adding appropriate labels.

 Issue 917967  has been merged into this issue.

Sign in to add a comment