New issue
Advanced search Search tips

Issue 815389 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 777863
Owner: ----
Closed: Feb 2018
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[[NSWorkspace sharedWorkspace] openURL:] not working with Chrome

Reported by dmacl...@gmail.com, Feb 24 2018

Issue description

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

Steps to reproduce the problem:
1. Build and run this code on a Mac with chrome as default browser:

#import <AppKit/AppKit.h>

int main(int argc, const char * argv[]) {
  @autoreleasepool {
      // insert code here...
    [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.reddit.com"]];
  }
  return 0;
}

What is the expected behavior?
URL should open

What went wrong?
URL is not opening

Did this work before? N/A 

Chrome version: 64.0.3282.167  Channel: stable
OS Version: OS X 10.13.3
Flash Version: 

This does work just fine with Safari as the default browser.
 

Comment 1 by dmacl...@gmail.com, Feb 24 2018

Ahhh... annoying. This only seems to fail if your Chrome isn't fully up to date (i.e. you have a new version downloaded but the old version is still running). I'm guessing the Finder attempts to launch the "new version" which notices the old version running and does a handoff but doesn't pass the URL along.

Comment 2 by rsesek@chromium.org, Feb 25 2018

Mergedinto: 777863
Status: Duplicate (was: Unconfirmed)
It looks like this will be fixed in 10.13.4.

Sign in to add a comment