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

Issue 2123463002: `about:blank` is not mixed content. (Closed)

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

Description

`about:blank` is not mixed content. The refactoring in [1] broke our handling of `about:blank` by moving from `SecurityOrigin::isSecure(url)` to `SecurityOrigin::create(url)`. The latter treats contextually-bound URLs like `about:blank` as unique security origins, which I completely missed when writing tests. This patch corrects the error, and adds a unit test that I should have added a long time ago. :) [1]: https://chromium.googlesource.com/chromium/src/+/130ee686fa00b617bfc001ceb3bb49782da2cb4e BUG=624275 R=yoav@yoav.ws Committed: https://crrev.com/c6a3b5007b8aa2dbe513411b030032fef42b5b66 Cr-Commit-Position: refs/heads/master@{#403655}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 chunk +4 lines, -2 lines 1 comment Download
M third_party/WebKit/Source/core/loader/MixedContentCheckerTest.cpp View 2 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Mike West
Yoav, have a moment to check this?
4 years, 5 months ago (2016-07-04 08:14:59 UTC) #1
Yoav Weiss
LGTM + nagging, unrelated questions :) Tracking down what isSecure() does, I saw a *lot* ...
4 years, 5 months ago (2016-07-04 09:02:36 UTC) #2
Mike West
On 2016/07/04 at 09:02:36, yoav wrote: > LGTM + nagging, unrelated questions :) Thanks! > ...
4 years, 5 months ago (2016-07-04 09:41:23 UTC) #3
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/2123463002/1
4 years, 5 months ago (2016-07-04 09:41:36 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-04 09:45:27 UTC) #6
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 09:47:01 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c6a3b5007b8aa2dbe513411b030032fef42b5b66
Cr-Commit-Position: refs/heads/master@{#403655}

Powered by Google App Engine
This is Rietveld 408576698