Closed Bug 279194 Opened 20 years ago Closed 20 years ago

Cannot open URL from other applications if FF not running

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Firefox1.5

People

(Reporter: phiw2, Assigned: benjamin)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050120 Firefox/1.0+ (PowerBook)
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050120 Firefox/1.0+ (PowerBook)

Didn't find any bugs directly about this, nor mentioned in the forums, although
the problem has been mentioned.
Since 20050118 build, FF can't open URL from other applications, clicking a link
in the email client (Mail.app) in my case) brings the browser to the front, but
does not bring up the page requested. Since 0119, it simply freezes the browser.
Same problems from NetNewsWire (RSS).

Reproducible: Always

Steps to Reproduce:
1.click link in email message
2.
3.

Actual Results:  
browser is brought forward, but url is not followed. The browser freeze,
requiring a force quit.

Expected Results:  
Open the requested page in a new tab, in the same window (as per my
preferences). This worked fine 'till 20050117.
Looks like the regression Bug 279164. Duplicate?
Version: unspecified → Trunk
(In reply to comment #1)
> Looks like the regression Bug 279164. Duplicate?

Ah, that's the one I missed. Same problem, same timeframe. Good to see that's fixed.


*** This bug has been marked as a duplicate of 279164 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
actually, will reopen this since this is still an issue on Mac.
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
Status: UNCONFIRMED → NEW
Ever confirmed: true
from bug 179164 comment 15:

(OS X 10.3.7)
Checking Console.app, I see this:
Warning: unrecognized command line flag -psn_0_20578305

FireFox JS Console only gives this:
Error: [Exception... "Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]"  nsresult: "0x8000ffff
(NS_ERROR_UNEXPECTED)"  location: "JS frame ::
file:///Applications/firefox.app/Contents/MacOS/components/nsDefaultCLH.js ::
clh_handle :: line 81"  data: no]
Source File:
file:///Applications/firefox.app/Contents/MacOS/components/nsDefaultCLH.js
Line: 81
Severity: normal → blocker
Flags: blocking-aviary1.1?
The JS exception is expected and harmless. The "unrecognized flag" error is more
interesting, but I believe it occurs during startup and doesn't affect the
problem at hand.
On the 2005-01-22 trunk build, I don't see the freeze (although I did a few days
ago).  But if I click a link in Thunderbird (or any other application) while
Firefox is running, it gains focus but doesn't load the page.  If Firefox is not
running, it starts, but loads the homepage instead of the specified URL.

I also see entries like "Warning: unrecognized command line flag -psn_0_7995393"
in Console.app, but the numbers are different each time.  They appear whenever
Firefox starts, regardless of if I click a link in an application or if I start
it myself from the dock.
Can someone breakpoint nsCommandLine::Init (you will probably need to hardcode
NS_BREAK and compile, or something equally weird) and tell me what the stack
looks like when you open the link from tbird?
Assignee: firefox → bsmedberg
Status: NEW → ASSIGNED
Attachment #172445 - Flags: review?(sfraser_bugs)
Just tested, this patch does fix it (and the dock actions issue), thanks!
Comment on attachment 172445 [details] [diff] [review]
actually initialize the mac command-line appleevents code

Looks OK. Any reason for moving the nsCommandLineServiceMac files?
Attachment #172445 - Flags: review?(sfraser_bugs) → review+
It's just a question of which .dylib they get linked to.
*** Bug 279912 has been marked as a duplicate of this bug. ***
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox1.1
Flags: blocking-aviary1.1?
*** Bug 279969 has been marked as a duplicate of this bug. ***
This bug seems to be partialy fixed :
 - if Firefox is started, URL are opened
 - if Firefox is not started, clicking on an url start Firefox which close
immediatly, without error message.
This second issue is because Firefox does the bizarre launch-quit-relaunch thing.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: bsmedberg → bugs
Status: REOPENED → NEW
Summary: Cannot open URL from other applications → Cannot open URL from other applications if FF not running
Oooh, fun.
Darin, this is a little bit odd, but it seems to work better than initializing
early and the restarting (since restartargv doesn't track changes to gArgv).
Assignee: bugs → bsmedberg
Status: NEW → ASSIGNED
Attachment #172602 - Flags: review?(darin)
Can't we fix the stupid quit/relaunch thing on Mac? It's so odd to see the dock
icon appear, disappear, then appear agaain. It looks like the app has crashed
and relaunchd.
Comment on attachment 172602 [details] [diff] [review]
Move appleevents startup after app-restart

r=darin
Attachment #172602 - Flags: review?(darin) → review+
(In reply to comment #20)
> Can't we fix the stupid quit/relaunch thing on Mac? It's so odd to see the dock
> icon appear, disappear, then appear agaain. It looks like the app has crashed
> and relaunchd.

simon: i wish, but it's a challenging problem since xpcom components may need to
be unloaded in the process, etc.  we don't support unloading C++ components
right now.  aside from that we also have to worry about global variables being
re-initialized properly across the entire system.  the codebase grew up with the
assumption that XPCOM is initialized only once per process.
It seems now to be OK with this build : Mozilla/5.0 (Macintosh; U; PPC Mac OS X
Mach-O; fr-FR; rv:1.8b) Gecko/20050128 Firefox/1.0+ 
Oh yeah, I checked in the second patch yesterday.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Using Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b)
Gecko/20050128 Firefox/1.0+ it does work for the most part, but there is a minor
wrinkle - if I start from a fresh profile and click on a link in Thunderbird, FF
launches with the start page - the link that I clicked on doesn't appear. I
guess that is expected behavior with a fresh profile?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: