Closed Bug 625418 Opened 14 years ago Closed 14 years ago

Youtube HTML5 video player broken again.

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 484396

People

(Reporter: KWierso, Assigned: sicking)

Details

Attachments

(1 file)

I could've sworn this was working just yesterday... Video I'm using for testing is: http://www.youtube.com/watch?v=bM1epdLyhpA&html5=1 Works in Chrome 9 and Opera 11, but not in today's Minefield nightly. Error: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://s.ytimg.com/yt/jsbin/www-player-vfl7LJuym.js :: <TOP_LEVEL> :: line 47" data: no] Line 47 of that js file (prettified): http://pastebin.mozilla.org/936735
Also broken in a Win64 build from last week. I swear, I *just* was watching a WebM video on Youtube a few days ago...
Hmm. They're passing "" as the url to the open() method. Jonas, why do we throw on empty urls instead of just resolving them relative to the base like any other url?
blocking2.0: --- → ?
We seem to have thrown since the dawn of time. I doubt there is a good reason for it, we should just remove that line.
Attached patch Patch to fixSplinter Review
Not yet tested, but should work.
Assignee: nobody → jonas
Attachment #503607 - Flags: review?(bzbarsky)
Comment on attachment 503607 [details] [diff] [review] Patch to fix r=me
Attachment #503607 - Flags: review?(bzbarsky) → review+
Do we know if open("") ends up loading the current baseURI in other browsers as well, or is it a noop in other browsers? I think we should take a fix for this, but I'd like to know what other browsers do here.
Fwiw, the spec doesn't say to do anything special here. But yes, might be worth testing in other browsers.
Based on the patch this is a dup of Bug 484396.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
blocking2.0: ? → ---
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: