Bug 131194 - [Win] Load Media Controls js/css from bundle
Summary: [Win] Load Media Controls js/css from bundle
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on: 131086
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-03 17:03 PDT by Brent Fulgham
Modified: 2014-04-04 09:13 PDT (History)
8 users (show)

See Also:


Attachments
Patch (24.57 KB, patch)
2014-04-03 22:11 PDT, Brent Fulgham
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2014-04-03 17:03:37 PDT
We can load the mediaControls*.{js,css} files from the bundle, rather than inserting encoding versions into the C source code on Windows, just like we can for Mac/iOS.
Comment 1 Brent Fulgham 2014-04-03 22:11:12 PDT
Created attachment 228578 [details]
Patch
Comment 2 Dean Jackson 2014-04-03 22:17:09 PDT
Comment on attachment 228578 [details]
Patch

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

> Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters:7092
> +    <ClCompile Include="..\platform\DisplaySleepDisabler.cpp" />
> +    <ClCompile Include="..\platform\SystemSleepListener.cpp" />

There are a lot of changes to this file, but I assume it's either unintentional and you'll remove it, or intentional and you know what you are doing!

> Source/WebCore/rendering/RenderThemeSafari.h:188
> +    bool m_mediaControlsScriptLoaded;
> +    bool m_mediaControlsStyleSheetLoaded;

There was a followup commit where I skipped the booleans and just checked if the string was empty.

> Source/WebCore/rendering/RenderThemeWin.cpp:1117
> +    // Open the file

Nit: end with .
Comment 3 Brent Fulgham 2014-04-04 09:08:14 PDT
Comment on attachment 228578 [details]
Patch

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

>> Source/WebCore/rendering/RenderThemeWin.cpp:1117
>> +    // Open the file
> 
> Nit: end with .

Even better -- why have this stupid comment at all!?!  :-)
Comment 4 Brent Fulgham 2014-04-04 09:08:22 PDT
Comment on attachment 228578 [details]
Patch

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

>> Source/WebCore/rendering/RenderThemeWin.cpp:1117
>> +    // Open the file
> 
> Nit: end with .

Even better -- why have this stupid comment at all!?!  :-)
Comment 5 Brent Fulgham 2014-04-04 09:13:05 PDT
Committed r166782: <http://trac.webkit.org/changeset/166782>