gecko-dev/caps
Gijs Kruitbosch faf68417dc Bug 1461407 - make about:home unlinkable again and improve behavior of serialized principals across changes to URLs, r=bz,Mardak,mikedeboer
Making about:home unlinkable changes its URL structure. Prior to this change,
it is a nested URL. After this change, it no longer is.

We store serialized versions of principals in some cases. These include
details about whether the URI is nested etc. This is problematic for the
about:home change because the change in nesting changes the origin of the
page, so the origin  would mismatch between the principal and its URL.
To avoid this, we always re-create URIs for about: URIs when deserializing
them from strings, ensuring we don't create bogus principals.

MozReview-Commit-ID: 87zVUFgbusn

--HG--
extra : rebase_source : a7ad0dc3b1ea39521517da648f234d35d9a1729f
2018-05-14 22:04:49 +01:00
..
tests Bug 1456035: Follow-up: Delete redundant test_extensionURL.html, which fails with wrapper errors. r=me f=aswan CLOSED TREE 2018-04-25 17:01:36 -07:00
BasePrincipal.cpp Bug 1460940 - Convert nsIPrincipal to use nsIDocument. r=bz 2018-05-11 19:46:15 +02:00
BasePrincipal.h Bug 1460940 - Convert nsIPrincipal to use nsIDocument. r=bz 2018-05-11 19:46:15 +02:00
ContentPrincipal.cpp Bug 1461407 - make about:home unlinkable again and improve behavior of serialized principals across changes to URLs, r=bz,Mardak,mikedeboer 2018-05-14 22:04:49 +01:00
ContentPrincipal.h Bug 1448058 - Remove nsIMutable from URI implementations r=mayhemer 2018-05-09 18:21:24 +02:00
DomainPolicy.cpp Bug 1433958 - Change code that sets nsIURI.host to use nsIURIMutator r=mayhemer 2018-02-26 20:43:47 +01:00
DomainPolicy.h
ExpandedPrincipal.cpp Bug 1441336 - Use addon permissions for PerformanceTiming properties r=bz,kmag 2018-04-04 16:54:26 +02:00
ExpandedPrincipal.h Bug 1441336 - Use addon permissions for PerformanceTiming properties r=bz,kmag 2018-04-04 16:54:26 +02:00
NullPrincipal.cpp Bug 1448058 - Remove nsIMutable from URI implementations r=mayhemer 2018-05-09 18:21:24 +02:00
NullPrincipal.h Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb 2018-03-22 13:36:20 -05:00
NullPrincipalURI.cpp Bug 1434163 - Make all nsIURI attributes readonly r=mayhemer 2018-02-27 00:07:48 +01:00
NullPrincipalURI.h Bug 1442239 - Make URI deserialization (nsISerializable.read) happen via nsIURIMutator only r=mayhemer 2018-03-19 20:22:32 +01:00
OriginAttributes.cpp Bug 1431449 - Make URLParams::ParseInput call URLParams::Parse instead of the opposite; r=bz 2018-01-18 13:13:51 +01:00
OriginAttributes.h Bug 1349512 - Move OriginAttributes class in separate files, r=qdot 2017-03-22 18:45:40 +01:00
SystemPrincipal.cpp Bug 1460940 - Convert nsIPrincipal to use nsIDocument. r=bz 2018-05-11 19:46:15 +02:00
SystemPrincipal.h Bug 1460940 - Convert nsIPrincipal to use nsIDocument. r=bz 2018-05-11 19:46:15 +02:00
moz.build Bug 1399590 - Modify the argument of nsICookiePermission::CanAccess for changing nsIURI to nsIPrincipal. r=jdm 2017-10-03 14:37:11 +08:00
nsIAddonPolicyService.idl Bug 1356334: Part 4 - Add a helper to synchronously get an extension's name from its ID. r=billm 2017-08-11 21:22:18 -07:00
nsIDomainPolicy.idl bug 1303096 - Stop sending sync messages soon after content process start-up r=billm 2017-02-05 00:52:38 -05:00
nsIPrincipal.idl Bug 1460940 - Convert nsIPrincipal to use nsIDocument. r=bz 2018-05-11 19:46:15 +02:00
nsIScriptSecurityManager.idl Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz 2017-08-06 15:31:31 +09:00
nsJSPrincipals.cpp Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
nsJSPrincipals.h Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj 2018-02-05 22:46:57 -08:00
nsScriptSecurityManager.cpp Bug 1460685 - Backed out changeset 09ee763947c3 (bug 1352513);r=Gijs 2018-05-11 16:26:07 -07:00
nsScriptSecurityManager.h Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj 2017-10-16 21:08:42 -07:00