My favorites | Sign in
Project Home Downloads Wiki Issues
New issue   Search
for
  Advanced search   Search tips
Issue 32921: Opening a downloaded item won't bring it into focus unless the owner app is already opened.
17 people starred this issue and may be notified of changes. Back to list
 
Reported by project member andyb...@chromium.org, Jan 22, 2010
Assuming you have PDF Viewer as your default viewer for PDF files, make sure 
it is closed.

Click to download a PDF file. Wait until it is finished, then click on the 
download item button to open the file.

Observe that it opens in the background but Chrome stays at the front.

It should open and take focus away from Chrome.
Comment 1 by andyb...@chromium.org, Jan 29, 2010
(No comment was entered for this change.)
Status: Assigned
Comment 2 by phajdan...@chromium.org, Jan 30, 2010
(No comment was entered for this change.)
Labels: Area-Feature
Comment 3 by lafo...@chromium.org, Feb 16, 2010
(No comment was entered for this change.)
Labels: -Area-Feature Area-UI
Comment 4 by rsesek@chromium.org, Mar 13, 2010
Taking
Status: Started
Owner: rse...@chromium.org
Cc: andyb...@chromium.org
Comment 5 by rsesek@chromium.org, May 21, 2010
I'm having trouble understanding this bug, especially because it doesn't repro well in the debugger :(. I've also 
noticed the following:

1. Quit Preview, if open.
2. Download a PDF and click the download item button.
3. Preview activates quickly and then deactivates.
4. Quit Preview.
5. Press *the same* download item and Preview activates and stays that way.
6. Quit Preview.
7. Download the same PDF (or a different one).
8. Press the button, and get the same behavior as 3.

So it seems that if the file gets opened once (and you hit this bug), it will not happen subsequent times for that 
file. I stepped through the debugger and they obviously take the same code path, so I do not know what gives.
Status: Assigned
Comment 6 by thakis@chromium.org, May 21, 2010
Preview stays active for me in step 3 (10.5.8).

However, extended attributes on the file change between 2 and 7:

dhcp-172-19-9-120:src thakis$ ls -l@ ~/Downloads/Chrome/BROCHURE_CONGRESSI_4nov.pdf 
-rw-r--r--@ 1 thakis  5000  2326686 May 21 08:31 
/Users/thakis/Downloads/Chrome/BROCHURE_CONGRESSI_4nov.pdf
	com.apple.metadata:kMDItemWhereFroms	    172 
	com.apple.quarantine	     85 
dhcp-172-19-9-120:src thakis$ ls -l@ ~/Downloads/Chrome/BROCHURE_CONGRESSI_4nov.pdf 
-rw-r--r--@ 1 thakis  5000  2326686 May 21 08:31 
/Users/thakis/Downloads/Chrome/BROCHURE_CONGRESSI_4nov.pdf
	com.apple.metadata:kMDItemWhereFroms	    172 


Maybe that makes a difference?
Comment 7 by andyb...@chromium.org, May 21, 2010
com.apple.quarantine	     85

That makes it seem like a sandbox issue at first glance.
Comment 8 by rsesek@chromium.org, May 21, 2010
Maybe this is a SL issue, because I see this on 10.6.  I'm not sure if it's an issue with our sandbox or if it's 
something with the way NSWorkspace works.
Comment 9 by thakis@chromium.org, May 21, 2010
It's probably not an issue with our sandbox, because downloading happenings in the browser process, which isn't 
sandboxed (and you can always run chrome with --no-sandbox and check). I think andy meant OS X's sandbox 
for downloaded files (com.apple.quarantine), though it'd be weird if quarantined files opened up normally but in 
the background.
Comment 10 by rsesek@chromium.org, May 22, 2010
This is an Apple bug; Safari has the same issue (if you Opt+Click a PDF link, rather than letting it get displayed 
in-browser).  I'll file a Radar on Monday.
Comment 11 by rsesek@chromium.org, May 22, 2010
That is, yes, the com.apple.quarantine flag is responsible for this non-activating behavior. Proof:

1. Download a PDF file, but do not press the shelf's button
2. Type "xattr -d com.apple.quarantine <file>" in your Terminal
3. In Chromium, press the download shelf button
4. Preview takes active state
Comment 12 by rsesek@chromium.org, May 24, 2010
Filed with Apple as radar://8019954. Publicly posted to http://openradar.appspot.com/radar?id=374401.
Status: ExternalDependency
Comment 13 by rsesek@chromium.org, Aug 12, 2010
I have a nice work around using AppleEvents.  Yay!
Status: Started
Comment 14 by bugdroid1@gmail.com, Aug 13, 2010
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=56026 

------------------------------------------------------------------------
r56026 | rsesek@chromium.org | 2010-08-13 08:24:53 -0700 (Fri, 13 Aug 2010) | 7 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/base/base.gypi?r1=56026&r2=56025
   A http://src.chromium.org/viewvc/chrome/trunk/src/base/scoped_aedesc.h
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/platform_util_mac.mm?r1=56026&r2=56025

[Mac] Use an AppleEvent to tell the Finder to open downloaded items, rather than NSWorkspace.

BUG=32921,50263
TEST=Force a PDF to download. Quit Preview, if open. Open the downloaded PDF from the download shelf. Preview opens and becomes frontmost.
TEST=Download a file of a type that you do not have an application with which to open it. Open it from the download shelf. Finder bounces for your attention to choose an application to open it.

Review URL: http://codereview.chromium.org/3151011
------------------------------------------------------------------------

Comment 15 by rsesek@chromium.org, Aug 13, 2010
(No comment was entered for this change.)
Status: Fixed
Comment 16 by bugdroid1@gmail.com, Aug 13, 2010
Verified label updated by AutoAllocator, contact AmolK or KrisR for details
Labels: Verifier-Deepakg
Comment 17 by deep...@chromium.org, Aug 16, 2010
Verified in 6.0.496.0 (Official Build 56183) dev using http://www.torrentbit.net/torrent/1747720/40%20Amazing%20Fireworks%20and%20Crackers%20HQ%20Wallpapers/
Status: Verified
Comment 18 by rsesek@chromium.org, Sep 29, 2010
 Issue 57248  has been merged into this issue.
Cc: rse...@chromium.org
Comment 19 by rsesek@chromium.org, Sep 30, 2010
 Issue 57367  has been merged into this issue.
Comment 20 by avi@chromium.org, Nov 1, 2010
 Issue 27629  has been merged into this issue.
Comment 21 by thakis@chromium.org, Aug 5, 2011
Reopening since this still doesn't work for files opened in the Finder (dmgs, zip files). I don't think we can do much about it, and Safari on Lion seems to have the same problem, but we should have an open bug for this.
Status: Available
Comment 22 by rsesek@chromium.org, Aug 31, 2011
(No comment was entered for this change.)
Status: ExternalDependency
Comment 23 by rdsmith@chromium.org, Sep 14, 2011
(No comment was entered for this change.)
Blocking: 68200
Comment 24 by thal...@google.com, Mar 28, 2012
Pinging this issue.  Currently in v17 it's not as originally described in the bug, but it still is funcitonally worse compared to firefox.

Chrome repro steps:  Download a .dmg file, let it complete, click it from the downloads shelf at the bottom.

Expected Results:  DMG is mounted by finder with focus
Actual Results: DMG is mounted and open in a finder window, but z-order is at the bottom, below the chrome window, and the user thinks it is a no-op


Firefox: Download DMG, presented with an 'open with or save as' dialog.  Select save.  Double click dmg from downloads pane.

Results: DMG is mounted and opened above the page, but below the downloads popup.


We've had some high profile users trip up during install on this issue.




Comment 25 by andyb...@chromium.org, Mar 28, 2012
(No comment was entered for this change.)
Cc: -andyb...@chromium.org
Comment 26 by albe...@chromium.org, Mar 29, 2012
(No comment was entered for this change.)
Cc: milli...@google.com
Comment 27 by milli...@google.com, Apr 9, 2012
This is an important issue creating confusion for users running installers from in Chrome. In particular this is impacting G+ Hangouts as it makes it hard for users to install the GoogleTalkPlugin on mac.  Please let us know what we can do to get this prioritized.
Sign in to add a comment

Powered by Google Project Hosting