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

Issue 327553002: Transition networkState back to NETWORK_IDLE on fetch if preload=none (Closed)

Created:
6 years, 6 months ago by fs
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Visibility:
Public.

Description

Transition networkState back to NETWORK_IDLE on fetch if preload=none When a media element is marked with the preload hint 'none', a load is not started until data is explicitly requested. The progress timer is however still started, which means that a 'stalled' event will be fired after ~3s. This is confusing, since loading never actually started in the first place. Fix this by implementing (the "optional") step 3 from the 'resource fetch algorithm'. BUG=382505 BUG=284413 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176199

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 9

Patch Set 3 : Improve test; Actually "queue" a "task". #

Patch Set 4 : Play the waiting game some more. #

Patch Set 5 : Reset deferred-FSM in prepareForLoad. #

Total comments: 2

Patch Set 6 : deferredLoad -> deferLoad. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -12 lines) Patch
A LayoutTests/media/video-preload-none-no-stalled-event.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/media/video-preload-none-no-stalled-event-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 3 chunks +24 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 8 chunks +75 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fs
https://codereview.chromium.org/327553002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/327553002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode898 Source/core/html/HTMLMediaElement.cpp:898: changeNetworkStateFromLoadingToIdle(); This means that we'll also fire a progress ...
6 years, 6 months ago (2014-06-09 16:12:23 UTC) #1
acolwell GONE FROM CHROMIUM
looks pretty good. Just a few comments. https://codereview.chromium.org/327553002/diff/20001/LayoutTests/media/video-preload-none-no-stalled-event.html File LayoutTests/media/video-preload-none-no-stalled-event.html (right): https://codereview.chromium.org/327553002/diff/20001/LayoutTests/media/video-preload-none-no-stalled-event.html#newcode15 LayoutTests/media/video-preload-none-no-stalled-event.html:15: // Give ...
6 years, 6 months ago (2014-06-09 17:54:17 UTC) #2
fs
https://codereview.chromium.org/327553002/diff/20001/LayoutTests/media/video-preload-none-no-stalled-event.html File LayoutTests/media/video-preload-none-no-stalled-event.html (right): https://codereview.chromium.org/327553002/diff/20001/LayoutTests/media/video-preload-none-no-stalled-event.html#newcode17 LayoutTests/media/video-preload-none-no-stalled-event.html:17: setTimeout(endTest, 3000 + 500); On 2014/06/09 17:54:17, acolwell wrote: ...
6 years, 6 months ago (2014-06-10 12:36:25 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm. Thanks for fixing this. :) https://codereview.chromium.org/327553002/diff/80001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/327553002/diff/80001/Source/core/html/HTMLMediaElement.cpp#newcode896 Source/core/html/HTMLMediaElement.cpp:896: deferredLoad(); nit: s/deferredLoad/deferLoad/ ...
6 years, 6 months ago (2014-06-13 18:54:51 UTC) #4
fs
https://codereview.chromium.org/327553002/diff/80001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/327553002/diff/80001/Source/core/html/HTMLMediaElement.cpp#newcode896 Source/core/html/HTMLMediaElement.cpp:896: deferredLoad(); On 2014/06/13 18:54:51, acolwell wrote: > nit: s/deferredLoad/deferLoad/ ...
6 years, 6 months ago (2014-06-16 10:39:53 UTC) #5
fs
The CQ bit was checked by fs@opera.com
6 years, 6 months ago (2014-06-16 10:40:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/327553002/100001
6 years, 6 months ago (2014-06-16 10:40:58 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 10:44:44 UTC) #8
Message was sent while issue was closed.
Change committed as 176199

Powered by Google App Engine
This is Rietveld 408576698