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

Issue 1303833002: Add WebPageImportanceSignals::issuedNonGetFetchFromScript() (Closed)

Created:
5 years, 4 months ago by kouhei (in TOK)
Modified:
5 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WebPageImportanceSignals::issuedNonGetFetchFromScript() This CL adds "issuedNonGetFetchFromScript" flag to WebPageImportanceSignals. From this signal, we assume that the page state is not simply discardable, as it has issued some dynamic resource request with side-effects. BUG=520838 Committed: https://crrev.com/38bc2c7b6ca3fa40b63612bb015f11f961900a15 Cr-Commit-Position: refs/heads/master@{#351020}

Patch Set 1 #

Total comments: 1

Patch Set 2 : hook DocumentThreadableLoader #

Total comments: 10

Patch Set 3 : histograms.xml / tyoshino-san review #

Patch Set 4 : update base-url #

Patch Set 5 : add missing } #

Total comments: 1

Patch Set 6 : rebase fixes #

Total comments: 6

Patch Set 7 : tyoshino-san review #

Total comments: 9

Patch Set 8 : rebase / tkent-san review #

Patch Set 9 : m_document\.page() not ->page() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -1 line) Patch
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebPageImportanceSignals.cpp View 1 2 3 4 5 6 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebPageImportanceSignals.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (11 generated)
kouhei (in TOK)
5 years, 4 months ago (2015-08-20 06:53:28 UTC) #2
yhirano
I think fetch() and XHR should be treated equally.
5 years, 4 months ago (2015-08-20 07:46:13 UTC) #3
yhirano
https://codereview.chromium.org/1303833002/diff/1/Source/core/xmlhttprequest/XMLHttpRequest.cpp File Source/core/xmlhttprequest/XMLHttpRequest.cpp (right): https://codereview.chromium.org/1303833002/diff/1/Source/core/xmlhttprequest/XMLHttpRequest.cpp#newcode576 Source/core/xmlhttprequest/XMLHttpRequest.cpp:576: if (method != "GET") { Is it better to ...
5 years, 4 months ago (2015-08-20 07:46:55 UTC) #4
kouhei (in TOK)
tyoshino: Would you take a look?
5 years, 3 months ago (2015-09-24 07:36:09 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1303833002/diff/20001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1303833002/diff/20001/Source/core/loader/DocumentThreadableLoader.cpp#newcode165 Source/core/loader/DocumentThreadableLoader.cpp:165: document.frame()->page()->chromeClient().observedNonGetFetchFromScript(); use m_document for consistency with other users add ...
5 years, 3 months ago (2015-09-24 08:14:11 UTC) #6
kouhei (in TOK)
asvitkine: Would you take a look at the UMA xml? https://codereview.chromium.org/1303833002/diff/20001/Source/core/loader/DocumentThreadableLoader.cpp File Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1303833002/diff/20001/Source/core/loader/DocumentThreadableLoader.cpp#newcode165 ...
5 years, 3 months ago (2015-09-25 03:22:00 UTC) #8
kouhei (in TOK)
Sorry, patch is buggy from failed rebase. Will update shortly.
5 years, 3 months ago (2015-09-25 03:34:50 UTC) #9
tzik
https://codereview.chromium.org/1303833002/diff/40002/third_party/WebKit/Source/web/WebPageImportanceSignals.cpp File third_party/WebKit/Source/web/WebPageImportanceSignals.cpp (right): https://codereview.chromium.org/1303833002/diff/40002/third_party/WebKit/Source/web/WebPageImportanceSignals.cpp#newcode31 third_party/WebKit/Source/web/WebPageImportanceSignals.cpp:31: void WebPageImportanceSignals::setHadFormInteraction() s/setHadFormInteraction/setIssuedNonGetFetchFromScript/?
5 years, 3 months ago (2015-09-25 03:36:29 UTC) #10
kouhei (in TOK)
Ok. PTAL
5 years, 3 months ago (2015-09-25 03:39:20 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303833002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303833002/90001
5 years, 3 months ago (2015-09-25 03:39:42 UTC) #13
tzik
lgtm
5 years, 3 months ago (2015-09-25 03:54:24 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-25 05:09:02 UTC) #16
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1303833002/diff/90001/third_party/WebKit/Source/core/page/ChromeClient.h File third_party/WebKit/Source/core/page/ChromeClient.h (right): https://codereview.chromium.org/1303833002/diff/90001/third_party/WebKit/Source/core/page/ChromeClient.h#newcode255 third_party/WebKit/Source/core/page/ChromeClient.h:255: // Called when observed XHR, fetch, and other fetch ...
5 years, 3 months ago (2015-09-25 06:22:45 UTC) #17
kouhei (in TOK)
https://codereview.chromium.org/1303833002/diff/90001/third_party/WebKit/Source/core/page/ChromeClient.h File third_party/WebKit/Source/core/page/ChromeClient.h (right): https://codereview.chromium.org/1303833002/diff/90001/third_party/WebKit/Source/core/page/ChromeClient.h#newcode255 third_party/WebKit/Source/core/page/ChromeClient.h:255: // Called when observed XHR, fetch, and other fetch ...
5 years, 3 months ago (2015-09-25 08:47:35 UTC) #18
tyoshino (SeeGerritForStatus)
lgtm
5 years, 2 months ago (2015-09-25 12:40:31 UTC) #19
Alexei Svitkine (slow)
lgtm
5 years, 2 months ago (2015-09-25 14:30:52 UTC) #20
kouhei (in TOK)
tkent: Would you do a OWNER review?
5 years, 2 months ago (2015-09-27 22:56:15 UTC) #22
tkent
https://codereview.chromium.org/1303833002/diff/110001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1303833002/diff/110001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode168 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:168: // we use this chance to update PageImportanceSignals. DocumentThreadableLoader ...
5 years, 2 months ago (2015-09-27 23:40:52 UTC) #23
kouhei (in TOK)
https://codereview.chromium.org/1303833002/diff/110001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1303833002/diff/110001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode168 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:168: // we use this chance to update PageImportanceSignals. On ...
5 years, 2 months ago (2015-09-28 00:42:44 UTC) #24
tkent
lgtm https://codereview.chromium.org/1303833002/diff/110001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1303833002/diff/110001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode180 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:180: if (request.httpMethod() != "GET") { On 2015/09/28 at ...
5 years, 2 months ago (2015-09-28 00:48:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303833002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303833002/150001
5 years, 2 months ago (2015-09-28 00:50:24 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/118745)
5 years, 2 months ago (2015-09-28 02:09:19 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303833002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303833002/150001
5 years, 2 months ago (2015-09-28 02:10:20 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/118756)
5 years, 2 months ago (2015-09-28 03:24:58 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303833002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303833002/150001
5 years, 2 months ago (2015-09-28 03:27:17 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:150001)
5 years, 2 months ago (2015-09-28 04:02:58 UTC) #37
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 04:03:54 UTC) #38
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/38bc2c7b6ca3fa40b63612bb015f11f961900a15
Cr-Commit-Position: refs/heads/master@{#351020}

Powered by Google App Engine
This is Rietveld 408576698