Closed
Bug 903714
Opened 12 years ago
Closed 12 years ago
"uri is undefined" when calling method nsIWebContentHandlerRegistrar::registerProtocolHandler() on www.irccloud.com
Categories
(Firefox Graveyard :: RSS Discovery and Preview, defect)
Firefox Graveyard
RSS Discovery and Preview
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: ttaubert, Assigned: ttaubert)
Details
Attachments
(1 file, 2 obsolete files)
Everytime I open a tab with www.irccloud.com I see an error message saying:
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "uri is undefined" {file: "objdir-ff-release/dist/Nightly.app/Contents/MacOS/browser/components/WebContentConverter.js" line: 412}]' when calling method: [nsIWebContentHandlerRegistrar::registerProtocolHandler]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: https://www.irccloud.com/static/js/app.combined.min.js?v=9827ae3c908d1d225c8f19ddc8576d28 :: SessionView<.registerProtocolHandlers :: line 5" data: yes]
| Assignee | ||
Comment 1•12 years ago
|
||
_makeURI() called by _checkAndGetURI() throws:
http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/WebContentConverter.js#313
| Assignee | ||
Comment 2•12 years ago
|
||
IRCCloud calls registerProtocolHandler(irc,#?/irc_url=%s,IRCCloud) which seems like it should be allowed but does of course only work as long as we provide the baseURI to _makeURI().
Attachment #788487 -
Flags: review?(dao)
Updated•12 years ago
|
Attachment #788487 -
Flags: review?(dao) → review+
| Assignee | ||
Comment 3•12 years ago
|
||
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•12 years ago
|
||
Backed out for m1 failures:
https://hg.mozilla.org/integration/fx-team/rev/a0114f95b034
ERROR TEST-UNEXPECTED-FAIL | /tests/browser/components/feeds/test/test_registerHandler.html | a protocol handler uri should be valid - got false, expected true
ERROR TEST-UNEXPECTED-FAIL | /tests/browser/components/feeds/test/test_registerHandler.html | a content handler uri should be valid - got false, expected true
| Assignee | ||
Comment 5•12 years ago
|
||
Fixed tests.
Attachment #788487 -
Attachment is obsolete: true
Attachment #788931 -
Flags: review?(dao)
Comment 6•12 years ago
|
||
You can use doc.baseURIObject to avoid needing to call makeURI
| Assignee | ||
Comment 7•12 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #6)
> You can use doc.baseURIObject to avoid needing to call makeURI
Nice.
| Assignee | ||
Comment 8•12 years ago
|
||
Following Gavin's suggestion.
Attachment #788931 -
Attachment is obsolete: true
Attachment #788931 -
Flags: review?(dao)
Attachment #788949 -
Flags: review?(dao)
| Assignee | ||
Comment 9•12 years ago
|
||
Try looks good:
https://tbpl.mozilla.org/?tree=Try&rev=36c0a29f8224
Updated•12 years ago
|
Attachment #788949 -
Flags: review?(dao) → review+
| Assignee | ||
Comment 10•12 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Comment 11•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 26
Comment 12•12 years ago
|
||
Every-time I go to irccloud now I see a message: "IRCCload has already been added as an application for irc links". That is super annoying.
| Assignee | ||
Comment 13•12 years ago
|
||
I will certainly not apologize for fixing this ;) But I see the same issue and we should file another bug and fix that as well. Not sure why we even have that notification as that should just be ignored, imo.
Comment 14•12 years ago
|
||
Of course not, thanks for fixing this! The console message was distracting me as well.
Updated•7 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•