Commit Graph

447 Commits

Author SHA1 Message Date
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
Barret Rennie
b2b98d70e4 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 01:10:56 +00:00
Dão Gottwald
2595ca85bd Bug 1820477 - Remove Colorway Closet modal code. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D174861
2023-04-13 17:50:22 +00:00
Mark Banner
474708c181 Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot
Differential Revision: https://phabricator.services.mozilla.com/D174846
2023-04-06 15:07:56 +00:00
Julian Descottes
b99f316590 Bug 1826366 - [remote] Enable valid-jsdoc linter for remote/** r=webdriver-reviewers,whimboo
Depends on D174739

Differential Revision: https://phabricator.services.mozilla.com/D174718
2023-04-05 16:25:49 +00:00
Mark Banner
36ab6611df Bug 1824173 - Enable ESLint configuration valid-jsdocs across the tree, disabling for currently failing locations. r=mossop,webcompat-reviewers,extension-reviewers,credential-management-reviewers,denschub,dimi,robwu
Depends on D173450

Differential Revision: https://phabricator.services.mozilla.com/D173451
2023-03-24 19:35:25 +00:00
Mark Banner
e8664f62d4 Bug 1812098 - Enable the builtinGlobals option for ESLint no-shadow rule on .mjs files. r=Gijs
.sys.mjs will be handled in a future dependency of bug 1575506.

Differential Revision: https://phabricator.services.mozilla.com/D169464
2023-03-14 09:13:49 +00:00
Mark Banner
6c1ef05bb8 Bug 1816182 - Stop applying ESLint test configuration to module files. r=Gijs,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D169513
2023-02-13 12:26:46 +00:00
Dana Keeler
4d2b1f7538 Bug 1811633 - use updated, vendored version of PKI.js, remove old version r=Gijs
This also converts certDecoder.jsm to an ES module (as certDecoder.mjs) and
updates all uses of it.

Differential Revision: https://phabricator.services.mozilla.com/D167466
2023-01-27 04:07:10 +00:00
Noemi Erli
e287ab9d9a Backed out 2 changesets (bug 1811633) for causing lint bustage CLOSED TREE
Backed out changeset 3ef0fe45b191 (bug 1811633)
Backed out changeset 92a7ec78a4ce (bug 1811633)
2023-01-26 02:26:54 +02:00
Dana Keeler
78cdb5eb07 Bug 1811633 - use updated, vendored version of PKI.js, remove old version r=Gijs
This also converts certDecoder.jsm to an ES module (as certDecoder.mjs) and
updates all uses of it.

Differential Revision: https://phabricator.services.mozilla.com/D167466
2023-01-26 00:07:49 +00:00
lyavor
9f0baafa27 Bug 1811278 - Add disable next line for all browser/base PART 5 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167285
2023-01-25 14:27:45 +00:00
lyavor
89c592f4d3 Bug 1811278 - Add disable next line for all browser/base PART 4 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167284
2023-01-25 14:27:44 +00:00
lyavor
a81ef1775f Bug 1811278 - Add disable next line for all browser/base PART 3 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167283
2023-01-25 14:27:44 +00:00
lyavor
6c46b535c4 Bug 1811278 - Add disable next line for all browser/base PART 2 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167281
2023-01-25 14:27:43 +00:00
lyavor
6666b03b50 Bug 1811278 - Add disable next line for all browser/base PART 1 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167279
2023-01-25 14:27:43 +00:00
Norisz Fay
f01cbc412a Backed out 5 changesets (bug 1811278) for causing lint failures on browser_bug435325.js CLOSED TREE
Backed out changeset 715821104ffa (bug 1811278)
Backed out changeset 6f116715687d (bug 1811278)
Backed out changeset 16e69d940e3f (bug 1811278)
Backed out changeset 9dc0451ca213 (bug 1811278)
Backed out changeset 9f60a414e711 (bug 1811278)
2023-01-25 12:46:52 +02:00
lyavor
882de29dcc Bug 1811278 - Add disable next line for all browser/base PART 5 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167285
2023-01-25 10:15:38 +00:00
lyavor
68bb87093e Bug 1811278 - Add disable next line for all browser/base PART 4 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167284
2023-01-25 10:15:38 +00:00
lyavor
d4386746ac Bug 1811278 - Add disable next line for all browser/base PART 3 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167283
2023-01-25 10:15:37 +00:00
lyavor
9b1cce5c99 Bug 1811278 - Add disable next line for all browser/base PART 2 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167281
2023-01-25 10:15:37 +00:00
lyavor
8d9ed8359f Bug 1811278 - Add disable next line for all browser/base PART 1 r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D167279
2023-01-25 10:15:37 +00:00
Mark Banner
166d8573cb Bug 1811796 - Automatically replace Cu.reportError with console.error (most of toolkit). r=mossop,credential-management-reviewers,dimi
Depends on D167518

Differential Revision: https://phabricator.services.mozilla.com/D167519
2023-01-23 18:09:03 +00:00
Mark Banner
a94fe03b9d Bug 1811334 - Automatically replace Cu.reportError with console.error (most of browser/components). r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D167297
2023-01-20 17:49:21 +00:00
Mark Banner
2a9627f119 Bug 1810877 - Automatically replace Cu.reportError with console.error (browser/extensions/report-site-issue/). r=webcompat-reviewers,twisniewski
Depends on D167095

Differential Revision: https://phabricator.services.mozilla.com/D167096
2023-01-18 08:24:40 +00:00
Mark Banner
56fdbd1a79 Bug 1810877 - Automatically replace Cu.reportError with console.error (browser/extensions/search-detection/). r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D167095
2023-01-18 08:24:40 +00:00
Mark Banner
c29bf3e394 Bug 1808500 - Automatically replace Cu.reportError with console.error (devtools). r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D165941
2023-01-06 15:34:27 +00:00
Mark Banner
c3e3ee14cc Bug 1806500 - Automatically replace Cu.reportError with console.error (uriloader dom). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165067
2023-01-05 15:03:55 +00:00
Mark Banner
960de47586 Bug 1808289 - Automatically replace Cu.reportError with console.error (browser/themes, browser/modules). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165848
2023-01-03 19:16:20 +00:00
Mark Banner
ab872d4272 Bug 1808289 - Automatically replace Cu.reportError calls with console.error (BrowserGlue.sys.mjs). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165847
2023-01-03 19:16:20 +00:00
lyavor
a1593f002b Bug 1802505 - Add disable next line for all docshell/test/mochitest and docshell/test/chrome r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D164229
2022-12-29 12:24:15 +00:00
Mark Banner
3a07fcf436 Bug 1806503 - Automatically replace Cu.reportError with console.error (browser/actors, browser/base). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165068
2022-12-27 10:08:58 +00:00
Mark Banner
3b7b6d19fc Bug 1806723 - Replace Cu.reportError with console.error in dom/console code. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165204
2022-12-21 13:18:28 +00:00
Marian-Vasile Laza
3310c3d69c Backed out changeset 4be804d1c686 (bug 1806500) for causing mochitest failures on test_has_permissions.html. CLOSED TREE 2022-12-20 22:52:57 +02:00
Mark Banner
099830ac94 Bug 1806500 - Automatically replace Cu.reportError with console.error (uriloader dom). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165067
2022-12-20 18:34:36 +00:00
Sandor Molnar
119b025cf4 Backed out changeset 146a11389a42 (bug 1806500) for causing mochitest failures in dom/console/tests/test_bug659625.html CLOSED TREE 2022-12-20 10:32:26 +02:00
Mark Banner
dfc3bdb42a Bug 1806500 - Automatically replace Cu.reportError with console.error (uriloader dom). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D165067
2022-12-20 07:43:44 +00:00
Mark Banner
d0d17578a8 Bug 1805728 - Stop using Cu.reportError in Deprecated.sys.mjs. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D164715
2022-12-18 10:10:48 +00:00
lyavor
42556ae145 Bug 1799683 - Add disable next line for all accessible/tests. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D161599
2022-12-12 17:10:02 +00:00
lyavor
eb81c040db Bug 1801843 - Add disable next line for all docshell/test/browser r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D162713
2022-12-08 12:41:59 +00:00