зеркало из https://github.com/mozilla/gecko-dev.git
996e0349b3
When we load about:blank in a remote tab, it will have LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL flag set, which will make NullPrinicipal as its document principal. So we add NULL_PRINCIPAL_FIRST_PARTY_DOMAIN as its firstPartyDomain. So when we load data:, or javascript: URI in a remote tab, it will inherit the principal from about:blank, hence also inherit the origin attributes. There are also some about: pages will use codebase principal, so we also set ABOUT_URI_FIRST_PARTY_DOMAIN as firstPartyDomain on their principals. |
||
---|---|---|
.. | ||
base | ||
build | ||
resources/content | ||
shistory | ||
test | ||
moz.build |