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

Issue 2642733002: Prerender: Disable prefetch if there's an appcache. (Closed)

Created:
3 years, 11 months ago by mattcary
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, blink-reviews-html_chromium.org, Yoav Weiss, loading-reviews+parser_chromium.org, gavinp+prer_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prerender: Disable prefetch if there's an appcache. Stops the preload scanner if an appcache manifest is detected and the document is prefetching. BUG=632368 Review-Url: https://codereview.chromium.org/2642733002 Cr-Commit-Position: refs/heads/master@{#461081} Committed: https://chromium.googlesource.com/chromium/src/+/d741ab419a18a996643c568434e0a756eaf7bee6

Patch Set 1 #

Patch Set 2 : clarifying comment #

Total comments: 3

Patch Set 3 : comments #

Patch Set 4 : Use appcache id rather than existence of tags in main resource #

Total comments: 4

Patch Set 5 : comments #

Total comments: 2

Patch Set 6 : comments #

Total comments: 2

Patch Set 7 : Use document loader main resource appcache id to detect presence of appcache #

Patch Set 8 : Prerender: Disable prefetch if there's an appcache. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -16 lines) Patch
M chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc View 1 2 3 4 5 6 7 8 chunks +171 lines, -16 lines 0 comments Download
M chrome/browser/prerender/prerender_test_utils.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_test_utils.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/prerender/appcache.manifest View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/prerender/appcache.manifest.mock-http-headers View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/prerender/prefetch_appcache.html View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (6 generated)
mattcary
Disable prefetching if an AppCache is detected. Charlie, you're on here because you re-enable AppCache ...
3 years, 11 months ago (2017-01-18 13:18:48 UTC) #2
droger
The chrome side looks generally good. Waiting for Charlie to comment on the blink side, ...
3 years, 11 months ago (2017-01-18 13:59:49 UTC) #3
mattcary
https://codereview.chromium.org/2642733002/diff/20001/chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc File chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc (right): https://codereview.chromium.org/2642733002/diff/20001/chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc#newcode623 chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc:623: // continue. The page should be fetched from the ...
3 years, 11 months ago (2017-01-18 14:06:03 UTC) #4
Charlie Harrison
Have you established that this isn't better to do browser side, which was discussed in ...
3 years, 11 months ago (2017-01-18 14:21:47 UTC) #6
mattcary
On 2017/01/18 14:21:47, Charlie Harrison wrote: > Have you established that this isn't better to ...
3 years, 11 months ago (2017-01-18 14:26:59 UTC) #7
Charlie Harrison
On 2017/01/18 14:26:59, mattcary wrote: > On 2017/01/18 14:21:47, Charlie Harrison wrote: > > Have ...
3 years, 11 months ago (2017-01-18 15:13:43 UTC) #8
mattcary
> I think the manifest is a signal that AppCache will be used for some ...
3 years, 11 months ago (2017-01-18 15:28:58 UTC) #9
Charlie Harrison
On 2017/01/18 15:28:58, mattcary wrote: > > I think the manifest is a signal that ...
3 years, 11 months ago (2017-01-18 15:38:37 UTC) #10
mattcary
On 2017/01/18 15:38:37, Charlie Harrison wrote: > On 2017/01/18 15:28:58, mattcary wrote: > > > ...
3 years, 11 months ago (2017-01-18 15:40:59 UTC) #11
mattcary
> In any case, if the renderer is the place, it might make sense to ...
3 years, 11 months ago (2017-01-19 10:35:59 UTC) #12
Charlie Harrison
I think I would just prefer the HTMLPreloadScanner pulling that bit out of the document ...
3 years, 11 months ago (2017-01-19 13:30:44 UTC) #13
mattcary
On 2017/01/19 13:30:44, Charlie Harrison wrote: > I think I would just prefer the HTMLPreloadScanner ...
3 years, 11 months ago (2017-01-19 14:29:39 UTC) #14
Charlie Harrison
parser LGTM
3 years, 11 months ago (2017-01-19 14:35:06 UTC) #15
droger
chrome/browser/prerender lgtm
3 years, 11 months ago (2017-01-19 14:38:00 UTC) #16
mattcary
On 2017/01/19 14:38:00, droger wrote: > chrome/browser/prerender lgtm Thanks. I'll give michaeln@ a chance today ...
3 years, 11 months ago (2017-01-19 17:21:59 UTC) #17
mattcary
On 2017/01/19 17:21:59, mattcary wrote: > On 2017/01/19 14:38:00, droger wrote: > > chrome/browser/prerender lgtm ...
3 years, 11 months ago (2017-01-23 09:01:42 UTC) #18
michaeln
> michaeln@, any opinion on the interaction with AppCache? I'm not sure what this is ...
3 years, 11 months ago (2017-01-25 02:07:39 UTC) #19
mattcary
On 2017/01/25 02:07:39, michaeln wrote: > > michaeln@, any opinion on the interaction with AppCache? ...
3 years, 11 months ago (2017-01-25 07:03:15 UTC) #20
michaeln
If i understand the purpose of the preload scanner properly, I don't think this change ...
3 years, 11 months ago (2017-01-26 00:20:26 UTC) #21
michaeln
On 2017/01/26 00:20:26, michaeln wrote: > If i understand the purpose of the preload scanner ...
3 years, 11 months ago (2017-01-26 00:42:31 UTC) #22
mattcary
On 2017/01/26 00:42:31, michaeln wrote: > On 2017/01/26 00:20:26, michaeln wrote: > > If i ...
3 years, 11 months ago (2017-01-26 12:21:04 UTC) #23
michaeln
> I think your comment about requesting resources prior to > AppCacheHostMsg_SelectCache being called is ...
3 years, 11 months ago (2017-01-27 00:45:10 UTC) #24
mattcary
> Ok, so in this case, it's not running ahead of a user visible navigation. ...
3 years, 10 months ago (2017-01-27 10:12:52 UTC) #25
michaeln
On 2017/01/27 10:12:52, mattcary wrote: > > Ok, so in this case, it's not running ...
3 years, 10 months ago (2017-01-27 21:34:56 UTC) #26
mattcary
Thanks, done (sorry for the delay, I was out at a summit in MTV for ...
3 years, 10 months ago (2017-02-06 14:09:07 UTC) #27
droger
I can't really comment on the best way to detect AppCache, but other than that, ...
3 years, 10 months ago (2017-02-07 10:40:38 UTC) #28
mattcary
https://codereview.chromium.org/2642733002/diff/60001/chrome/browser/prerender/prerender_final_status.h File chrome/browser/prerender/prerender_final_status.h (right): https://codereview.chromium.org/2642733002/diff/60001/chrome/browser/prerender/prerender_final_status.h#newcode73 chrome/browser/prerender/prerender_final_status.h:73: FINAL_STATUS_CANCELLED_FOR_APPCACHE = 58, On 2017/02/07 10:40:38, droger wrote: > ...
3 years, 10 months ago (2017-02-07 11:28:46 UTC) #29
droger
https://codereview.chromium.org/2642733002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2642733002/diff/80001/tools/metrics/histograms/histograms.xml#newcode102509 tools/metrics/histograms/histograms.xml:102509: + <int value="58" label="FINAL_STATUS_CANCELLED_FOR_APPCACHE"/> remove "FINAL_STATUS_" for consistency
3 years, 10 months ago (2017-02-07 12:05:11 UTC) #30
mattcary
https://codereview.chromium.org/2642733002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2642733002/diff/80001/tools/metrics/histograms/histograms.xml#newcode102509 tools/metrics/histograms/histograms.xml:102509: + <int value="58" label="FINAL_STATUS_CANCELLED_FOR_APPCACHE"/> On 2017/02/07 12:05:11, droger wrote: ...
3 years, 10 months ago (2017-02-07 12:07:43 UTC) #31
Charlie Harrison
I like that the new code isn't relying on manifest tags found by the parser. ...
3 years, 10 months ago (2017-02-07 14:10:30 UTC) #32
mattcary
+michaeln ping?
3 years, 10 months ago (2017-02-16 09:36:50 UTC) #33
mattcary
On 2017/02/16 09:36:50, mattcary wrote: > +michaeln > > ping? Reping? I know that AppCache ...
3 years, 10 months ago (2017-02-23 10:17:27 UTC) #34
mattcary
On 2017/02/23 10:17:27, mattcary wrote: > On 2017/02/16 09:36:50, mattcary wrote: > > +michaeln > ...
3 years, 9 months ago (2017-03-03 13:14:29 UTC) #35
michaeln
sorry, i was unexpectedly ooo for sometime in feb/mar, i'll take a look...
3 years, 9 months ago (2017-03-22 00:39:45 UTC) #36
michaeln
I'm wondering if it would make sense to modify the approach taken in snapshot 2? ...
3 years, 9 months ago (2017-03-27 23:27:45 UTC) #37
mattcary
On 2017/03/27 23:27:45, michaeln wrote: > I'm wondering if it would make sense to modify ...
3 years, 8 months ago (2017-03-30 09:25:10 UTC) #38
michaeln
lgtm! > All done, this seems to work. Is this what you had in mind? ...
3 years, 8 months ago (2017-03-30 17:57:40 UTC) #39
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/2642733002/120001
3 years, 8 months ago (2017-03-31 07:20:02 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/d741ab419a18a996643c568434e0a756eaf7bee6
3 years, 8 months ago (2017-03-31 08:53:40 UTC) #45
Charlie Harrison
On 2017/03/31 08:53:40, commit-bot: I haz the power wrote: > Committed patchset #7 (id:120001) as ...
3 years, 8 months ago (2017-03-31 11:49:43 UTC) #46
Timothy Loh
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2790323003/ by timloh@chromium.org. ...
3 years, 8 months ago (2017-04-04 06:59:02 UTC) #47
mattcary
3 years, 8 months ago (2017-04-13 08:53:17 UTC) #48
Message was sent while issue was closed.
Patch set 8 should be the unrevert cl/2819523002 and not in this one.

Powered by Google App Engine
This is Rietveld 408576698