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

Issue 2546993003: [MediaElement] Allow preloading for non-network scheme src (Closed)

Created:
4 years ago by Zhiqiang Zhang (Slow)
Modified:
4 years 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, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MediaElement] Allow preloading for non-network scheme src This CL weakens the restriction of media element preloading. The reason for this change is that the preload attribute for media elements is overriden as "none" when data saver is enabled. However there is no need to apply this override for non-network media sources, since they do not cost network traffic. BUG=661220 Committed: https://crrev.com/f9d8e609f1298c6a563274fbdbe6ee5c45df3034 Cr-Commit-Position: refs/heads/master@{#436358}

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 4

Patch Set 3 : nits #

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -184 lines) Patch
A + third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/media/preload-conditions.html View 1 chunk +0 lines, -180 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElementTest.cpp View 1 2 3 3 chunks +83 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Zhiqiang Zhang (Slow)
4 years ago (2016-12-04 22:45:41 UTC) #3
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/2546993003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html File third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html (right): https://codereview.chromium.org/2546993003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html#newcode7 third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html:7: console.log("abc"); I guess this is ...
4 years ago (2016-12-05 13:32:44 UTC) #6
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2546993003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html File third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html (right): https://codereview.chromium.org/2546993003/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html#newcode7 third_party/WebKit/LayoutTests/http/tests/media/preload-conditions.html:7: console.log("abc"); On 2016/12/05 13:32:44, mlamouri wrote: > I guess ...
4 years ago (2016-12-05 16:32:20 UTC) #9
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/2546993003/60001
4 years ago (2016-12-05 16:33:03 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-05 18:26:22 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-05 18:28:44 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f9d8e609f1298c6a563274fbdbe6ee5c45df3034
Cr-Commit-Position: refs/heads/master@{#436358}

Powered by Google App Engine
This is Rietveld 408576698