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
Review-Url: https://codereview.chromium.org/2121383007
Cr-Commit-Position: refs/heads/master@{#404420}
1 file changed