Bug 209875 - Remove unused media controls code
Summary: Remove unused media controls code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-01 13:35 PDT by Eric Carlson
Modified: 2020-04-02 17:37 PDT (History)
22 users (show)

See Also:


Attachments
Patch (208.67 KB, patch)
2020-04-01 13:38 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (209.56 KB, patch)
2020-04-01 14:42 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (210.02 KB, patch)
2020-04-01 15:31 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch (210.54 KB, patch)
2020-04-01 15:51 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch for landing (211.05 KB, patch)
2020-04-02 11:28 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch for landing (210.45 KB, patch)
2020-04-02 12:07 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch for landing (210.95 KB, patch)
2020-04-02 15:05 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2020-04-01 13:35:04 PDT
Remove code for the, now unused, C++ based media controls.
Comment 1 Radar WebKit Bug Importer 2020-04-01 13:35:21 PDT
<rdar://problem/61172738>
Comment 2 Eric Carlson 2020-04-01 13:38:21 PDT
Created attachment 395197 [details]
Patch
Comment 3 Eric Carlson 2020-04-01 14:42:28 PDT
Created attachment 395203 [details]
Patch
Comment 4 Eric Carlson 2020-04-01 15:31:48 PDT
Created attachment 395212 [details]
Patch
Comment 5 Eric Carlson 2020-04-01 15:51:22 PDT
Created attachment 395216 [details]
Patch
Comment 6 Daniel Bates 2020-04-01 19:41:08 PDT
Comment on attachment 395216 [details]
Patch

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

Patch looks good. Check Windows.

> Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp:163
> +        return m_textTrackContainer.get();

Ok as is. No change needed. Looks like line is indented.

> Source/WebCore/html/HTMLMediaElement.cpp:4300
> +    if (m_creatingControls)

This is ok as-is. No change needed. Is this change concealing a bug revealed by this removal? If so, why is it ok to make this change? If not, proceed.

> Source/WebCore/html/HTMLMediaElement.cpp:4303
>      m_creatingControls = true;

Ok as-is. No change needed. In the future the optimal solution is to use SETforScope() class for this ivar toggling.
Comment 7 Darin Adler 2020-04-01 21:21:30 PDT
rendering/RenderThemeWin.cpp(846,30): error C3861: 'adjustMediaSliderThumbSize': identifier not found
Comment 8 Eric Carlson 2020-04-02 11:28:38 PDT
Created attachment 395281 [details]
Patch for landing
Comment 9 Darin Adler 2020-04-02 11:46:56 PDT
Comment on attachment 395281 [details]
Patch for landing

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

> Source/WebCore/Modules/mediacontrols/MediaControlsHost.cpp:163
> +        return m_textTrackContainer.get();

Indentation mistake here.
Comment 10 Eric Carlson 2020-04-02 11:57:24 PDT
Comment on attachment 395216 [details]
Patch

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

>> Source/WebCore/html/HTMLMediaElement.cpp:4300
>> +    if (m_creatingControls)
> 
> This is ok as-is. No change needed. Is this change concealing a bug revealed by this removal? If so, why is it ok to make this change? If not, proceed.

ensureUserAgentShadowRoot creates the media controls in the shadow DOM which can trigger scripts in the page and cause this to be called again recursively. In that case we don't need to call ensureUserAgentShadowRoot again.

>> Source/WebCore/html/HTMLMediaElement.cpp:4303
>>      m_creatingControls = true;
> 
> Ok as-is. No change needed. In the future the optimal solution is to use SETforScope() class for this ivar toggling.

I should have thought of that! I'll make that change in another patch, thanks.
Comment 11 Eric Carlson 2020-04-02 12:07:47 PDT
Created attachment 395286 [details]
Patch for landing
Comment 12 Eric Carlson 2020-04-02 15:05:55 PDT
Created attachment 395307 [details]
Patch for landing
Comment 13 Eric Carlson 2020-04-02 17:10:04 PDT
Comment on attachment 395307 [details]
Patch for landing

The Windows test failures seem to be unrelated.
Comment 14 EWS 2020-04-02 17:37:07 PDT
Committed r259435: <https://trac.webkit.org/changeset/259435>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 395307 [details].