Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Issue 2728193003: Show download button even when preload=none (Closed)

Created:
3 years, 9 months ago by steimel
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show download button even when preload=none Currently, the media controls are not reset after the currentSrc of the video is set. This CL adds a reset call so that the download button is displayed, along with a corresponding layout test. BUG=665152 Review-Url: https://codereview.chromium.org/2728193003 Cr-Commit-Position: refs/heads/master@{#455112} Committed: https://chromium.googlesource.com/chromium/src/+/94aeb8cb883faee716cca33b7601df68a2d8c09c

Patch Set 1 #

Total comments: 4

Patch Set 2 : Hide download button if video is 404. Don't use reset #

Patch Set 3 : Fix incorrect download button unit test and rebase #

Total comments: 4

Patch Set 4 : mlamouri feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html View 1 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControls.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (21 generated)
steimel
PTAL
3 years, 9 months ago (2017-03-03 23:35:18 UTC) #2
mlamouri (slow - plz ping)
Quick comments because it's a quick review over the weekend :) https://codereview.chromium.org/2728193003/diff/1/third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html File third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html (right): ...
3 years, 9 months ago (2017-03-04 14:10:01 UTC) #7
steimel
PTAL https://codereview.chromium.org/2728193003/diff/1/third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html File third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html (right): https://codereview.chromium.org/2728193003/diff/1/third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html#newcode14 third_party/WebKit/LayoutTests/media/controls/download-button-displays-with-preload-none.html:14: })); On 2017/03/04 14:10:01, mlamouri wrote: > What ...
3 years, 9 months ago (2017-03-06 17:44:12 UTC) #8
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2728193003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2728193003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode685 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:685: return false; style: you need { }
3 years, 9 months ago (2017-03-07 11:23:07 UTC) #21
whywhat
lgtm https://codereview.chromium.org/2728193003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp (right): https://codereview.chromium.org/2728193003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp#newcode405 third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp:405: DownloadActionMetrics::Shown, 1); Strange you don't need to update ...
3 years, 9 months ago (2017-03-07 12:50:56 UTC) #22
steimel
https://codereview.chromium.org/2728193003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp (right): https://codereview.chromium.org/2728193003/diff/40001/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp#newcode685 third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp:685: return false; On 2017/03/07 11:23:07, mlamouri wrote: > style: ...
3 years, 9 months ago (2017-03-07 15:26:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728193003/60001
3 years, 9 months ago (2017-03-07 15:27:48 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 17:23:43 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/94aeb8cb883faee716cca33b7601...

Powered by Google App Engine
This is Rietveld 408576698