Bug 164271

Summary: [Modern Media Controls] load all media controller scripts and styles automatically
Product: WebKit Reporter: Antoine Quint <graouts>
Component: MediaAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, eric.carlson, graouts, joepeck
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Antoine Quint 2016-11-01 07:11:56 PDT
[Modern Media Controls] load all media controller scripts and styles automatically
Comment 1 Antoine Quint 2016-11-01 07:13:38 PDT
Created attachment 293551 [details]
Patch
Comment 2 Dean Jackson 2016-11-01 11:04:28 PDT
Comment on attachment 293551 [details]
Patch

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

> LayoutTests/media/modern-media-controls/resources/media-controls-loader.js:11
> +    request.open("GET", `${modulePath}/js-files`, false);

Does this file exist yet?
Comment 3 Joseph Pecoraro 2016-11-01 11:16:35 PDT
Comment on attachment 293551 [details]
Patch

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

>> LayoutTests/media/modern-media-controls/resources/media-controls-loader.js:11
>> +    request.open("GET", `${modulePath}/js-files`, false);
> 
> Does this file exist yet?

It looks like it does!

> LayoutTests/media/modern-media-controls/resources/media-controls-loader.js:15
> +        document.write(`<script type="text/javascript" src="${modulePath}/${jsFile}"></script>`);

Nit: All of the `type="text/javascript"` attributes are unnecessary and could be removed. But at least you are consistent and use them everywhere.
Comment 4 WebKit Commit Bot 2016-11-01 11:28:13 PDT
Comment on attachment 293551 [details]
Patch

Clearing flags on attachment: 293551

Committed r208226: <http://trac.webkit.org/changeset/208226>
Comment 5 WebKit Commit Bot 2016-11-01 11:28:17 PDT
All reviewed patches have been landed.  Closing bug.