Jonathan Kingston
c6ab4134b8
Bug 1605191 - Make nsIPrincipal attributes camelcase. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D58537
--HG--
extra : moz-landing-system : lando
2020-01-07 09:53:21 +00:00
Boris Zbarsky
cbc90e1aca
Bug 1602090 part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
...
CheckMayLoadAndReport takes a window ID. This allows us to report
errors from it to the web console as needed. Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.
Differential Revision: https://phabricator.services.mozilla.com/D56388
--HG--
extra : moz-landing-system : lando
2019-12-13 06:24:12 +00:00
Ciure Andrei
6c95adafed
Backed out 4 changesets (bug 1602483, bug 1602090) for causing perma leackchecks CLOSED TREE
...
Backed out changeset 6b057ba06b4a (bug 1602483)
Backed out changeset 9be3269d781d (bug 1602483)
Backed out changeset e3e2c1d7478e (bug 1602090)
Backed out changeset fdc4a588912e (bug 1602090)
2019-12-12 18:37:01 +02:00
Boris Zbarsky
e0acf6e9fc
Bug 1602090 part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
...
CheckMayLoadAndReport takes a window ID. This allows us to report
errors from it to the web console as needed. Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.
Differential Revision: https://phabricator.services.mozilla.com/D56388
--HG--
extra : moz-landing-system : lando
2019-12-12 13:03:42 +00:00
Sebastian Streich
ef70bebbdc
Bug 1600051 - Refactor GetURI usage in ReferrerInfo.cpp r=ckerschb
...
***
Differential Revision: https://phabricator.services.mozilla.com/D55120
--HG--
extra : moz-landing-system : lando
2019-12-06 12:32:27 +00:00
Sebastian Streich
7809758d00
Bug 1597704 - Move is OriginPotentially Trustworthy into Principal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D53830
--HG--
extra : moz-landing-system : lando
2019-12-05 16:04:53 +00:00
shindli
f3f1c30ea4
Backed out changeset 68ff34ec8e96 (bug 1597704) for causing perma bc3 failures in browser/extensions/formautofill/test/browser/browser_autocomplete_footer.js CLOSED TREE
2019-11-28 16:12:45 +02:00
Sebastian Streich
e00f41deb2
Bug 1597704 - Move is OriginPotentially Trustworthy into Principal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D53830
--HG--
extra : moz-landing-system : lando
2019-11-28 12:44:29 +00:00
Sebastian Streich
a79df87bcc
Bug 1589690 : Add isOnion API r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D49751
--HG--
extra : moz-landing-system : lando
2019-11-28 09:22:17 +00:00
Gurzau Raul
865834687b
Backed out changeset 74162d71ef4d (bug 1597704) for failing at browser_insecurePasswordConsoleWarning.js on a CLOSED TREE.
2019-11-26 19:30:19 +02:00
Sebastian Streich
a22a53ebb2
Bug 1597704 - Move is OriginPotentially Trustworthy into Principal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D53830
--HG--
extra : moz-landing-system : lando
2019-11-26 16:00:49 +00:00
Razvan Maries
c5d796f8ad
Backed out changeset 4082b974a1e6 (bug 1597704) test_isOriginPotentiallyTrustworthy.js. CLOSED TREE
2019-11-22 13:35:36 +02:00
Sebastian Streich
309ac043a0
Bug 1597704 - Move is OriginPotentially Trustworthy into Principal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D53830
--HG--
extra : moz-landing-system : lando
2019-11-21 16:29:13 +00:00
Andreea Pavel
f12302bb4f
Backed out changeset 4757e1fd407f (bug 1594781) for failing wpt at iframe_sandbox_popups_escaping-1.html on a CLOSED TREE
2019-11-20 07:26:52 +02:00
Sebastian Streich
c1543aa8e0
Bug 1594781 -- Refactor nsGlobalWindowOuter r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D52186
--HG--
extra : moz-landing-system : lando
2019-11-19 15:14:43 +00:00
Sebastian Streich
b4ebe9b54a
Bug 1592701 - Remove usage of GetURI in nsGlobalWindowInner r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D51258
--HG--
extra : moz-landing-system : lando
2019-11-07 13:42:37 +00:00
Sebastian Streich
f4b2f14328
Bug 1585664 - Add GetAsciiSpecForLogging and update callers r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D47909
--HG--
extra : moz-landing-system : lando
2019-10-22 16:03:27 +00:00
Sebastian Streich
854f9b5f12
Bug 1585331 - Add nsIPrincipal::GetAboutModuleFlags r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D47775
--HG--
extra : moz-landing-system : lando
2019-10-17 13:54:41 +00:00
Sebastian Streich
1aa0b1244d
Bug 1583871 Refactor ThirdpartyUtil.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D47099
--HG--
extra : moz-landing-system : lando
2019-10-02 15:10:40 +00:00
Sebastian Streich
d53a4d8d9a
Bug 1580782 - Expose SchemeIs on nsIPrincipal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D45653
--HG--
extra : moz-landing-system : lando
2019-09-26 10:47:03 +00:00
Johann Hofmann
ac725e0bf7
Bug 1583233 - Add MOZ_DBG support for nsIPrincipal. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D46796
--HG--
extra : moz-landing-system : lando
2019-09-24 07:56:40 +00:00
Jonathan Kingston
31441f82ea
Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35504
--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Christoph Kerschbaumer
b633427366
Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D27654
--HG--
extra : moz-landing-system : lando
2019-05-21 23:14:27 +00:00
Andrea Marchesini
f8565bf748
Bug 1320404 - Remove appId from origin attributes - part 1 - OriginAttributes and nsIPrincipal, r=Ehsan,flod
...
Differential Revision: https://phabricator.services.mozilla.com/D29353
--HG--
extra : moz-landing-system : lando
2019-05-03 17:13:17 +00:00
Bogdan Tara
386d23bfe7
Backed out 4 changesets (bug 1320404) for test_permmanager_load_invalid_entries.js failures
...
Backed out changeset 7c2f4e64d38e (bug 1320404)
Backed out changeset a7e7c0251179 (bug 1320404)
Backed out changeset dd741b25a244 (bug 1320404)
Backed out changeset de9073c57d20 (bug 1320404)
2019-05-03 06:12:25 +03:00
Andrea Marchesini
138cee6dea
Bug 1320404 - Remove appId from origin attributes - part 1 - OriginAttributes and nsIPrincipal, r=Ehsan,flod
...
Differential Revision: https://phabricator.services.mozilla.com/D29353
--HG--
extra : moz-landing-system : lando
2019-05-02 17:24:51 +00:00
Cosmin Sabou
a884fb99d8
Backed out 4 changesets (bug 1320404) for xperf failures on permissions.sqlite-journal.
...
Backed out changeset fbacf18b6532 (bug 1320404)
Backed out changeset fed7c475d75c (bug 1320404)
Backed out changeset 557b586f774a (bug 1320404)
Backed out changeset 5a20b5f43280 (bug 1320404)
2019-05-02 04:51:18 +03:00
Andrea Marchesini
7e61125d8f
Bug 1320404 - Remove appId from origin attributes - part 1 - OriginAttributes and nsIPrincipal, r=Ehsan,flod
...
Differential Revision: https://phabricator.services.mozilla.com/D29353
--HG--
extra : moz-landing-system : lando
2019-05-01 23:21:45 +00:00
Christoph Kerschbaumer
7c441f1bcb
Bug 1518454: Part 1, backend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=bz
2019-02-21 16:00:32 +01:00
Kyle Machulis
d9173f8644
Bug 1518991 - Make nsIPrincipal URI getter infallible; r=bholley
...
nsIPrincipal::GetURI returns NS_OK for all implementations. Make it
infallible so we can clean up status checks in C++ code that uses principals.
Differential Revision: https://phabricator.services.mozilla.com/D16145
--HG--
extra : moz-landing-system : lando
2019-01-10 05:44:33 +00:00
Boris Zbarsky
058f83508f
Bug 1517434 part 2. Convert existing callers of GetIsSystemPrincipal() to IsSystemPrincipal(). r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D15673
--HG--
extra : moz-landing-system : lando
2019-01-03 20:55:38 +00:00
Boris Zbarsky
2c0124d662
Bug 1517434 part 1. Add a fast inline nsIPrincipal::IsSystemPrincipal. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D15672
--HG--
extra : moz-landing-system : lando
2019-01-03 20:08:55 +00:00
Boris Zbarsky
b88f0dc956
Bug 1507540 part 1. Use more notxpcom attributes in caps/. r=mrbkap
2018-11-19 20:17:52 -05:00
Jonathan Kingston
2a8b750345
Bug 1502743 - Replace black/whitelist within caps to block/allowlist r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D10013
--HG--
extra : moz-landing-system : lando
2018-10-31 17:56:43 +00:00
Nika Layzell
933f7fe4d4
Bug 1485177 - Add |siteOrigin| information to nsIPrincipal r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D4140
--HG--
extra : moz-landing-system : lando
2018-09-05 03:22:16 +00:00
Tiberius Oros
2fe7330f2d
Backed out changeset 33c7b0ea5caa (bug 1485177) for assertion failure at builds/worker/workspace/build/src/caps/ContentPrincipal.cpp on a CLOSED TREE
2018-09-01 05:06:55 +03:00
Nika Layzell
452350d97c
Bug 1485177 - Add |siteOrigin| information to nsIPrincipal, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D4140
--HG--
extra : moz-landing-system : lando
2018-09-01 00:52:00 +00:00
Olli Pettay
de99e4460b
Bug 1439153 - Make WebExtensions work with Shadow DOM/WebComponents, r=kmag
...
--HG--
extra : rebase_source : 83638cba42eea1523d32d06a2eb14df20cbab404
2018-07-14 05:26:15 +03:00
Adrian Wielgosik
074d88de5a
Bug 1460940 - Convert nsIPrincipal to use nsIDocument. r=bz
...
MozReview-Commit-ID: z1TGWtS1KG
--HG--
extra : rebase_source : e5291c40eb017c1e3fd69333ac108dda852fb8cd
2018-05-11 19:46:15 +02:00
Kris Maglione
27c96362b9
Bug 1412345: Downgrade expanded principals before inheriting. r=bz,krizsa
...
There are several ways that expanded principals can be used as triggering
principals for requests. While that works fine for security checks, it also
sometimes causes them to be inherited, and used as result principals in
contexts where expanded principals aren't allowed.
This patch changes our inheritance behavior so that expanded principals are
downgraded to the most appropriate constituent principal when they would
otherwise be inherited.
The logic for choosing the most appropriate principal is a bit suspect, and
may eventually need to be changed to always select the last whitelist
principal, but I chose it to preserve the current principal downgrade behavior
used by XMLHttpRequest for the time being.
MozReview-Commit-ID: 9fvAKr2e2fa
--HG--
extra : rebase_source : c30df1b3851c11fed5a1d6a7fb158cec14933182
2017-11-02 19:56:27 -07:00
Kris Maglione
bd6d63772a
Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
...
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.
MozReview-Commit-ID: 3f8mhynkKAj
--HG--
extra : source : 237acf2879f6222bc4b076c377bf026d18a6ebef
extra : amend_source : dfaf6e88e3c4758f7fdcf7fb422d457edafab1b7
2017-10-10 15:00:16 -07:00
Sebastian Hengst
11a2b8ef67
Backed out changeset 237acf2879f6 (bug 1407428) for frequent crashes, e.g. in xpcshell's test_bug248970_cookie.js. r=backout on a CLOSED TREE
...
--HG--
extra : amend_source : 1ccac4fb953566239cba8db7d6f8bdca4ce48b35
2017-10-16 00:00:15 +02:00
Kris Maglione
7d8f8ea3d6
Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
...
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.
MozReview-Commit-ID: 3f8mhynkKAj
--HG--
extra : rebase_source : d2a5e0862f8c964fb5a3e46b50c2e9629b218699
extra : amend_source : 27d7a7ef5da6fe2aa1104009b6ee067465db73e1
2017-10-10 15:00:16 -07:00
Kris Maglione
b3ba0520ee
Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa
...
Going through the extension policy service rather than using
WebExtensionPolicy objects directly adds a lot of unnecessary overhead to
common operations on extension principals, and also makes the code more
complicated than it needs to be.
We also use weak references to policy objects here, since principals should
ideally lose as much of their elevated privileges as possible once the
extension instance that created them has been destroyed (which is something we
couldn't handle easily when we simply tracked ID strings).
MozReview-Commit-ID: KDNvVdvLkIt
--HG--
extra : rebase_source : 1b567919d2461bd0315d1a7d89f330cbd585f579
2017-09-05 11:04:43 -07:00
Andrea Marchesini
884d9efc73
Bug 1369316 - Get rid of nsIPrincipal.unknownAppId, r=bholley
2017-06-02 11:05:28 +02:00
Andrea Marchesini
cead0b042c
Bug 1369310 - Get rid of nsIPrincipal.appStatus, r=bholley
2017-06-02 11:05:28 +02:00
Andrea Marchesini
f91cb666bb
Bug 1343933 - Renaming Principal classes - part 3 - SystemPrincipal, r=qdot
...
--HG--
rename : caps/nsSystemPrincipal.cpp => caps/SystemPrincipal.cpp
rename : caps/nsSystemPrincipal.h => caps/SystemPrincipal.h
2017-03-22 11:39:08 +01:00
Andrea Marchesini
68207654f2
Bug 1343933 - Renaming Principal classes - part 1 - ExpandedPrincipal, r=qdot
...
--HG--
rename : caps/nsExpandedPrincipal.cpp => caps/ExpandedPrincipal.cpp
rename : caps/nsExpandedPrincipal.h => caps/ExpandedPrincipal.h
2017-03-22 11:38:17 +01:00
Frederik Braun
390a075c26
Bug 1073952: inherit CSP into iframe sandbox srcdoc r=ckerschb,Tomcat
...
MozReview-Commit-ID: 3fhWCGwgG4A
--HG--
extra : rebase_source : 7e84fafe0ef69b7f6695de825fc254ee0e4209ba
2017-01-30 14:09:37 +01:00
Olli Pettay
5a13988731
Bug 1339251 - Make Equals/Subsumes faster when comparing same objects, r=bholley
...
--HG--
extra : rebase_source : 977c790f03188c4fda83297db026af62ee56a870
2017-02-22 13:19:03 +02:00