Bug 159974 - Fix null handling of HTMLMediaElement.mediaGroup
Summary: Fix null handling of HTMLMediaElement.mediaGroup
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://www.w3.org/TR/html5/embedded-...
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-07-20 09:41 PDT by Chris Dumez
Modified: 2016-07-20 15:05 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.88 KB, patch)
2016-07-20 10:31 PDT, Chris Dumez
eric.carlson: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews126 for ios-simulator-wk2 (879.80 KB, application/zip)
2016-07-20 11:28 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-07-20 09:41:19 PDT
Fix null handling of HTMLMediaElement.mediaGroup to match the specification:
- https://www.w3.org/TR/html5/embedded-content-0.html#media-elements

null is supposed to be treated as the String "null".
Comment 1 Chris Dumez 2016-07-20 10:31:07 PDT
Created attachment 284124 [details]
Patch
Comment 2 Build Bot 2016-07-20 11:28:43 PDT
Comment on attachment 284124 [details]
Patch

Attachment 284124 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/1715032

New failing tests:
imported/w3c/web-platform-tests/html/dom/reflection-embedded.html
Comment 3 Build Bot 2016-07-20 11:28:48 PDT
Created attachment 284129 [details]
Archive of layout-test-results from ews126 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews126  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.5
Comment 4 Chris Dumez 2016-07-20 12:12:07 PDT
(In reply to comment #3)
> Created attachment 284129 [details]
> Archive of layout-test-results from ews126 for ios-simulator-wk2
> 
> The attached test failures were seen while running run-webkit-tests on the
> ios-sim-ews.
> Bot: ews126  Port: ios-simulator-wk2  Platform: Mac OS X 10.11.5

ios has its own baseline. I'll rebaseline for iOS before landing.
Comment 5 Chris Dumez 2016-07-20 12:22:49 PDT
Committed r203463: <http://trac.webkit.org/changeset/203463>
Comment 6 Darin Adler 2016-07-20 14:52:35 PDT
Comment on attachment 284124 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=284124&action=review

> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:-4455
> -            return ("valueToStringWithNullCheck(state, $value)", 1) if $signature->extendedAttributes->{"TreatNullAs"} eq "LegacyNullString";

What about valueToStringWithNullCheck? Is that function still used anywhere?
Comment 7 Chris Dumez 2016-07-20 14:53:55 PDT
(In reply to comment #6)
> Comment on attachment 284124 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=284124&action=review
> 
> > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:-4455
> > -            return ("valueToStringWithNullCheck(state, $value)", 1) if $signature->extendedAttributes->{"TreatNullAs"} eq "LegacyNullString";
> 
> What about valueToStringWithNullCheck? Is that function still used anywhere?

Yes, in a couple of places. I am working on killing it though:
-> https://bugs.webkit.org/show_bug.cgi?id=159984
and another patch coming soon.
Comment 8 Chris Dumez 2016-07-20 15:05:19 PDT
(In reply to comment #7)
> (In reply to comment #6)
> > Comment on attachment 284124 [details]
> > Patch
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=284124&action=review
> > 
> > > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:-4455
> > > -            return ("valueToStringWithNullCheck(state, $value)", 1) if $signature->extendedAttributes->{"TreatNullAs"} eq "LegacyNullString";
> > 
> > What about valueToStringWithNullCheck? Is that function still used anywhere?
> 
> Yes, in a couple of places. I am working on killing it though:
> -> https://bugs.webkit.org/show_bug.cgi?id=159984
> and another patch coming soon.

and https://bugs.webkit.org/show_bug.cgi?id=159982