Christoph Kerschbaumer
3e884ce321
Bug 1188538: Ensure every protocol handler sets a valid security flag. r=bholley,mixedpuppy
...
Differential Revision: https://phabricator.services.mozilla.com/D67496
--HG--
extra : moz-landing-system : lando
2020-03-20 08:25:18 +00:00
Stefan Hindli
91f4c18048
Backed out 4 changesets (bug 1622042) for causing AddonInstallException: Could not install add-on: c:\users\task_1584560140\appdata\local\temp\tmpbg9_h7.zip: ERROR_FILE_ACCESS: There was an error accessing the filesystem. CLOSED TREE
...
Backed out changeset 929043330599 (bug 1622042)
Backed out changeset b08cdd075e20 (bug 1622042)
Backed out changeset ca87f1c6b90b (bug 1622042)
Backed out changeset 27dbbb7cd590 (bug 1622042)
2020-03-18 22:49:23 +02:00
Sebastian Streich
56a7a311d1
Bug 1622042 - Refactor NsContentUtils:Allowsl10n r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D66633
--HG--
extra : moz-landing-system : lando
2020-03-18 16:00:40 +00:00
Cosmin Sabou
029804e3f7
Backed out 4 changesets (bug 1622042) for causing build bustages on nsContentUtils.cpp. CLOSED TREE
...
Backed out changeset dc7af5abb8de (bug 1622042)
Backed out changeset 16e3b4a1fefc (bug 1622042)
Backed out changeset f60b16588dad (bug 1622042)
Backed out changeset 4193aea26e28 (bug 1622042)
--HG--
extra : amend_source : 2f2befe5703f683ccaac6d634fc4a262db9fff86
2020-03-17 20:38:35 +02:00
Sebastian Streich
63b92a302c
Bug 1622042 - Refactor NsContentUtils:Allowsl10n r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D66633
--HG--
extra : moz-landing-system : lando
2020-03-17 17:11:42 +00:00
Christoph Kerschbaumer
2244f338fc
Bug 1353429: Test Principal URI escaping.r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D66997
--HG--
extra : moz-landing-system : lando
2020-03-17 14:05:22 +00:00
Brindusan Cristian
426b685bf7
Backed out changeset 21aedccf1abb (bug 1353429) for ESlint failure. CLOSED TREE
2020-03-17 14:10:52 +02:00
Christoph Kerschbaumer
f03e90da15
Bug 1353429: Test Principal URI escaping.r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D66997
--HG--
extra : moz-landing-system : lando
2020-03-17 07:12:08 +00:00
Marco Bonardo
2dc20c6432
Bug 1621328 - Move CreateExposableURI into nsIOService. r=Gijs,mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D66269
--HG--
extra : moz-landing-system : lando
2020-03-13 12:44:36 +00:00
Christoph Kerschbaumer
8e374dc349
Bug 1141959: Test nsIPrincipal.origin treats IPv6 host correctly.r=tjr
...
Differential Revision: https://phabricator.services.mozilla.com/D66056
--HG--
extra : moz-landing-system : lando
2020-03-13 16:00:39 +00:00
Sebastian Streich
c7989b585d
Bug 1621310
- Remove geturi in ContentPrincipal.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D66250
--HG--
extra : moz-landing-system : lando
2020-03-12 19:47:56 +00:00
Christoph Kerschbaumer
131117226a
Bug 1621667: Remove unnecessary semicolon in BasePrincipal. r=sstreich
...
Differential Revision: https://phabricator.services.mozilla.com/D66415
--HG--
extra : moz-landing-system : lando
2020-03-11 15:52:18 +00:00
Daniel Varga
8edab673d8
Backed out changeset d15b968aa6d1 (bug 1615297) for causing build bustage
...
CLOSED TREE
--HG--
extra : rebase_source : 4e525e82fb7f194d9b7eac0020932ed09ac005b7
2020-03-11 05:41:51 +02:00
Sebastian Streich
1f23aca56c
Bug 1615297 - Move Localstorage Keygen into Principal r=ckerschb,baku
...
Differential Revision: https://phabricator.services.mozilla.com/D62757
--HG--
extra : moz-landing-system : lando
2020-03-10 18:10:08 +00:00
Sebastian Streich
fbb2bf6422
Bug 1620624 - Refactor nsUrlClassifier r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D65758
--HG--
extra : moz-landing-system : lando
2020-03-10 13:13:02 +00:00
Sebastian Streich
115092bca7
Bug 1620292 - Remove Geturi usage in XPCJSRuntime.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D65562
--HG--
extra : moz-landing-system : lando
2020-03-09 13:28:03 +00:00
Mark Banner
2c4e35b0a6
Bug 1620218
- Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D65509
--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Mark Banner
15cfe23b88
Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D65703
--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Noemi Erli
cae18cfff0
Backed out changeset ae75c4984b1b (bug 1620292) for causing bustages in BasePrincipal.h CLOSED TREE
2020-03-06 23:02:03 +02:00
Sebastian Streich
69d07ec477
Bug 1620292 - Remove Geturi usage in XPCJSRuntime.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D65562
--HG--
extra : moz-landing-system : lando
2020-03-06 20:04:33 +00:00
Christoph Kerschbaumer
bb063aba96
Bug 1417655: Mark private operator= delete for NullPrincipalURI since there is a private copy constr.r=bholley
...
Differential Revision: https://phabricator.services.mozilla.com/D65371
--HG--
extra : moz-landing-system : lando
2020-03-05 16:42:57 +00:00
Sebastian Streich
7f6af6cae2
Bug 1619745: Remove GetUri usage in nsSyncLoadService.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D65201
--HG--
extra : moz-landing-system : lando
2020-03-05 13:42:13 +00:00
Sebastian Streich
de4695b650
Bug 1615259 - Refactor GetUri in WorkerLoadInfo.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D62737
--HG--
extra : moz-landing-system : lando
2020-03-03 12:58:38 +00:00
Sebastian Streich
db60c34f97
Bug 1618241 - Move CreateQuotaDBKey to nsIPrincipal r=ckerschb,baku
...
Differential Revision: https://phabricator.services.mozilla.com/D64391
--HG--
extra : moz-landing-system : lando
2020-02-27 00:22:27 +00:00
J.C. Jones
56fa739a54
Bug 1616675 - Add isIpAddress to nsIPrincipal r=ckerschb
...
Adds an infallable boolean attribute to nsIPrincipal that indicates whether
the principal's host is an IP address.
Adds a gtest to exercise that part of the nsIPrincipal.
/**
* Returns if the principal is an IP address.
*/
[infallible] readonly attribute boolean isIpAddress;
Differential Revision: https://phabricator.services.mozilla.com/D63966
--HG--
extra : moz-landing-system : lando
2020-02-26 23:15:43 +00:00
Brindusan Cristian
cec1932e5b
Backed out changeset 270d0ffaf825 (bug 1615259) for build bustages at BasePrincipal.h. CLOSED TREE
2020-02-26 16:21:03 +02:00
Sebastian Streich
d694e543b1
Bug 1615259 - Refactor GetUri in WorkerLoadInfo.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D62737
--HG--
extra : moz-landing-system : lando
2020-02-26 13:52:01 +00:00
Sebastian Streich
a555462429
Bug 1605191 - Make new nsIPrincipal attributes camelcase. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D62769
--HG--
extra : moz-landing-system : lando
2020-02-24 17:04:45 +00:00
Sebastian Streich
4018f86453
Bug 1615321 - Remove GetUri call in StorageObserver r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D62765
--HG--
extra : moz-landing-system : lando
2020-02-24 16:57:40 +00:00
Sebastian Streich
7800cfd4ef
Bug 1615029 - Remove GetURI calls from CorsListenerProxy r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D62630
--HG--
extra : moz-landing-system : lando
2020-02-17 13:57:41 +00:00
Tom Schuster
7c32ce1560
Bug 1615405 - `eval(nonString)` should not have observable side effects. r=tcampbell,baku
...
After this change we can restrict contentSecurityPolicyAllows callbacks to just strings, because everything
else is excluded before calling that callback.
Differential Revision: https://phabricator.services.mozilla.com/D62794
--HG--
extra : moz-landing-system : lando
2020-02-14 15:05:27 +00:00
Bogdan Tara
2a147d1696
Backed out changeset bc387540075d (bug 1615405) on evilpie's request CLOSED TREE
2020-02-14 14:34:53 +02:00
Tom Schuster
140762b57e
Bug 1615405 - `eval(nonString)` should not have observable side effects. r=tcampbell,baku
...
After this change we can restrict contentSecurityPolicyAllows callbacks to just strings, because everything
else is excluded before calling that callback.
Differential Revision: https://phabricator.services.mozilla.com/D62794
--HG--
extra : moz-landing-system : lando
2020-02-14 12:26:21 +00:00
Tom Ritter
362986be19
Bug 1599226 - Suppress Hazard Analysis through nsJSPrincipals::isSystemOrAddonPrincipal r=jandem
...
Differential Revision: https://phabricator.services.mozilla.com/D62771
--HG--
extra : moz-landing-system : lando
2020-02-13 19:10:14 +00:00
Sebastian Streich
0c4f11b187
Bug 1608862 : refactor GetURI usage in BlobURLProtocolHandler.cpp r=ckerschb
...
***
Add get Prepath
Differential Revision: https://phabricator.services.mozilla.com/D59731
--HG--
extra : moz-landing-system : lando
2020-02-12 16:13:19 +00:00
Simon Giesecke
1e5c4a7749
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in caps. r=smaug
...
Depends on D62569
Differential Revision: https://phabricator.services.mozilla.com/D62570
--HG--
extra : moz-landing-system : lando
2020-02-12 13:39:13 +00:00
Sebastian Streich
b53c4508e9
Bug 1610835 - Refactor GetURI usage in AntiTrackingCommon.cpp r=ckerschb,baku
...
Differential Revision: https://phabricator.services.mozilla.com/D60684
--HG--
extra : moz-landing-system : lando
2020-02-10 15:10:52 +00:00
Emilio Cobos Álvarez
322cec0c5e
Bug 1612510 - Remove IsChromeOrXBL*. r=bzbarsky
...
XBL is no longer a thing... Also, should we rename AllowContentXBLScope?
Differential Revision: https://phabricator.services.mozilla.com/D61359
--HG--
extra : moz-landing-system : lando
2020-02-04 21:28:57 +00:00
Sebastian Streich
be513b0703
Bug 1594781 -- Refactor nsGlobalWindowOuter r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D52186
--HG--
extra : moz-landing-system : lando
2020-01-22 17:14:08 +00:00
Sylvestre Ledru
c521758c5e
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D58175
--HG--
extra : moz-landing-system : lando
2020-01-09 21:50:11 +00:00
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
Sebastian Streich
cb5e45fc61
Bug 1601944 - Refactor nsDataDocumentContentPolicy.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56186
--HG--
extra : moz-landing-system : lando
2020-01-06 15:30:35 +00:00
Kris Maglione
94e3b0bd8d
Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
...
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.
Differential Revision: https://phabricator.services.mozilla.com/D53740
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Boris Zbarsky
ee1cc488f2
Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56428
--HG--
rename : devtools/client/webconsole/test/browser/browser_webconsole_same_origin_errors.js => devtools/client/webconsole/test/browser/browser_webconsole_checkloaduri_errors.js
rename : devtools/client/webconsole/test/browser/test-same-origin-required-load.html => devtools/client/webconsole/test/browser/test-checkloaduri-failure.html
extra : moz-landing-system : lando
2019-12-12 16:41:19 +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
Boris Zbarsky
5360bbc908
Bug 1602090 part 1. Add a window id argument to nsScriptSecurityManager::ReportError. r=ckerschb
...
This will allow the errors reported via this method to show up in the web console as needed.
Differential Revision: https://phabricator.services.mozilla.com/D56386
--HG--
extra : moz-landing-system : lando
2019-12-12 16:41:26 +00:00
Sebastian Streich
938f258c79
Bug 1602419 - Fix Security Error flood r=ckerschb
...
I falsely did set the ReportError flag to aRes instead of false, which was flooding the console.
Differential Revision: https://phabricator.services.mozilla.com/D56379
--HG--
extra : moz-landing-system : lando
2019-12-12 17:40:03 +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
4425adb1cc
Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56428
--HG--
rename : devtools/client/webconsole/test/browser/browser_webconsole_same_origin_errors.js => devtools/client/webconsole/test/browser/browser_webconsole_checkloaduri_errors.js
rename : devtools/client/webconsole/test/browser/test-same-origin-required-load.html => devtools/client/webconsole/test/browser/test-checkloaduri-failure.html
extra : moz-landing-system : lando
2019-12-12 13:05:12 +00: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