Commit Graph

1642 Commits

Author SHA1 Message Date
Gijs Kruitbosch
0045b2ec32 Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Sebastian Streich
cb9dd45ace Bug 1620624 - Refactor nsUrlClassifier r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D65758
2020-04-14 21:48:38 +00:00
Dimi Lee
4352ee5187 Bug 1627897 - Add a SkipListService testcase to ensure features can get correct initial data. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D69955
2020-04-09 21:28:43 +00:00
Edouard Oger
c11119b26d Bug 1627444 p4 - Cast to expectedThreatType to int in tests. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D69713
2020-04-07 15:26:28 +00:00
Edouard Oger
4f05a8484b Bug 1627444 p2 - Regenerate protobuf classes r=lina
Differential Revision: https://phabricator.services.mozilla.com/D69707
2020-04-07 18:05:56 +00:00
Andreas Farre
28dfa78c70 Bug 1620594 - Part 4: Remove SetEventTargetForActor with SystemGroup target. r=nika
Depends on D67633

Differential Revision: https://phabricator.services.mozilla.com/D67634
2020-04-07 15:16:54 +00:00
Andreas Farre
c76bc4f1c8 Bug 1620594 - Part 1: Rework NS_ReleaseOnMainThreadSystemGroup. r=nika
To be able to remove SystemGroup, NS_ReleaseOnMainThreadSystemGroup
needs to have its dependency on SystemGroup removed. Since all
releases using SystemGroup would've released on the main thread anyway
we can safely replace NS_ReleaseOnMainThreadSystemGroup with
NS_ReleaseOnMainThread.

Depends on D64390

Differential Revision: https://phabricator.services.mozilla.com/D67631
2020-04-07 15:16:23 +00:00
Steven Englehardt
997b273518 Bug 1616436 - Skip passive content from fingerprinting blocking, r=baku
Differential Revision: https://phabricator.services.mozilla.com/D67956
2020-04-02 06:32:44 +00:00
Soumya Lahiri
cf65765aa8 Bug 1624231 - nsUrlClassifierDBService.cpp: do not use 'else' after 'return' r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D68997
2020-04-01 21:15:04 +00:00
sonakshi
3f409eb5d3 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729
2020-03-31 18:47:30 +00:00
Razvan Maries
548846f7f9 Backed out changeset 2515c5b5a0d2 (bug 1622619) for build bustages. CLOSED TREE 2020-03-31 17:18:38 +03:00
sonakshi
f81266b3a5 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729
2020-03-31 13:38:55 +00:00
Sebastian Hengst
70632abfbe Backed out changeset b82effbcaabc (Bug 1620624) for likely causing performance regression Bug 1625071. 2020-03-30 17:45:39 +02:00
Gijs Kruitbosch
9cafe6cb12 Bug 1598924 - make remote settings handle shutdown gracefully, r=leplatrem,asuth
By and large, this change accomplishes two things:
1. Run db.close() in finally clauses so that even if db access fails, we close
   our connections. It also tries to avoid waiting on other, non-DB operations
   before calling close, to avoid the DB connection needlessly hanging around.
2. Intercept all async database operations from the remote settings client to
   kinto and ensuring they complete before the end of `profile-before-change`.
   Any operations started after Services.startup.isShuttingDown (so after
   quit/restart is initiated by the user) will throw. Operations started
   beforehand are put in a set of operations, and remove themselves once
   complete. We AsyncShutdown block on that set of operations completing.

Differential Revision: https://phabricator.services.mozilla.com/D66995
2020-03-24 14:55:41 +00:00
Mathieu Leplatre
4f9f1e239c Bug 1620185 - Remove usage of .openCollection() in other modules r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D66749
2020-03-17 20:21:54 +00:00
Sebastian Streich
9b7be0c8d6 Bug 1620624 - Refactor nsUrlClassifier r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D65758
2020-03-10 13:13:02 +00:00
Simon Giesecke
99b166167f Bug 1613985 - Use default for equivalent-to-default constructors/destructors in toolkit. r=mossop
Depends on D66008

Differential Revision: https://phabricator.services.mozilla.com/D66010
2020-03-10 08:48:24 +00:00
Mark Banner
d375cfec54 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703
2020-03-07 10:09:44 +00:00
Tim Huang
37f162c69d Bug 1616570 - Part 1: Rename CookieSettings to CookieJarSettings. r=Ehsan
Given that we are going to add ContentBlockingAllowList in
CookieSettings, so CookieSettings will be responsible for more stuff than the
cookie behavior and cookie permission. We should use a proper name to
reflect the purpose of it. The name 'CookieSettings' is misleading that
this is only for cookie related stuff. So, we decide to rename
'CookieSettins' to 'CookieJarSettings' which serves better meaning here.

Differential Revision: https://phabricator.services.mozilla.com/D63935
2020-03-04 08:59:08 +00:00
Sam Zeter
4b4e3ce97f Bug 1613256 - Refactor EnsureSorted to use std::isSorted r=sg
Differential Revision: https://phabricator.services.mozilla.com/D62179
2020-02-22 05:39:59 +00:00
Andreea Pavel
e03f9a80c8 Backed out changeset 5fdf628512a0 (bug 1614434) for build bustages on a CLOSED TREE 2020-02-20 16:49:29 +02:00
Philipp Zech
12aed91a70 Bug 1614434 - Remove unsused function BuildCache. r=gcp
Removed unused function BuildCache(LookupCacheV2* cache, const _PrefixArray& aPrefixArray). This also required removal of RefPtr<T> SetupLookupCache(const _PrefixArray& aPrefixArray) (formerly line 229).

Differential Revision: https://phabricator.services.mozilla.com/D62614
2020-02-13 11:31:01 +00:00
Andrea Marchesini
2cf1195578 Bug 1577040 - Part 6: Fix a couple of tests, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63304
2020-02-20 07:30:02 +00:00
Andrea Marchesini
97d2db3241 Bug 1577040 - Part 3: Replace nsIHttpChannel.isTrackingResource() with isThirdPartyTrackingResource() in the url-classifier tests, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D63301
2020-02-20 07:29:15 +00:00
Dimi Lee
a0881e4b7c Bug 1524873 - Enable SafeBrowsing in Safe Mode. r=gcp
This patch enables SafeBrowsing in Safe Mode because features based
on SafeBrowsing are essential for Firefox(For example, Enhanced Tracking Protection).

Since Safe Browsing update is nondeterministic, we disable periodical
SafeBrowsing update to make troubleshooting easier. Manually trigger an
update via about:classifier is still enabled.

Last, SafeBrowsing tables provided by Google will be ignored in Safe
Mode to ensure the SafeBrowsing warnings are update-to-date.

Differential Revision: https://phabricator.services.mozilla.com/D62708
2020-02-18 10:48:47 +00:00
Christoph Kerschbaumer
73f3b32892 Bug 1609877: Convert prefs for domsecurity to use static prefs. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D60403
2020-01-22 11:04:17 +00:00
Razvan Maries
c21a78144e Backed out changeset dbaa31392a53 (bug 1609877) for build bustages on DOMSecurityMonitor.cpp. CLOSED TREE 2020-01-20 22:08:07 +02:00
Christoph Kerschbaumer
d15b16e6df Bug 1609877: Convert prefs for domsecurity to use static prefs. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D60403
2020-01-20 18:10:38 +00:00
Emilio Cobos Álvarez
ceb8348f27 Bug 1609996 - Remove mozilla::Swap in favor of std::swap. r=froydnj
Now mfbt/Move.h is empty except for that excellent comment about move
semantics... Should we put it somewhere else and delete the header as a
follow-up? Or just delete the header and carry on?

Differential Revision: https://phabricator.services.mozilla.com/D60297
2020-01-20 16:17:06 +00:00
Sylvestre Ledru
3a389404c5 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217
2020-01-18 13:48:34 +00:00
Dorel Luca
8cc61e1d4b Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru
8cc3e9bf3f Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

Differential Revision: https://phabricator.services.mozilla.com/D58217
2020-01-18 13:16:39 +00:00
Christoph Kerschbaumer
1fb30a1274 Bug 1607483: Disallow loading http(s) scripts into system privileged contexts. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D58962
2020-01-17 17:29:47 +00:00
Narcis Beleuzu
39e7d3dcbc Backed out changeset caa23b535218 (bug 1607483) for mochitest failures on test_input.html. CLOSED TREE 2020-01-17 14:45:45 +02:00
Christoph Kerschbaumer
074adfe0a2 Bug 1607483: Disallow loading http(s) scripts into system privileged contexts. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D58962
2020-01-17 10:17:07 +00:00
Eric Rahm
daeb56f35b Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042
2020-01-13 19:18:56 +00:00
Tim Huang
026b028a6a Bug 1599043 - Part 7: Update tests to adapt the change of the OnContentBlockingEvent. r=dimi,johannh
There are three major issues that we need to fix for tests if we move the
OnContentBlockingEvent to the parent process. First, we notify the event
in the idle queue in the parent process. For some reasons, the test
script could outrun the callbacks of the OnContentBlockingEvent. So, it
could happen that the UI hasn't got updated while we check its state. To
fix this, we make the test script to wait the UI to be updated
explicitly.

Second, the tracking UI tests would access the ContentblockingLog in the
content in order to get the hosts of different blocking categories. And
the log in the content may not be updated when we open the subview. And
there is no explicit way to know whether the log is updated or not. So,
we use SetTimeout to temporary fix this issue. Once we finish the work
that moving the ContentBlockingLog into the parent (Bug1599046), we can
remove this work-around.

Third, there is one test that it waits OnContentBlockingEvent in the
content. We make it to listen the event in the parent to fix it.

Differential Revision: https://phabricator.services.mozilla.com/D55650
2020-01-13 14:08:41 +00:00
Tom Schuster
65707a860b Bug 1605854 - Fix remaining tests using uneval/toSource r=mccr8,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58685
2020-01-07 13:19:30 +00:00
Se Yeon Kim
03cde63e7f Bug 1594497 - Increase shavar chunk size limit r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D52913
2019-12-27 21:11:45 +00:00
Razvan Maries
f96b2fe786 Backed out 2 changesets (bug 1594497) for breaking Twitter pages.
Backed out changeset dc907aeafad0 (bug 1594497)
Backed out changeset fdef77d6d362 (bug 1594497)
2019-12-22 18:29:25 +02:00
Se Yeon Kim
738ec302cc Bug 1594497 - Increase shavar chunk size limit r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D52913
2019-12-17 19:41:03 +00:00
Dimi Lee
5d8673ac11 Bug 1600889 - gShuttingDownThread in nsUrlClassifierDBService should be Atomic r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D57954
2019-12-20 12:46:45 +00:00
Cosmin Sabou
649941a503 Backed out 2 changesets (bug 1594497) causing firefox-ui test failures on test_initial_download.py. CLOSED TREE
Backed out changeset c817e489fd80 (bug 1594497)
Backed out changeset a97415a7ce80 (bug 1594497)
2019-12-17 21:37:13 +02:00
Se Yeon Kim
0caea458af Bug 1594497 - Increase shavar chunk size limit r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D52913
2019-12-17 00:19:21 +00:00
Jeff Walden
9c2bcc0eef Bug 1439659 - Make |MOZ_{LITTLE,BIG}_ENDIAN| into function macros so that invoking them inside |#if| conditions when they haven't been defined yet is a compile error. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D57038
2019-12-13 20:51:04 +00:00
Kris Maglione
8c0d38f33d 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
2019-12-13 20:36:16 +00:00
Oana Pop Rus
f0de283f03 Backed out 10 changesets (bug 1599043) for build bustages in nsGlobalWindowOuter.cpp on a CLOSED TREE
Backed out changeset 463b815557e4 (bug 1599043)
Backed out changeset 7c3f0a58cc6c (bug 1599043)
Backed out changeset 1eadd9f5b50e (bug 1599043)
Backed out changeset e4ea0d47136b (bug 1599043)
Backed out changeset 6b97581c33b6 (bug 1599043)
Backed out changeset a68bd2acf5d6 (bug 1599043)
Backed out changeset c8ed9c52508c (bug 1599043)
Backed out changeset aaf83f7806b4 (bug 1599043)
Backed out changeset 0ad30634e416 (bug 1599043)
Backed out changeset 68219c132efc (bug 1599043)
2019-12-12 17:14:54 +02:00
Tim Huang
d2603bd4dd Bug 1599043 - Part 7: Update tests to adapt the change of the OnContentBlockingEvent. r=dimi,johannh
There are three major issues that we need to fix for tests if we move the
OnContentBlockingEvent to the parent process. First, we notify the event
in the idle queue in the parent process. For some reasons, the test
script could outrun the callbacks of the OnContentBlockingEvent. So, it
could happen that the UI hasn't got updated while we check its state. To
fix this, we make the test script to wait the UI to be updated
explicitly.

Second, the tracking UI tests would access the ContentblockingLog in the
content in order to get the hosts of different blocking categories. And
the log in the content may not be updated when we open the subview. And
there is no explicit way to know whether the log is updated or not. So,
we use SetTimeout to temporary fix this issue. Once we finish the work
that moving the ContentBlockingLog into the parent (Bug1599046), we can
remove this work-around.

Third, there is one test that it waits OnContentBlockingEvent in the
content. We make it to listen the event in the parent to fix it.

Differential Revision: https://phabricator.services.mozilla.com/D55650
2019-12-11 15:01:22 +00:00
shindli
0aa47af90e Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione
ad3537fc50 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
2019-12-10 23:07:13 +00:00