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
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
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
Gabriele Svelto
69790bc62e
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55443
--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +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
Nathan Froyd
655d31fb03
Bug 1600963 - build fields directly in the returned array; r=mccr8
...
This change means fewer temporary objects, particularly `nsCString` objects.
Depends on D55688
Differential Revision: https://phabricator.services.mozilla.com/D55689
--HG--
extra : moz-landing-system : lando
2019-12-03 17:37:43 +00:00
Nathan Froyd
03bf239fb9
Bug 1600963 - don't lookup keys twice in the serialized JSON; r=mccr8
...
Depends on D55687
Differential Revision: https://phabricator.services.mozilla.com/D55688
--HG--
extra : moz-landing-system : lando
2019-12-03 17:52:40 +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
Andrea Marchesini
41fd92503f
Bug 1579357 - Check the arguments in BasePrincipal XPCOM methods, r=jkt
...
Differential Revision: https://phabricator.services.mozilla.com/D45001
--HG--
extra : moz-landing-system : lando
2019-09-09 16:45:29 +00:00
Gabriele Svelto
e71120d4fe
Bug 1572229 - Use modern jsoncpp readers/writers when (de)serializing principals r=jkt
...
Differential Revision: https://phabricator.services.mozilla.com/D41088
--HG--
extra : moz-landing-system : lando
2019-08-08 22:39:07 +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
Jonathan Kingston
a9be4620ee
Bug 1508939 - cpp serialization r=ckerschb,mccr8,mikedeboer
...
Migrating to pure Cpp
Differential Revision: https://phabricator.services.mozilla.com/D29221
--HG--
extra : moz-landing-system : lando
2019-06-03 12:37:12 +00:00
Andrea Marchesini
37d54b0154
Bug 1551056 - Get rid of BasePrincipal::CloneForcingFirstPartyDomain, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D30803
--HG--
extra : moz-landing-system : lando
2019-05-22 22:35:40 +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
Andrea Marchesini
123be5d3c8
Bug 1543911 - Move BasePrincipal::CloneStrippingUserContextIdAndFirst into nsPermission to avoid misuses, r=johannh
...
Differential Revision: https://phabricator.services.mozilla.com/D27235
--HG--
extra : moz-landing-system : lando
2019-04-15 10:26:09 +00:00
Andrea Marchesini
f51a81f6d6
Bug 1536411 - StoragePrincipal - part 8 - SharedWorkers, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D25790
--HG--
extra : moz-landing-system : lando
2019-04-12 05:30:19 +00:00
Andrea Marchesini
a438b12ebd
Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D24025
--HG--
extra : moz-landing-system : lando
2019-04-12 05:31:32 +00:00
Cosmin Sabou
af07021e88
Backed out 10 changesets (bug 1536411) for causing leaks in CondVar, MessagePortService, MessagePortServiceData.
...
Backed out changeset eda5854cd7e8 (bug 1536411)
Backed out changeset f94dfbf2476c (bug 1536411)
Backed out changeset c68dc3152faa (bug 1536411)
Backed out changeset f67d157e8baf (bug 1536411)
Backed out changeset 1107a9767f38 (bug 1536411)
Backed out changeset ccbe1af00fb9 (bug 1536411)
Backed out changeset 552c4b588524 (bug 1536411)
Backed out changeset 2eb20578159b (bug 1536411)
Backed out changeset 45708d22bb6d (bug 1536411)
Backed out changeset 87601ef1d4d4 (bug 1536411)
2019-04-11 22:48:49 +03:00
Andrea Marchesini
bba5a7d699
Bug 1536411 - StoragePrincipal - part 8 - SharedWorkers, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D25790
--HG--
extra : moz-landing-system : lando
2019-04-11 16:47:26 +00:00
Andrea Marchesini
5cfeeda19e
Bug 1536411 - StoragePrincipal - part 1 - Implementation, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D24025
--HG--
extra : moz-landing-system : lando
2019-04-11 16:27:12 +00:00
Gijs Kruitbosch
7de2c5899e
Bug 1515863, r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D15957
--HG--
extra : rebase_source : 748d4849050c3f2042f45f083cc7c99137963721
2019-01-08 16:59:21 +01:00
Gijs Kruitbosch
ceecd61c16
Bug 1515863, r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D15221
--HG--
extra : rebase_source : 64431f64e9af7a961ffcd47c7b8e01dbecc71b07
2018-12-21 11:56:47 +00:00
Ciure Andrei
7a748ae68f
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-01-04 01:03:06 +02: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
Emilio Cobos Álvarez
d2ed260822
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
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01: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
Christoph Kerschbaumer
60e3239dee
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
0b6d93ef4d
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
0df81cd9f4
Bug 1490874: Log Principal based Security Errors to the Security pane in the console. r=smaug
2018-09-24 09:34:04 +02:00