Re: crashing web browser with openURL call
Re: crashing web browser with openURL call
- Subject: Re: crashing web browser with openURL call
- From: iseecolors <email@hidden>
- Date: Sat, 6 Jun 2009 08:37:16 -0700
What I am doing is a single sign on to an web service. I send the URL
(with cert and nounce) to the server and get back a re-direct to the
actual page, which does start to load. I see all of this take
place. Than before the page finishes loading, the browser quits. The
interesting note is that what little the log shows is that Debugger()
is called just before the browsers quit. It seems odd that both
browsers would call Debugger() when loading the same page, but only
when the browser didn't already have a page open - suggestion some
common code is actually calling Debugger().
I am fairly certain that the NSWorkspace call is working correctly and
the URL is good. What I don't know is how to get details from the
browsers about what is going wrong.
At this point, I recognize that this is not a Cocoa question, but
would love any suggestions anyone might have. I am working other
avenues for ideas too.
Rich
On Jun 6, 2009, at 8:16 AM, Fred Baker wrote:
On Jun 5, 2009, at 2:18 PM, iseecolors wrote:
I am making a call to openURL (in NSWorkspace) that works great as
long as the default browser is already running and has a window
open. However, if I make the call when the default browser is
either not running, or does not have a window open, the get the
console output below. I am guessing that there is something in the
web page that the browsers don't like, but I am not sure how to get
the browsers to give me more information.
Any hints or thoughts?
The call I make:
[[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString:
urlStr] ];
The console output I see:
6/5/09 2:11:34 PM [0x0-0xa70a7].com.apple.Safari[3281] Debugger()
was called!
6/5/09 2:11:34 PM com.apple.launchd[132]
([0x0-0xa70a7].com.apple.Safari[3281]) Exited abnormally: Interrupt
6/5/09 2:12:25 PM [0x0-0xa90a9].org.mozilla.firefox[3284]
Debugger() was called!
6/5/09 2:12:25 PM com.apple.launchd[132]
([0x0-0xa90a9].org.mozilla.firefox[3284]) Exited abnormally:
Interrupt
Rich Collyer
To address your supposition: Did you attempt to use some other URL
to see if it made any difference? If not the web page content, then
is urlStr formed correctly?
Are you certain your system has defined a default web browser (for
example, Preferences/General/Default Web Browser in Safari)?
Fred
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden