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

Issue 2045313003: Dev tools warning and console warning for document.write script blocking (Closed)

Created:
4 years, 6 months ago by shivanisha
Modified:
4 years, 6 months ago
Reviewers:
Nate Chapin, jkarlin
CC:
blink-reviews, Bryan McQuade, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dev tools warning and console warning for document.write script blocking BUG=599875 Committed: https://crrev.com/021389e7cbc9ed30a47eb69894f9bb8d48d930ee Cr-Commit-Position: refs/heads/master@{#401606}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Nate's comments addressed. #

Patch Set 3 : Update layout tests for the new console warnings #

Total comments: 5

Patch Set 4 : Feedback incorporated. #

Patch Set 5 : fixed layout tests. #

Total comments: 2

Patch Set 6 : Only one invocation of emitWarning function #

Messages

Total messages: 24 (10 generated)
shivanisha
4 years, 6 months ago (2016-06-08 18:07:39 UTC) #6
Nate Chapin
https://codereview.chromium.org/2045313003/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode79 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:79: void FrameFetchContext::emitWarningForDocWriteScripts(const String& url) const Maybe take the a ...
4 years, 6 months ago (2016-06-09 23:44:44 UTC) #8
shivanisha
https://codereview.chromium.org/2045313003/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/1/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode82 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:82: addConsoleMessage(message, WarningMessageLevel); On 2016/06/09 at 23:44:44, Nate Chapin wrote: ...
4 years, 6 months ago (2016-06-10 14:41:01 UTC) #9
shivanisha
Update layout tests to incorporate the new console warnings. Its strange that the in the ...
4 years, 6 months ago (2016-06-10 17:17:59 UTC) #10
jkarlin
https://codereview.chromium.org/2045313003/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode83 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:83: String message = "A Parser-blocking, cross-origin script " + ...
4 years, 6 months ago (2016-06-10 18:38:36 UTC) #11
Nate Chapin
One more code nit from me... https://codereview.chromium.org/2045313003/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode84 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:84: const_cast <Document &>(document).addConsoleMessage(ConsoleMessage::create(JSMessageSource, ...
4 years, 6 months ago (2016-06-10 23:34:32 UTC) #12
shivanisha
https://codereview.chromium.org/2045313003/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/40001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode83 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:83: String message = "A Parser-blocking, cross-origin script " + ...
4 years, 6 months ago (2016-06-20 14:28:06 UTC) #13
Nate Chapin
Code LGTM, though looks like your tests are failing on the bots?
4 years, 6 months ago (2016-06-20 21:52:45 UTC) #14
shivanisha
4 years, 6 months ago (2016-06-21 18:21:19 UTC) #16
jkarlin
lgtm with nit https://codereview.chromium.org/2045313003/diff/80001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/80001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode125 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:125: emitWarningForDocWriteScripts(request.url().getString(), document); no need to have ...
4 years, 6 months ago (2016-06-23 11:20:41 UTC) #17
shivanisha
Thanks! https://codereview.chromium.org/2045313003/diff/80001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/2045313003/diff/80001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode125 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:125: emitWarningForDocWriteScripts(request.url().getString(), document); On 2016/06/23 at 11:20:41, jkarlin wrote: ...
4 years, 6 months ago (2016-06-23 13:56:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045313003/100001
4 years, 6 months ago (2016-06-23 13:56:29 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-23 15:04:07 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 15:06:23 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/021389e7cbc9ed30a47eb69894f9bb8d48d930ee
Cr-Commit-Position: refs/heads/master@{#401606}

Powered by Google App Engine
This is Rietveld 408576698