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

Issue 2121383007: Serialize a SecurityOrigin using effectivePort() rather than port(). (Closed)

Created:
4 years, 5 months ago by Marijn Kruisselbrink
Modified:
4 years, 5 months ago
Reviewers:
dcheng
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Serialize a SecurityOrigin using effectivePort() rather than port(). Even though the URL spec and blink::SecurityOrigin normalize origins with default ports to (scheme, host, 0/null), url::Origin instead normalizes them to (scheme, host, effective_port). This fixes passing such origins over mojo by always serializing the effective_port. This fixes a crash when trying to use BroadcastChannel from a page with a default port origin. BUG=161070 Committed: https://crrev.com/41e640498f1d4d98ee775f65cea06ff1977c142b Cr-Commit-Position: refs/heads/master@{#404420}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M third_party/WebKit/Source/platform/mojo/SecurityOriginStructTraits.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
Marijn Kruisselbrink
This also shows the shortcoming of testing struct traits by only serializing/deserializing with the same ...
4 years, 5 months ago (2016-07-07 23:13:43 UTC) #7
dcheng
On 2016/07/07 23:13:43, Marijn Kruisselbrink wrote: > This also shows the shortcoming of testing struct ...
4 years, 5 months ago (2016-07-08 06:03:23 UTC) #8
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/2121383007/40001
4 years, 5 months ago (2016-07-08 16:09:35 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years, 5 months ago (2016-07-08 17:02:35 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 17:02:39 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 17:05:37 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/41e640498f1d4d98ee775f65cea06ff1977c142b
Cr-Commit-Position: refs/heads/master@{#404420}

Powered by Google App Engine
This is Rietveld 408576698