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)

defect
Not set
normal

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]
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)
Attachment #788487 - Flags: review?(dao) → review+
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
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
Fixed tests.
Attachment #788487 - Attachment is obsolete: true
Attachment #788931 - Flags: review?(dao)
You can use doc.baseURIObject to avoid needing to call makeURI
(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.
Following Gavin's suggestion.
Attachment #788931 - Attachment is obsolete: true
Attachment #788931 - Flags: review?(dao)
Attachment #788949 - Flags: review?(dao)
Attachment #788949 - Flags: review?(dao) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 26
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.
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.
Of course not, thanks for fixing this! The console message was distracting me as well.
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: