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

Issue 2404463002: Avoid <picture> preloading when viewport not initialized. (Closed)

Created:
4 years, 2 months ago by Yoav Weiss
Modified:
4 years, 2 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, blink-reviews-html_chromium.org, loading-reviews+parser_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid <picture> preloading when viewport not initialized. On rare occasions, it seems that viewport dimensions are not properly initialized before being passed to the HTMLPreloadScanner, which results in potential preloading of the wrong <picture> based resource. That issue will no longer be relevant once ParseHTMLOnMainThread lands and MediaValuesCached related logic is removed from the preloadScanner, but in the mean time, it's causing test flakiness. This CL changes the preload scanner's behavior, so that it would avoid preloading of picture based resources when the viewport dimensions are unknown. BUG=652513 Committed: https://crrev.com/1ea50761e75c1752ec0bf619106bfa63f9372dae Cr-Commit-Position: refs/heads/master@{#424373}

Patch Set 1 #

Patch Set 2 : Modify TODO #

Total comments: 1

Patch Set 3 : style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 28 (20 generated)
Yoav Weiss
Hey Charlie :) Can you take a look?
4 years, 2 months ago (2016-10-07 17:49:56 UTC) #7
Charlie Harrison
Will this really be fixed by the experiment landing or will an easy fix just ...
4 years, 2 months ago (2016-10-07 18:15:06 UTC) #8
Yoav Weiss
On 2016/10/07 18:15:06, Charlie Harrison wrote: > Will this really be fixed by the experiment ...
4 years, 2 months ago (2016-10-10 07:13:59 UTC) #10
Charlie Harrison
LGTM % nit and wrapping your description to 80 cols. https://codereview.chromium.org/2404463002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right): https://codereview.chromium.org/2404463002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode811 ...
4 years, 2 months ago (2016-10-10 19:23:12 UTC) #15
Charlie Harrison
LGTM % nit and wrapping your description to 80 cols. https://codereview.chromium.org/2404463002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp File third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp (right): https://codereview.chromium.org/2404463002/diff/20001/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp#newcode811 ...
4 years, 2 months ago (2016-10-10 19:23:12 UTC) #16
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/2404463002/40001
4 years, 2 months ago (2016-10-11 04:59:43 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-11 05:04:52 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 05:08:09 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1ea50761e75c1752ec0bf619106bfa63f9372dae
Cr-Commit-Position: refs/heads/master@{#424373}

Powered by Google App Engine
This is Rietveld 408576698