Add SecurityOrigin::GetRegistrableDomain

This CL implements GetRegistrableDomain as a SecurityOrigin method.

A registrable domain is a suffix of a full domain that consists of
public suffix plus an additional component. E.g. the registrable
domain of `` is ``, since `com` is a
public suffix and `example` is the additional component.

If two tuple origins have the same scheme and the same registrable
domain, they can access each other by updating document.domain.
That implies they have to share the same process and the same event

Change-Id: I4521ce036a4f568f0c0d3e4b1c593b66d5be3ead
Commit-Queue: Taiju Tsuiki <>
Reviewed-by: Tom Sepez <>
Cr-Commit-Position: refs/heads/master@{#643296}
5 files changed