Closed
Bug 503468
Opened 16 years ago
Closed 16 years ago
canPlayType should return "", not "no"
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
blocking1.9.1 | --- | .2+ |
status1.9.1 | --- | .2-fixed |
People
(Reporter: roc, Assigned: roc)
Details
(Keywords: dev-doc-complete, verified1.9.1)
Attachments
(1 file)
8.24 KB,
patch
|
cajbir
:
review+
beltzner
:
approval1.9.1.2+
|
Details | Diff | Splinter Review |
Hixie just made this change. We should make it ASAP and ram it into 1.9.1, since sites will have to be adjusted for it.
The reason for this change is that it's completely natural to write "if (v.canPlayType(...))" or "if (!v.canPlayType(...))". And thanks to JS string->bool conversion, this happily always passes (or always fails) for all possible return values. This issue was brought up on the whatwg list ages ago, but Hixie forgot to change the spec.
By returning "" instead of "no", simple uses of canPlayType will treat "no" as false and basically do what the author expects.
Flags: blocking1.9.2+
Flags: blocking1.9.1.1?
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #387822 -
Flags: review?(chris.double)
Assignee | ||
Updated•16 years ago
|
Keywords: dev-doc-needed
Comment 2•16 years ago
|
||
Yeah, let's block on this... needs review soon though.
Flags: blocking1.9.1.1? → blocking1.9.1.1+
Whiteboard: [needs r=cdouble]
Updated•16 years ago
|
Attachment #387822 -
Flags: review?(chris.double) → review+
Comment 3•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 4•16 years ago
|
||
Comment on attachment 387822 [details] [diff] [review]
fix
Has to wait for 1.9.1.12
Attachment #387822 -
Flags: approval1.9.1.2?
Updated•16 years ago
|
blocking1.9.1: --- → .2+
Flags: blocking1.9.1.1+ → blocking1.9.1.1-
Comment 5•16 years ago
|
||
Comment on attachment 387822 [details] [diff] [review]
fix
a=beltzner, please land on mozilla-1.9.1
Attachment #387822 -
Flags: approval1.9.1.2? → approval1.9.1.2+
Updated•16 years ago
|
Whiteboard: [needs r=cdouble]
Assignee | ||
Comment 6•16 years ago
|
||
Keywords: fixed1.9.1
Assignee | ||
Updated•16 years ago
|
status1.9.1:
--- → .2-fixed
Keywords: fixed1.9.1
Keywords: dev-doc-needed → dev-doc-complete
Comment 7•15 years ago
|
||
Verified on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2. Patch has testcases
Keywords: verified1.9.1
Comment 8•15 years ago
|
||
Mass change: adding fixed1.9.2 keyword
(This bug was identified as a mozilla1.9.2 blocker which was fixed before the mozilla-1.9.2 repository was branched (August 13th, 2009) as per this query: http://is.gd/2ydcb - if this bug is not actually fixed on mozilla1.9.2, please remove the keyword. Apologies for the bugspam)
Keywords: fixed1.9.2
Updated•15 years ago
|
status1.9.2:
--- → beta1-fixed
Keywords: fixed1.9.2
You need to log in
before you can comment on or make changes to this bug.
Description
•