Commit Graph

486 Commits

Author SHA1 Message Date
Marco Bonardo
07741fd9ee Bug 1666092 - Change waitForLoadOrTimeout test helper to only check for load start. r=adw
Waiting for the full load sometimes will take more than the timeout, and we
don't really need to do it for the purpose of this helper.

Differential Revision: https://phabricator.services.mozilla.com/D190756
2023-10-13 09:18:20 +00:00
Mark Banner
1c781625ed Bug 1857866 - Enable ESlint rule mozilla/no-useless-removeEventListener on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190439
2023-10-13 08:56:13 +00:00
Mark Banner
932bc23fe7 Bug 1857866 - Enable ESLint rule complexity on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190438
2023-10-13 08:56:12 +00:00
Mark Banner
1ff32a5712 Bug 1857866 - Remove some unnecessary ESLint exclusions for dom files. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190437
2023-10-13 08:56:12 +00:00
Mark Banner
fdc83bbfff Bug 1857866 - Enable ESLint rule mozilla/no-useless-parameters on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190436
2023-10-13 08:56:12 +00:00
Mark Banner
e43869f6d6 Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-13 08:56:11 +00:00
Mark Banner
b75ce2775d Bug 1857866 - Enable mozilla/no-arbitrary-setTimeout on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190433
2023-10-13 08:56:11 +00:00
Noemi Erli
e5c9fdc125 Backed out 6 changesets (bug 1857866) for causing mochitest failures in test_bug403852.html CLOSED TREE
Backed out changeset d3a20047a9d3 (bug 1857866)
Backed out changeset ac8e95c253a9 (bug 1857866)
Backed out changeset c2d4c9575248 (bug 1857866)
Backed out changeset 521a5e8cb17e (bug 1857866)
Backed out changeset 8d812ea48f5c (bug 1857866)
Backed out changeset de9146469632 (bug 1857866)
2023-10-13 00:27:57 +03:00
Mark Banner
d9dc6c946f Bug 1857866 - Enable ESlint rule mozilla/no-useless-removeEventListener on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190439
2023-10-12 16:49:49 +00:00
Mark Banner
3357a854df Bug 1857866 - Enable ESLint rule complexity on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190438
2023-10-12 16:49:48 +00:00
Mark Banner
9074f1b101 Bug 1857866 - Remove some unnecessary ESLint exclusions for dom files. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190437
2023-10-12 16:49:48 +00:00
Mark Banner
71360d7cab Bug 1857866 - Enable ESLint rule mozilla/no-useless-parameters on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190436
2023-10-12 16:49:48 +00:00
Mark Banner
3ad8e86d7c Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-12 16:49:47 +00:00
Mark Banner
9fe5c005d6 Bug 1857866 - Enable mozilla/no-arbitrary-setTimeout on all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D190433
2023-10-12 16:49:47 +00:00
Drew Willcoxon
da6386c22c Bug 1857391 - Remove Firefox Suggest "best match" as its own separate feature. r=daisuke,settings-reviewers
This removes "best match" as its own separate Firefox Suggest feature. In the
future, whether or not a suggestion is a best match (a.k.a. top pick) will be
determined by relevant product requirements. I've confirmed this with Nive.

Here's a summary of changes:

* Removes prefs and Nimbus variables related to best match
* Removes the "Top pick" checkbox in about:preferences
* Removes support for the `best_match` quick suggest config property. This
  property was removed from the config in remote settings a while ago.
* Removes legacy telemetry scalars related to best match. These scalars were
  added years ago for the original best match experiment and before we started
  using Glean. In the case of non-sponsored suggestions, the scalars have not
  been recorded at all for some time. In the case of sponsored suggestions, they
  can now be recorded again due to the recent addition of sponsored priority
  suggestions, but they are superseded by Glean.

Differential Revision: https://phabricator.services.mozilla.com/D190516
2023-10-11 17:17:06 +00:00
Mark Banner
15fe9558c2 Bug 1855697 - Enable ESLint rule no-debugger for all of dom/. r=dom-worker-reviewers,smaug
Depends on D189497

Differential Revision: https://phabricator.services.mozilla.com/D189498
2023-10-06 16:45:54 +00:00
Mark Banner
3a2f5a75d2 Bug 1855697 - Enable ESLint rule no-implied-eval for all of dom/. r=dom-core,edgar
Depends on D189496

Differential Revision: https://phabricator.services.mozilla.com/D189497
2023-10-06 16:45:53 +00:00
Mark Banner
c7ac816c46 Bug 1855697 - Enable ESLint rule no-eval for all of dom/. r=dom-core,mccr8
Depends on D189495

Differential Revision: https://phabricator.services.mozilla.com/D189496
2023-10-06 16:45:53 +00:00
Mark Banner
dc4be5fe1d Bug 1855697 - Enable ESLint rules mozilla/no-define-cc-etc and mozilla/use-cc-etc over all of dom/. r=dom-core,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D189495
2023-10-06 16:45:52 +00:00
Mark Banner
2a8febb3d8 Bug 1856298 - Enable ESLint rule @microsoft/sdl/no-insecure-url for all of browser/components/search. r=search-reviewers,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D189748
2023-10-02 13:34:34 +00:00
Gregory Pappas
62a62f0934 Bug 1851211 - Remove privacy.partition.bloburl_per_agent_cluster pref r=amadan,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D187291
2023-09-26 20:59:01 +00:00
Mark Banner
adc07ece4e Bug 1854913 - Turn off ESLint rule mozilla/use-chromeutils-generateqi for plain mochitests as it should not apply there. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D189099
2023-09-26 13:38:20 +00:00
Mark Banner
04947bae38 Bug 1854906 - Enable all ESLint rules on layout/tools/reftest. r=tnikkel
Depends on D189095

Differential Revision: https://phabricator.services.mozilla.com/D189096
2023-09-25 10:36:02 +00:00
Mark Banner
640bcbbba0 Bug 1563927 - Add JSON linting via ESLint. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186882
2023-09-05 12:59:31 +00:00
Mark Banner
1c412b1fa0 Bug 1851452 - Make ESLint rule react-hooks/exhaustive-deps to be an error rather than a warning. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D187370
2023-09-05 12:43:35 +00:00
Mark Banner
4c0d6044cb Bug 1850244 - Fix remaining ESLint no-shadow issues in netwerk/test. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D186880
2023-08-28 13:30:37 +00:00
Hanpu Liu Charles
af4d15c34d Bug 1817779 - Implemented tabs.detectLanguage for Android, r=robwu,geckoview-reviewers,extension-reviewers,owlish,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184942
2023-08-16 09:05:20 +00:00
Iulian Moraru
04ddb49c81 Backed out changeset c8c9ef33bbcf (bug 1817779) for causing mochitest-plain failures on test_ext_all_apis.html. CLOSED TREE 2023-08-14 17:59:30 +03:00
Hanpu Liu Charles
4d4f9a2c43 Bug 1817779 - Implemented tabs.detectLanguage for Android, r=robwu,geckoview-reviewers,extension-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D184942
2023-08-14 14:00:41 +00:00
Malte Juergens
ff8d1cc4c4 Bug 1835983: Update dom/security/test/general/browser_same_site_cookies_bug1748693.js to work with https-first enabled r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D184350
2023-08-07 13:00:53 +00:00
Malte Juergens
793c49a947 Bug 1835983: Update toolkit/components/places/tests/browser/previews/browser_thumbnails.js to work with https-first enabled r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D184352
2023-08-07 13:00:49 +00:00
Malte Juergens
98c10de540 Bug 1835983: Update netwerk/test/browser/browser_103_telemetry.js to work with https-first enabled r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D184353
2023-08-07 13:00:43 +00:00
Malte Juergens
ecaa7b4b94 Bug 1835983: Update dom/tests/browser/browser_localStorage_snapshotting.js to work with https-first enabled r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D184355
2023-08-07 13:00:35 +00:00
Malte Juergens
2e785bff03 Bug 1835983: Update browser/components/extensions/test/browser/browser_ext_tabs_move_* to work with https-first enabled r=ckerschb,extension-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D184358
2023-08-07 13:00:27 +00:00
Tooru Fujisawa
aa900309a0 Bug 1843797 - Add ESLint rule to reject ChromeUtils.import. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D183696
2023-07-31 21:03:44 +00:00
Cristina Horotan
5c71a93e59 Backed out changeset 117114b8eb32 (bug 1793560) for causing wpt failures at iframe-all-local-schemes-inherit-self.sub.html CLOSED TREE 2023-07-10 17:54:12 +03:00
CanadaHonk
2f7c1c1024 Bug 1793560 - Remove navigate-to CSP directive r=tschuster
It has never shipped after being implemented years ago,
and was removed from spec in September 2022:
https://github.com/w3c/webappsec-csp/pull/564

Now skipping navigate-to WPT tests. Filed issue for their future removal:
https://github.com/w3c/webappsec-csp/issues/608

Also removed our own tests to ensure it is unimplemented.

Differential Revision: https://phabricator.services.mozilla.com/D181630
2023-07-10 12:18:18 +00:00
Florian Quèze
10dc1bd587 Bug 1837950 - Remove references to about:performance in .eslintrc.js, r=Standard8 DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D180665
2023-06-12 11:14:13 +00:00
Florian Quèze
58ce18a1c9 Bug 1836191 - remove ChromeUtils.requestPerformanceMetrics that was only used by about:performance, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D179696
2023-06-08 21:53:18 +00:00
Katherine Patenio
0c1a6fdd6a Bug 1834115 - migrate newtab/lib JSMs that do not import modules to ESMs r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D178568
2023-05-30 22:44:42 +00:00
Barret Rennie
a645de723e Bug 1776480 - Remove OS.File et al. r=Gijs,webidl,smaug
This patch removes the vast majority of OS.File and support code. A few things remain:

- The nsIOSFileConstantsService still exists, but the path related constants
  (OS.Constants.Path.*) are no longer added to the OS object. The plan is to
  replace this with a proper service e.g. Services.osConstants or similar) in
  bug 1786885.
- There is still support for OS.File errors in ErrorSanitizer, which will be
  removed in bug 1775167.
- The OS.File to IOUtils migration guide will be rewritten as general IOUtils
  documentation in bug 1830097.
- dom/base/Document.cpp has a workaround for not loading osfile.jsm at startup,
  which may want to be reconsidered in bug 1830100.

So long, and thanks for all the I/O.

Differential Revision: https://phabricator.services.mozilla.com/D176543
2023-05-12 18:34:28 +00:00
Sandor Molnar
924826ccad Backed out changeset 987d013caf11 (bug 1776480) for causing xpc failures in toolkit/components/extensions/test/xpcshell/test_ext_downloads_download.js CLOSED TREE 2023-05-11 22:36:59 +03:00
Barret Rennie
6149948e68 Bug 1776480 - Remove OS.File et al. r=Gijs,webidl,smaug
This patch removes the vast majority of OS.File and support code. A few things remain:

- The nsIOSFileConstantsService still exists, but the path related constants
  (OS.Constants.Path.*) are no longer added to the OS object. The plan is to
  replace this with a proper service e.g. Services.osConstants or similar) in
  bug 1786885.
- There is still support for OS.File errors in ErrorSanitizer, which will be
  removed in bug 1775167.
- The OS.File to IOUtils migration guide will be rewritten as general IOUtils
  documentation in bug 1830097.
- dom/base/Document.cpp has a workaround for not loading osfile.jsm at startup,
  which may want to be reconsidered in bug 1830100.

So long, and thanks for all the I/O.

Differential Revision: https://phabricator.services.mozilla.com/D176543
2023-05-11 17:49:27 +00:00
Katherine Patenio
6ca3f42793 Bug 1830816 - Convert JSMs in browser/tools/mozscreenshots/mozscreenshots/extension to ESMs. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D177101
2023-05-08 20:11:13 +00:00
Iulian Moraru
e54270ef63 Backed out changeset 73b7fefcfc45 (bug 1830816) for causing mochitest failures on browser_controlCenter.js. CLOSED TREE 2023-05-08 20:18:25 +03:00
Katherine Patenio
d9858a3be8 Bug 1830816 - Convert JSMs in browser/tools/mozscreenshots/mozscreenshots/extension to ESMs. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D177101
2023-05-08 16:28:38 +00:00
Rob Wu
92986c0e01 Bug 1482983 - Fix intermittent test failure in test_ext_webrequest_frameId.html r=rpl
The test was getting stuck because it was expecting a favicon.ico
request that never happened. The test logic was copied from
test_ext_webrequest_filter.html which suffers from exactly the same
issue. Since the favicon.ico test was meant to serve as a regression
test, this patch fixes only one of the two tests.

This patch also changes "http" to "https" in file_simple_xhr.html to get
the test to run successfully with the http3 test configuration, as
explained at https://bugzilla.mozilla.org/show_bug.cgi?id=1482983#c71

Differential Revision: https://phabricator.services.mozilla.com/D174505
2023-05-04 21:54:32 +00:00
Norisz Fay
bf5ea8f459 Backed out changeset 3d766d94945d (bug 1776480) for causing multiple xpcshell and bc failures CLOSED TREE 2023-04-28 06:55:03 +03:00
Barret Rennie
7bae7d5d70 Bug 1776480 - Remove OS.File et al. r=Gijs
This patch removes the vast majority of OS.File and support code. A few things remain:

- The nsIOSFileConstantsService still exists, but the path related constants
  (OS.Constants.Path.*) are no longer added to the OS object. The plan is to
  replace this with a proper service e.g. Services.osConstants or similar) in
  bug 1786885.
- There is still support for OS.File errors in ErrorSanitizer, which will be
  removed in bug 1775167.
- The OS.File to IOUtils migration guide will be rewritten as general IOUtils
  documentation in bug 1830097.
- dom/base/Document.cpp has a workaround for not loading osfile.jsm at startup,
  which may want to be reconsidered in bug 1830100.

So long, and thanks for all the I/O.

Differential Revision: https://phabricator.services.mozilla.com/D176543
2023-04-28 02:35:13 +00:00
Butkovits Atila
608af74b62 Backed out changeset fc8a2b80e9f6 (bug 1776480) for causing Gecko Decision bustage. CLOSED TREE 2023-04-28 04:31:36 +03:00