Tom Schuster
9631de8e9e
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/security. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D39779
2019-07-30 07:23:18 +00:00
Jonas Allmann
864742f182
Bug 1498560 - Remove new Function from autocomplete.xml, r=mak
...
Differential Revision: https://phabricator.services.mozilla.com/D38041
2019-07-25 13:56:57 +00:00
Julian Descottes
4ee81b6e02
Bug 1550476 - Remove jsol.js from nsContentSecurityManager whitelist r=ckerschb
...
Depends on D38515
Differential Revision: https://phabricator.services.mozilla.com/D38621
2019-07-19 07:26:32 +00:00
Julian Descottes
26b0766ae7
Bug 1550471 - Remove jszip.js from nsContentSecurityManager whitelist r=ckerschb
...
Depends on D38517
Differential Revision: https://phabricator.services.mozilla.com/D38620
2019-07-19 07:26:54 +00:00
Julian Descottes
51f71288be
Bug 1550463 - Remove lodash.js from nsContentSecurityManager whitelist r=ckerschb
...
Depends on D38516
Differential Revision: https://phabricator.services.mozilla.com/D38619
2019-07-19 07:27:11 +00:00
Julian Descottes
ac14065c99
Bug 1550489 - Remove react-redux.js from nsContentSecurityManager whitelist r=ckerschb
...
Depends on D38513
Differential Revision: https://phabricator.services.mozilla.com/D38618
2019-07-19 07:27:44 +00:00
Julian Descottes
6ca43442e8
Bug 1550485 - Remove redux.js from nsContentSecurityManager whitlelist r=ckerschb
...
Depends on D38514
Differential Revision: https://phabricator.services.mozilla.com/D38617
2019-07-19 07:27:51 +00:00
Tom Ritter
b3804d474c
Bug 1564527 - Enable AssertEvalNotUsingSystemPrincipal on Nightly builds r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D37460
2019-07-18 18:22:06 +00:00
Jonas Allmann
d2f0581cc5
Bug 1560915 - Hardcode minimal eval()-whitelist for test files into eval()-assertion, r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D37695
2019-07-17 12:21:29 +00:00
Frederik Braun
7ae906f3e5
Bug 1565988 - fix typo in comment referencing follow-up work r=Pike
...
Differential Revision: https://phabricator.services.mozilla.com/D38050
2019-07-15 10:16:28 +00:00
Razvan Maries
553910fda4
Backed out changeset 6e4d13741a0f (bug 1564527) for perma AddressSanitizer failures. CLOSED TREE
2019-07-13 02:05:25 +03:00
Tom Ritter
ec41c998fd
Bug 1564527 - Enable AssertEvalNotUsingSystemPrincipal on Nightly builds r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D37460
2019-07-11 08:46:18 +00:00
Jonathan Kingston
32524b62e2
Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35504
2019-07-08 16:37:45 +00:00
Alex Catarineu
f1e25269a5
Bug 467035 - Avoid leaking browser language via DTD r=Gijs,bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34187
2019-07-08 10:47:05 +00:00
Frederik Braun
049e11fa77
Bug 1558745 - allow fxa to be loaded from systemprincipal (and then downgrade to content) r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35770
2019-07-03 13:59:28 +00:00
Boris Zbarsky
8e16a497d9
Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D34201
2019-06-08 21:26:12 +00:00
Frederik Braun
84deb648cc
Bug 1552477 - Disallow System Principal to load remote documents in nightly/early beta r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D31763
2019-05-29 10:06:15 +00:00
Christoph Kerschbaumer
29451e9f5e
Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D27654
2019-05-21 23:14:27 +00:00
Sebastian Streich
55b0b23d78
Bug 1402530 - Use IsOriginPotentiallyTrustworthy in ShouldLoad r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D30917
2019-05-13 14:40:40 +00:00
Noemi Erli
0d4a13199e
Backed out changeset 38ce182f68ea (bug 1402530) for build bustages in nsMixedContentBlocker.cpp CLOSED TREE
2019-05-09 17:29:38 +03:00
Sebastian Streich
fd2b05e39d
Bug 1402530 - Use IsOriginPotentiallyTrustworthy in ShouldLoad r=ckerschb,jkt
...
Differential Revision: https://phabricator.services.mozilla.com/D28870
2019-05-07 18:08:19 +00:00
Honza Bambas
b9aebb5732
Bug 1493599 - Expose reason of security blocking on nsILoadInfo and add new http observer notification for failed asyncOpens, r=Honza,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D23150
2019-04-26 10:59:41 +00:00
Ryan Hunt
7144ca54c8
Bug 1534395 - Rename TabChild to BrowserChild. r=nika
...
This commit renames TabChild to BrowserChild.
Differential Revision: https://phabricator.services.mozilla.com/D28135
2019-04-09 17:39:01 -05:00
Ryan Hunt
0ab69187a6
Bug 1534395 - Rename nsITabChild to nsIBrowserChild. r=nika,mconley
...
Similarly to nsITabParent, TabChild is exposed to frontend code via nsITabChild. It's not clear what the future of this interface will be, but for now we can just rename it to nsIBrowserChild.
Differential Revision: https://phabricator.services.mozilla.com/D28134
2019-04-09 18:15:02 -05:00
Jonas Allmann
d9ee3b131d
Bug 1541858, AssertEvalNotUsingSystemPrincipal into the ContentSecurityManager and also call it for worker code r=ckerschb
...
Bug 1541858 - Extended eval()-Assertion whitelist, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D28052
2019-04-18 13:54:43 +00:00
Frederik Braun
3c717822bb
Bug 1544008: follow-up: clang-format. CLOSED TREE
...
Differential Revision: https://phabricator.services.mozilla.com//D27479
2019-04-15 11:10:00 +02:00
Frederik Braun
49b38fb1ee
Bug 1544008 - re-allow systemprincipal load for discovery pane r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D27291
2019-04-15 08:03:58 +00:00
Masayuki Nakano
7d48088221
Bug 1542664 - Make TabChild use mozilla::PresShell directly rather than via nsIPresShell r=nika
...
This patch makes `TabChild` use `mozilla::PresShell` directly.
Then, renames `TabChild::GetPresShell()` and `TabChild::GetDocument()` to
`TabChild::GetTopLevelPresShell()` and `TabChild::GetTopLevelDocument()` to
make what they do clearer (e.g., see the change in `PresShell.cpp`).
Differential Revision: https://phabricator.services.mozilla.com/D26455
2019-04-13 01:53:10 +00:00
Narcis Beleuzu
3ae607ee08
Backed out changeset 4cf10c7b68ad (bug 1544008) for XPCShell crashes on test_csp_upgrade_insecure_request_header.js. CLOSED TREE
2019-04-12 18:52:39 +03:00
Frederik Braun
304b83c01f
Bug 1544008 - re-allow systemprincipal load for discovery pane r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D27291
2019-04-12 15:06:13 +00:00
Frederik Braun
95a85f5bd4
Bug 1513445 - Disallow web documents loaded with the SystemPrincipal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D26680
2019-04-10 14:20:12 +00:00
Ciure Andrei
aa5dd04ee3
Backed out 2 changesets (bug 1513445) for causing xpc perma fails CLOSED TREE
...
Backed out changeset 499f5b4d205d (bug 1513445)
Backed out changeset 568de07e5c40 (bug 1513445)
2019-04-09 05:04:45 +03:00
Frederik Braun
388f12d93f
Bug 1513445 - Disallow web documents loaded with the SystemPrincipal r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D19350
2019-04-08 14:58:20 +00:00
Ryan Hunt
ad7b7dbb30
Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D21106
2019-02-25 16:05:29 -06:00
Boris Zbarsky
b61174af9c
Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D17327
2019-02-28 01:09:48 +00:00
Magnus Melin
342b814b39
Bug 1528498 - check principal->GetURI rv to prevent Crash in [@ nsContentSecurityManager::IsOriginPotentiallyTrustworthy] via nsContentUtils::HttpsStateIsModern. r=ckerschb
2019-02-25 14:15:15 +02:00
Christoph Kerschbaumer
1a72eb2a6b
Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku
2019-02-20 13:27:25 +01:00
Jonathan Kingston
58708e007c
Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
...
Replacing js and text occurences of asyncOpen2
Replacing open2 with open
Differential Revision: https://phabricator.services.mozilla.com/D16885
2019-02-12 16:08:25 +00:00
Kris Maglione
8ccab89886
Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D15040
2018-12-16 17:27:58 -08:00
arthur.iakab
127fb281ff
Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE
...
Backed out changeset fce62c77a56b (bug 1478124)
Backed out changeset eb2fa3b5edf7 (bug 1478124)
Backed out changeset 8dacce59fcc0 (bug 1478124)
Backed out changeset 012fd0107204 (bug 1478124)
Backed out changeset 496aaf774697 (bug 1478124)
Backed out changeset 21f4fda03159 (bug 1478124)
Backed out changeset b0444e0bc801 (bug 1478124)
Backed out changeset d94039b19943 (bug 1478124)
Backed out changeset 5d85deac61c2 (bug 1478124)
Backed out changeset 929fd654c9df (bug 1478124)
Backed out changeset 1ddd80d9e91a (bug 1478124)
Backed out changeset b8d2dfdfc324 (bug 1478124)
Backed out changeset f500020a273a (bug 1478124)
Backed out changeset dd00365ebb55 (bug 1478124)
Backed out changeset 538e40c5ee13 (bug 1478124)
Backed out changeset bedaa9c437ad (bug 1478124)
2019-01-29 10:03:06 +02:00
Kris Maglione
605e3719de
Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D15040
2018-12-16 17:27:58 -08:00
Frederik Braun
671fe6b65f
Bug 1519817 - iterate over allowList when logging ExpandedPrincipal for debugging r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D16458
2019-01-14 14:24:44 +00:00
Ciure Andrei
212a44dc44
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-01-04 01:03:06 +02:00
Boris Zbarsky
82b1110d4e
Bug 1517434 part 2. Convert existing callers of GetIsSystemPrincipal() to IsSystemPrincipal(). r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D15673
2019-01-03 20:55:38 +00:00
Emilio Cobos Álvarez
dc336a73ba
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Kyle Machulis
f293508546
Bug 1505601 - Turn nsIDocShell XPIDL const lists into cenums; r=bzbarsky
...
Turn all const lists and related attributes into cenums, to provide a
vague sense of type safety.
Depends on D11715
Differential Revision: https://phabricator.services.mozilla.com/D11716
2018-11-28 03:30:56 +00:00
Brad Werth
aff8d37868
Bug 1496505: Use the triggering principal rather than the loading principal for CORS checks. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D9881
2018-10-31 18:02:46 +00:00
Frederik Braun
145b54c7cb
Bug 1499384: add debug logging for expandedprincipals r=ckerschb
...
Extending the MOZ_LOGging for content security checks to provide a proper serialization of expanded principals
Differential Revision: https://phabricator.services.mozilla.com/D8958
2018-10-22 12:49:10 +00:00
Frederik Braun
5fd5bdc133
Bug 1491825: add MOZ_LOG for content security checks r=ckerschb
...
Summary:
This patch adds a new log module 'CSMLog' for checks in nsContentSecurityManager::doContentSecurityCheck.
With log level 4 (debug) only HTTP URLs will be logged. Level 5 (verbose) logs for all loads.
The logger shows the following information: - channel URI - loadingPrincipal - triggeringPrincipal - principal to be inherited - load flags from loadinfo
Test Plan: n/a
Reviewers: jkt, ckerschb
Reviewed By: jkt, ckerschb
Bug #: 1491825
Differential Revision: https://phabricator.services.mozilla.com/D6125
2018-09-28 16:06:29 +03:00