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

Issue 2745363004: PlzNavigate: send SourceLocation when mixed content is found (Closed)

Created:
3 years, 9 months ago by clamy
Modified:
3 years, 9 months ago
Reviewers:
Nate Chapin, jam, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: send SourceLocation when mixed content is found This CL adds SourceLocation information to the IPC FrameMsg_MixedContentFound so that Mixed Contents console error messages display the appropriate line number. It also fixes an issue due to the rebase of https://codereview.chromium.org/2720763002/, where the SourceLocation information was not properly copied in the pending navigation info in RenderFrameImpl. BUG=695072 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2745363004 Cr-Commit-Position: refs/heads/master@{#458068} Committed: https://chromium.googlesource.com/chromium/src/+/8a58df54d52b781b9628e7adee559157a8602150

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Addressed nits #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Addressed nit #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -54 lines) Patch
M content/browser/frame_host/mixed_content_navigation_throttle.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -6 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 7 3 chunks +4 lines, -14 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 3 chunks +23 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 6 7 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.h View 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 2 3 4 4 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 7 1 chunk +11 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 7 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 45 (28 generated)
clamy
@nasko, japhet: PTAL
3 years, 9 months ago (2017-03-15 16:58:05 UTC) #6
nasko
content/ LGTM with some nits. https://codereview.chromium.org/2745363004/diff/1/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2745363004/diff/1/content/browser/frame_host/navigation_handle_impl.h#newcode529 content/browser/frame_host/navigation_handle_impl.h:529: // Information about the ...
3 years, 9 months ago (2017-03-15 18:29:08 UTC) #9
clamy
@japhet: PTAL https://codereview.chromium.org/2745363004/diff/1/content/browser/frame_host/navigation_handle_impl.h File content/browser/frame_host/navigation_handle_impl.h (right): https://codereview.chromium.org/2745363004/diff/1/content/browser/frame_host/navigation_handle_impl.h#newcode529 content/browser/frame_host/navigation_handle_impl.h:529: // Information about the Javascript that started ...
3 years, 9 months ago (2017-03-16 15:07:03 UTC) #11
Nate Chapin
LGTM w/nit https://codereview.chromium.org/2745363004/diff/40001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp File third_party/WebKit/Source/core/loader/MixedContentChecker.cpp (right): https://codereview.chromium.org/2745363004/diff/40001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp#newcode235 third_party/WebKit/Source/core/loader/MixedContentChecker.cpp:235: if (!sourceLocation) { Nit: invert this if() ...
3 years, 9 months ago (2017-03-16 19:54:12 UTC) #15
clamy
Thanks! https://codereview.chromium.org/2745363004/diff/40001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp File third_party/WebKit/Source/core/loader/MixedContentChecker.cpp (right): https://codereview.chromium.org/2745363004/diff/40001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp#newcode235 third_party/WebKit/Source/core/loader/MixedContentChecker.cpp:235: if (!sourceLocation) { On 2017/03/16 19:54:12, Nate Chapin ...
3 years, 9 months ago (2017-03-17 13:17:34 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/2745363004/80001
3 years, 9 months ago (2017-03-17 13:17:49 UTC) #19
commit-bot: I haz the power
Failed to apply patch for content/browser/frame_host/navigation_handle_impl.h: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-17 14:47:18 UTC) #21
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/2745363004/100001
3 years, 9 months ago (2017-03-17 15:33:44 UTC) #24
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/2745363004/120001
3 years, 9 months ago (2017-03-17 16:29:52 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/409365)
3 years, 9 months ago (2017-03-17 17:53:25 UTC) #30
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/2745363004/120001
3 years, 9 months ago (2017-03-18 03:19:30 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/409877)
3 years, 9 months ago (2017-03-18 03:24:06 UTC) #34
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/2745363004/140001
3 years, 9 months ago (2017-03-20 10:47:39 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/331496)
3 years, 9 months ago (2017-03-20 13:33:38 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/2745363004/140001
3 years, 9 months ago (2017-03-20 14:34:58 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/8a58df54d52b781b9628e7adee559157a8602150
3 years, 9 months ago (2017-03-20 15:28:32 UTC) #44
Dmitry Titov
3 years, 9 months ago (2017-03-20 23:49:25 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2765643002/ by dimich@chromium.org.

The reason for reverting is: This enabled LayoutTests which started to fail:

https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Mac1...
https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Mac1...
https://uberchromegw.corp.google.com/i/chromium.webkit/builders/WebKit%20Mac1...

There are text failures and a DCHECK:
14:48:10.177 5284 worker/2
virtual/mojo-loading/http/tests/serviceworker/chromium/request-body-blob-crash.html
crashed, (stderr lines):
14:48:10.177 5284  
[9083:38659:0320/144810.106602:2775098818460:FATAL:url_request.cc(1205)] Check
failed: blocked_by_.empty(). .

Powered by Google App Engine
This is Rietveld 408576698