Closed
Bug 391380
Opened 17 years ago
Closed 17 years ago
moz-icon: launches handler dialog
Categories
(Firefox :: File Handling, defect)
Tracking
()
RESOLVED
FIXED
Firefox 3 alpha8
People
(Reporter: rflint, Assigned: sdwilsh)
References
Details
(Keywords: regression)
Attachments
(2 files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
bzbarsky
:
review+
dmosedale
:
superreview+
bzbarsky
:
approval1.9+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007080804 Minefield/3.0a8pre
The handler dialog now opens when viewing anything containing a moz-icon URI (download manager, main tab of preferences, file type manager, etc.).
Comment 2•17 years ago
|
||
This is quite ugly, I'd almost call it a smoketest blocker, but it doesn't block any functionality, just tosses up that Launch Application dialog.
Seen while opening Downloads manager (or initiating a download) and opening the Preference window.
Assignee | ||
Comment 3•17 years ago
|
||
So, that makes sense because I'm pretty sure moz-icon isn't implemented on Linux. Now, the question arises as to why you are getting that...
Comment 4•17 years ago
|
||
I'm seeing this as well... Having the SeaMonkey download manager popping up one such dialog per file listed in it makes an interesting dialog-click-away game :(
Comment 5•17 years ago
|
||
Does data:text/html,<img%20src="unknown:"> trigger the bug?
Comment 6•17 years ago
|
||
(In reply to comment #5)
> Does data:text/html,<img%20src="unknown:"> trigger the bug?
Doesn't seem to trigger it for me here...
Can someone help with a regression range? Must be very recently, in the last few days. And as this was reported in Firefox and I see it in SeaMonkey and can also trigger it in Thunderbird when viewing a message with an attachment, this must be a core regression.
Comment 7•17 years ago
|
||
nighly build 2007080704 works perfectly,
but build 2007080804 has the problem.
Hope that helped
Comment 8•17 years ago
|
||
Linus, that helps a lot, thanks. It narrows down the checkins to blame to something like http://bonsai.mozilla.org/cvsquery.cgi?module=MozillaTinderboxAll&date=explicit&mindate=2007-08-07+00%3A00&maxdate=2007-08-08+06%3A00
Comment 9•17 years ago
|
||
So what I think is going on here is that for some reason there's no moz-icon handler registered in the build (which is odd).
Then we go to load an <img src="moz-icon:....">. And since we're in chrome, the patch for bug 388597 makes us skip content policy checks, which means we no longer hit nsNoDataProtocolContentPolicy::ShouldLoad (which used to block such loads to prevent popup dialogs).
What confuses me is that nsNoDataProtocolContentPolicy has only existed since 2006-06-26. Did we use to pop up a dialog in these circumstances before that or something?
Comment 10•17 years ago
|
||
OK, the reason this isn't a problem with, say, 1.8 branch is that nsExternalProtocolHandler::NewChannel fails out because there's no handler for that type.
On trunk, on the other hand, nsExternalProtocolHandler::HaveExternalProtocolHandler calls nsExternalHelperAppService::ExternalProtocolHandlerExists. This calls nsExternalHelperAppService::GetProtocolHandlerInfo, which calls nsOSHelperAppService::GetProtocolInfoFromOS. This last always returns a handler info, which nsExternalHelperAppService::ExternalProtocolHandlerExists interprets to mean that there is a handler:
1141 nsCOMPtr<nsIHandlerInfo> handlerInfo;
1142 nsresult rv = GetProtocolHandlerInfo(
1143 nsDependentCString(aProtocolScheme), getter_AddRefs(handlerInfo));
1144 if (NS_SUCCEEDED(rv)) {
1145 *aHandlerExists = PR_TRUE;
1146 return NS_OK;
1147 }
Comment 11•17 years ago
|
||
I meant "that protocol", not "that type".
Assignee | ||
Comment 12•17 years ago
|
||
I still cannot reproduce this locally, but based on irc discussions, I think this should fix it.
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
Comment 13•17 years ago
|
||
Comment on attachment 275992 [details] [diff] [review]
v1.0
sr=dmose with an added XXX comment to that we're gonna need to poke this again after the possibleHandlers patch lands. Filing a spinoff bug on that would be good too.
Attachment #275992 -
Flags: superreview+
Assignee | ||
Updated•17 years ago
|
Attachment #275992 -
Flags: review?(robzare)
Assignee | ||
Updated•17 years ago
|
Attachment #275992 -
Flags: review?(robzare) → review?(bzbarsky)
Comment 14•17 years ago
|
||
Comment on attachment 275992 [details] [diff] [review]
v1.0
Looks good.
a=bzbarsky too.
Attachment #275992 -
Flags: review?(bzbarsky)
Attachment #275992 -
Flags: review+
Attachment #275992 -
Flags: approval1.9+
Assignee | ||
Updated•17 years ago
|
Assignee | ||
Comment 15•17 years ago
|
||
Checking in uriloader/exthandler/nsExternalHelperAppService.cpp;
new revision: 1.333; previous revision: 1.332
Checking in modules/libpref/src/init/all.js;
new revision: 3.686; previous revision: 3.685
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 16•17 years ago
|
||
Litmus Triage Team: ctalbert, will you handle this test case?
You need to log in
before you can comment on or make changes to this bug.
Description
•