Tom Schuster
fa11aeec2f
Bug 2031231 - Remove dead NS_SecurityHashURI function. r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D293803
2026-04-13 08:47:41 +00:00
Sylvestre Ledru
ab7784e3d4
Bug 2023419 - Remove Emacs/Vim modelines from caps/ r=emilio
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287837
2026-03-17 09:23:27 +00:00
serge-sans-paille
9db08d3f52
Bug 2009953 - Do not use reserved identifiers for macro guard in identifiers r=emilio,geckoview-reviewers,media-playback-reviewers,devtools-reviewers,win-reviewers,ochameau,gstoll,keeler,mccr8,padenot,alwu,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D278766
2026-01-22 17:49:59 +00:00
pstanciu
bc297a68a0
Revert "Bug 2009953 - Do not use reserved identifiers for macro guard in identifiers r=emilio,geckoview-reviewers,media-playback-reviewers,devtools-reviewers,win-reviewers,ochameau,gstoll,keeler,mccr8,padenot,alwu,m_kato" for causing build bustages @ CParserContext.h
...
This reverts commit afd052662d .
2026-01-21 16:23:10 +00:00
serge-sans-paille
afd052662d
Bug 2009953 - Do not use reserved identifiers for macro guard in identifiers r=emilio,geckoview-reviewers,media-playback-reviewers,devtools-reviewers,win-reviewers,ochameau,gstoll,keeler,mccr8,padenot,alwu,m_kato
...
Also remove security/manager/ssl/nsVerificationJob.h per request of
@keeler instead of changing its guard.
Differential Revision: https://phabricator.services.mozilla.com/D278766
2026-01-21 15:46:08 +00:00
Alexandru Marc
503f03519f
Backed out changeset 6fefdfdfe325 (bug 1665056) for causing mass failures CLOSED TREE
2024-12-18 17:26:05 +02:00
Frederik Braun
feaece220f
Bug 1665056 - do not change security.fileuri_strict_origin_policy at runtime r=asuth,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D232209
2024-12-18 13:58:10 +00:00
Frédéric Wang
8a29748fb2
Bug 1931288 - Implement EnsureCSPDoesNotBlockStringCompilation as per CSP spec. r=smaug,tschuster
...
See https://w3c.github.io/webappsec-csp/#can-compile-strings
Differential Revision: https://phabricator.services.mozilla.com/D229624
2024-12-13 08:54:53 +00:00
Otto Länd
459ed7b4c5
Bug 1905239: apply code formatting via Lando
...
# ignore-this-changeset
2024-12-11 20:03:21 +00:00
Frédéric Wang
c94fbf2e3e
Bug 1905239 - Add new parameters to HostEnsureCanCompileStrings hook. r=tschuster
...
Currently, we do this via isRuntimeCodeGenEnabled whose single argument
is equivalent to codeString in "Dynamic Code Brand Checks" spec [1]. We
extend this hook to accept new parameters from that spec and adjust
PerformEval and CreateDynamicFunction accordingly. We don't change the
behavior for PerformShadowRealmEval [2] and WASM, i.e. we keep dummy
parameters.
[1] https://tc39.es/proposal-dynamic-code-brand-checks
[2] https://github.com/tc39/proposal-shadowrealm/issues/414
Differential Revision: https://phabricator.services.mozilla.com/D229588
2024-12-11 20:00:32 +00:00
Alexandru Marc
2e177dcfbb
Backed out 3 changesets (bug 1905239) for causing build bustages @ FrontendContext.cpp CLOSED TREE
...
Backed out changeset 029305d7a99b (bug 1905239)
Backed out changeset a282ae3a55f7 (bug 1905239)
Backed out changeset f27e56ebfc0b (bug 1905239)
2024-12-11 12:16:57 +02:00
Otto Länd
f1f5a4f5c3
Bug 1905239: apply code formatting via Lando
...
# ignore-this-changeset
2024-12-11 09:43:11 +00:00
Frédéric Wang
0754e0aeb8
Bug 1905239 - Add new parameters to HostEnsureCanCompileStrings hook. r=tschuster
...
Currently, we do this via isRuntimeCodeGenEnabled whose single argument
is equivalent to codeString in "Dynamic Code Brand Checks" spec [1]. We
extend this hook to accept new parameters from that spec and adjust
PerformEval and CreateDynamicFunction accordingly. We don't change the
behavior for PerformShadowRealmEval [2] and WASM, i.e. we keep dummy
parameters.
[1] https://tc39.es/proposal-dynamic-code-brand-checks
[2] https://github.com/tc39/proposal-shadowrealm/issues/414
Differential Revision: https://phabricator.services.mozilla.com/D229588
2024-12-11 09:40:20 +00:00
Olli Pettay
713e9a9416
Bug 1905843, prevent unexpected use of result site origin, r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D215496
2024-09-17 15:01:43 +00:00
Sandor Molnar
75ad5cd1e5
Backed out changeset 230299b03e10 (bug 1905843) for causing build bustages @ nsContentSecurityManager.cpp CLOSED TREE
2024-09-17 16:40:05 +03:00
Olli Pettay
95ef09ee46
Bug 1905843, prevent unexpected use of result site origin, r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D215496
2024-09-17 12:55:39 +00:00
aiunusov
284c989d4f
Bug 1883860 - nsDocShell::HandleSameDocumentNavigation() cause crash in SetDocumentURI, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D204611
2024-03-22 12:27:38 +00:00
Sandor Molnar
b53841b100
Backed out changeset 7b83373f7a9e (bug 1883860) for causing build bustages @ caps/tests/gtest/TestScriptSecurityManager.cpp CLOSED TREE
2024-03-22 02:35:03 +02:00
aiunusov
8e05e984ea
Bug 1883860 - nsDocShell::HandleSameDocumentNavigation() cause crash in SetDocumentURI, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D204611
2024-03-22 00:07:27 +00:00
Valentin Gosu
cdd5195292
Bug 1848694 - Remove/avoid global references to nsIIOService r=mccr8,necko-reviewers,kershaw
...
This patch removes the static pointer to nsIIOService in nsContentUtils,
replacing it to calls to mozilla::components::IO::Service.
It also makes nsScriptSecurityManager::sIOService a StaticRefPtr.
Differential Revision: https://phabricator.services.mozilla.com/D188714
2023-09-22 12:49:44 +00:00
Sandor Molnar
a8db14100e
Backed out changeset b858a0740582 (bug 1848694) for causing build bustages on dom/base/Element.cpp CLOSED TREE
2023-09-21 16:45:57 +03:00
Valentin Gosu
e058782d44
Bug 1848694 - Remove/avoid global references to nsIIOService r=mccr8,necko-reviewers,kershaw
...
This patch removes the static pointer to nsIIOService in nsContentUtils,
replacing it to calls to mozilla::components::IO::Service.
It also makes nsScriptSecurityManager::sIOService a StaticRefPtr.
Differential Revision: https://phabricator.services.mozilla.com/D188714
2023-09-21 12:39:20 +00:00
nicklas boman
4114a8d7f7
Bug 1724649 - Followup to remove #include plstr.h r=necko-reviewers,xpcom-reviewers,valentin,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D177690
2023-05-15 14:53:02 +00:00
Nika Layzell
05b58381d5
Bug 1443925 - Part 3: Make nsScriptSecurityManager::GetStrictFileOriginPolicy threadsafe, r=ckerschb
...
This is used in various places in principals, as well as in the implementation
of nsScriptSecurityManager::SecurityCompareURIs which is also now threadsafe
after this change.
Differential Revision: https://phabricator.services.mozilla.com/D163033
2022-12-02 00:53:50 +00:00
Sylvestre Ledru
9ffafce8cc
Bug 1519636 - Reformat recent changes to the Google coding style r=andi,media-playback-reviewers,necko-reviewers,padenot,dragana
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D148375
2022-06-07 12:32:55 +00:00
Tom Schuster
0a3b024851
Bug 1740263 - Implement the CSP checking callback for WASM. r=dom-worker-reviewers,smaug,freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D141979
2022-05-19 14:13:50 +00:00
Iulian Moraru
979c59be19
Backed out 6 changesets (bug 1740263) for causing bp-hybrid bustages on nsScriptSecurityManager. CLOSED TREE
...
Backed out changeset 2f5ec6ad0f81 (bug 1740263)
Backed out changeset a1e7766cdb94 (bug 1740263)
Backed out changeset 3978ccb95455 (bug 1740263)
Backed out changeset e34ba774b3f8 (bug 1740263)
Backed out changeset 8365b10be28e (bug 1740263)
Backed out changeset d923462c9cd0 (bug 1740263)
2022-05-19 03:28:08 +03:00
Tom Schuster
41be94e499
Bug 1740263 - Implement the CSP checking callback for WASM. r=dom-worker-reviewers,smaug,freddyb
...
Differential Revision: https://phabricator.services.mozilla.com/D141979
2022-05-18 21:39:29 +00:00
Tom Schuster
9dcba5783c
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
2020-02-14 15:05:27 +00:00
Bogdan Tara
fedc1ed701
Backed out changeset bc387540075d (bug 1615405) on evilpie's request CLOSED TREE
2020-02-14 14:34:53 +02:00
Tom Schuster
5ee8ef7131
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
2020-02-14 12:26:21 +00:00
Sebastian Streich
5000c387e8
Bug 1601944 - Refactor nsDataDocumentContentPolicy.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56186
2020-01-06 15:30:35 +00:00
Boris Zbarsky
8f97398a08
Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56428
2019-12-12 16:41:19 +00:00
Boris Zbarsky
6792639b59
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
2019-12-12 16:41:26 +00:00
Ciure Andrei
2e0157c747
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
f99de7f9a0
Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56428
2019-12-12 13:05:12 +00:00
Boris Zbarsky
3b1e9ac463
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
2019-12-12 13:03:42 +00:00
Sebastian Streich
77022538f4
Bug 1601941 - Refactor GetURI usage in nsScriptSecurityManager.cpp r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56185
2019-12-11 16:21:18 +00:00
Andrew McCreight
6ec314e602
Bug 1599569 - Make nsScriptSecurityManager::ClearJSCallbacks into a static method. r=kmag
...
XPConnect calls this method during shutdown after the pointer to the
singleton nsScriptSecurityManager has been cleared, so it is actually
calling it with a null |this|. Nobody noticed this because it isn't
actually using |this|. This patch turns it into a static method to
make the sanitizers happy.
Differential Revision: https://phabricator.services.mozilla.com/D54846
2019-11-27 20:57:43 +00:00
Jan de Mooij
844ff93d3b
Bug 1579367 - Initialize XPCJSContext explicitly, after loading user prefs. r=kmag
...
This way we get the correct values for start-up prefs in the parent process.
Differential Revision: https://phabricator.services.mozilla.com/D51061
2019-11-22 12:40:17 +00:00
Dorel Luca
b855dec17b
Backed out changeset 955256297d6d (bug 1579367) for causing a top crash in Bug 1594404. a=backout
2019-11-06 23:19:09 +02:00
Jan de Mooij
0ee05182d2
Bug 1579367 - Initialize XPCJSContext explicitly, after loading user prefs. r=kmag
...
This way we get the correct values for start-up prefs in the parent process.
Differential Revision: https://phabricator.services.mozilla.com/D51061
2019-11-05 06:29:13 +00:00
Nicholas Nethercote
99a55e2d1c
Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm
...
Lots of these callbacks have a non-`void*` final parameter, which UBSAN
complains about. This commit changes them to have a `void*` parameter.
This requires undoing the machinery added in the first two commits of bug
1473631: `TypePrefChangeFunc` and `PREF_CHANGE_METHOD`. The resulting code is
simpler (which is good) and more boilerplate-y (which is bad) but avoids the
undefined behaviour (which is good).
Differential Revision: https://phabricator.services.mozilla.com/D50901
2019-11-01 02:57:20 +00:00
Tooru Fujisawa
5ef6d9cc06
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +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
Jonathan Kingston
b3d010794f
Bug 1502743 - Replace black/whitelist within caps to block/allowlist r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D10013
2018-10-31 17:56:43 +00:00
Christoph Kerschbaumer
619aeb7fa1
Bug 1490874: Log Principal based Security Errors to the Security pane in the console. r=smaug
2018-09-25 07:25:05 +02:00
shindli
23c0be1304
Backed out changeset 510e95767aeb (bug 1490874) for security failures in browser/components/payments/test/mochitest/test_basic_card_form.html CLOSED TREE
2018-09-24 11:43:30 +03:00
Christoph Kerschbaumer
72e1ad4898
Bug 1490874: Log Principal based Security Errors to the Security pane in the console. r=smaug
2018-09-24 09:34:04 +02:00