Commit Graph
357 Commits
Author SHA1 Message Date
Alexandre Lissy b271e6a6ca Bug 2043494 - Provide correct suggestion when test needs packaged build r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D303278
2026-06-03 09:49:50 +00:00
Norisz Fay 231994f8e9 Revert "Bug 1610528: apply code formatting via Lando" for causing mochitest failure @ test_docload_root.html
This reverts commit 395dbb6782.

Revert "Bug 1610528 - Remove about:logo. r=dom-core,sthompson,tschuster,smaug,geckoview-reviewers,ohall,firefox-desktop-core-reviewers ,dao"

This reverts commit 7a7e757271.

Revert "Bug 1610528 - Add XPCShellContentUtils.registerAboutPage. r=robwu"

This reverts commit 2ae492c37d.
2026-05-06 21:32:41 +00:00
Vincent Hilla 2ae492c37d Bug 1610528 - Add XPCShellContentUtils.registerAboutPage. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D292764
2026-05-06 20:08:28 +00:00
Emilio Cobos Álvarez e833a1757b Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-02 22:04:13 +00:00
iulian moraru 480fc572da Revert "Bug 2036439, Bug 2033243 - Deal with ownerGlobal -> documentGlobal rename in extensions. r=robwu,home-newtab-reviewers,mconley" for causing newtab failures.
This reverts commit 4f62279d01.

Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug"

This reverts commit 91a4ece356.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 5a95a889e1.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 7177a68e67.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 5263254690.
2026-05-02 16:43:35 +00:00
Emilio Cobos Álvarez 5263254690 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-02 15:33:20 +00:00
rperta d4cc71008d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" on developer request
This reverts commit e58e122135.

This reverts commit 84ca206f3e.

This reverts commit a7945292ed.

This reverts commit 367d83d299.
2026-05-02 06:20:30 +00:00
Emilio Cobos Álvarez 367d83d299 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-05-01 11:58:10 +00:00
agoloman c814da612d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" for causing multiple failures.
This reverts commit c7246654bc.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 8873ddf33c.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 8bf999e03c.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 7dea1af2e0.
2026-04-30 20:13:14 +00:00
Emilio Cobos Álvarez 7dea1af2e0 Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop
Bug 2033191 made sure we only call ownerGlobal on nodes.

As per the discussion in dev-platform, the front-end ~always wants
.documentGlobal. This removes ownerGlobal from the bindings. Following
patch will rename internal GetOwnerGlobal in gecko to GetRelevantGlobal
as per the HTML spec terminology.

Differential Revision: https://phabricator.services.mozilla.com/D297183
2026-04-30 17:47:07 +00:00
Florian Quèze 7b778f7964 Bug 2035261 - Improve uncaught exception and rejection reporting in mochitests, r=ahal.
Pass the exception's actual stack via the harness's stack field instead of
synthesizing one rooted in simpletestOnerror or assertNoUncaughtRejections.
For uncaught rejections, also pass the rejection date as the assertion's
timestamp rather than baking it into the failure message, so otherwise
identical failures fingerprint to the same message. The rejection failure
message is simplified to "uncaught rejection: <message>".

Plumbing changes:
- Assert.report / Assert.AssertionError accept a string stack and an
  optional time.
- StructuredLog.testStatus accepts an optional time that overrides the
  default Date.now().
- The mochitest reporter and browser-harness.xhtml forward the new time
  field through testResult and addResult.

Differential Revision: https://phabricator.services.mozilla.com/D296797
2026-04-30 15:58:21 +00:00
Atila Butkovits 0fa88b9083 Revert "Bug 2035261 - Improve uncaught exception and rejection reporting in mochitests, r=ahal." for causing failures at testUncaughtRejection .
This reverts commit 7ccdd55d07.
2026-04-30 05:57:15 +00:00
Florian Quèze 7ccdd55d07 Bug 2035261 - Improve uncaught exception and rejection reporting in mochitests, r=ahal.
Pass the exception's actual stack via the harness's stack field instead of
synthesizing one rooted in simpletestOnerror or assertNoUncaughtRejections.
For uncaught rejections, also pass the rejection date as the assertion's
timestamp rather than baking it into the failure message, so otherwise
identical failures fingerprint to the same message. The rejection failure
message is simplified to "uncaught rejection: <message>".

Plumbing changes:
- Assert.report / Assert.AssertionError accept a string stack and an
  optional time.
- StructuredLog.testStatus accepts an optional time that overrides the
  default Date.now().
- The mochitest reporter and browser-harness.xhtml forward the new time
  field through testResult and addResult.

Differential Revision: https://phabricator.services.mozilla.com/D296797
2026-04-30 05:23:09 +00:00
agoloman 7ed89a92f1 Revert "Bug 2028663: Fixed unit test and mock registry to account for newly-caught error when attempting to remove non-existent key r=nrishel" for causing bc failures @browser_windows_launch_on_login.js.
This reverts commit 6988fb0bba.
2026-04-21 00:03:13 +00:00
Justin Link 6988fb0bba Bug 2028663: Fixed unit test and mock registry to account for newly-caught error when attempting to remove non-existent key r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D294321
2026-04-20 22:30:19 +00:00
Adam Vandolder 00e336ddcb Bug 1892551 - Part 1: Update tests for SHIP. r=farre,dom-core,extension-reviewers,devtools-reviewers,sessionstore-reviewers,robwu,ochameau,mconley
Differential Revision: https://phabricator.services.mozilla.com/D208060
2026-03-18 17:26:13 +00:00
Sylvestre Ledru 05e870a9a8 Bug 2023419 - Remove Emacs/Vim modelines from testing/ r=emilio,perftest-reviewers,jgraham,geckodriver-reviewers,sparky
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287873
2026-03-16 19:41:12 +00:00
Alexandre Poirot 3fe196f5ae Bug 2019672 - Remove obsolete CoverageUtils.sys.mjs and jscov-dir-prefix mach argument. r=marco
This logic was only tracking privileged parent process javascript,
whereas JS_CODE_COVERAGE_OUTPUT_DIR is the typical equivalent and works
on all processes.

Differential Revision: https://phabricator.services.mozilla.com/D285084
2026-03-09 09:16:09 +00:00
Maxx Crawford 176d2250a8 Bug 2012172 - Guard ChromeUtils.registerMarkerSchema call for backwards compatibility r=florian,home-newtab-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D280310
2026-01-27 21:40:04 +00:00
Florian Quèze 75daa796a2 Bug 2011308 - Make mochitests record profiler markers with schemas (including colors) from StructuredLog.sys.mjs, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D279575
2026-01-22 23:09:38 +00:00
Sandor Molnar aadd1fbe16 Revert "Bug 2011308 - Make mochitests record profiler markers with schemas (including colors) from StructuredLog.sys.mjs, r=ahal." for causing mochitest leak failures.
This reverts commit 72732d108d.
2026-01-22 17:45:26 +00:00
Florian Quèze 72732d108d Bug 2011308 - Make mochitests record profiler markers with schemas (including colors) from StructuredLog.sys.mjs, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D279575
2026-01-22 14:55:38 +00:00
Tooru Fujisawa 4a424b3fd9 Bug 1949623 - Part 1: Add the reload method to xpcshell ContentPage. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D273442
2026-01-16 13:28:11 +00:00
Florian Quèze 4fa28e5ef6 Bug 2009377 - [mochitest-plain] return a FAIL or PASS status in test_end messages instead of OK, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D278464
2026-01-15 17:14:37 +00:00
Florian Quèze 52b69934d3 Bug 2009377 - make browser-chrome tests give a PASS/FAIL status to testEnd rather than a constant OK, r=ahal,jwatt.
Differential Revision: https://phabricator.services.mozilla.com/D278462
2026-01-15 17:14:30 +00:00
agoloman 8fbcf59de0 Revert "Bug 2009377 - [mochitest-plain] return a FAIL or PASS status in test_end messages instead of OK, r=ahal." for causing the NEW tag to show on most of the mochitests.
This reverts commit 2708c7e775.

Revert "Bug 2009377 - make browser-chrome tests log testEnd with a TIMEOUT status when they shutdown the browser due to a timeout, r=ahal."

This reverts commit 56681d556f.

Revert "Bug 2009377 - make browser-chrome tests give a PASS/FAIL status to testEnd rather than a constant OK, r=ahal,jwatt."

This reverts commit 8b9335a98e.
2026-01-13 17:32:50 +00:00
Florian Quèze 2708c7e775 Bug 2009377 - [mochitest-plain] return a FAIL or PASS status in test_end messages instead of OK, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D278464
2026-01-13 10:52:40 +00:00
Florian Quèze 8b9335a98e Bug 2009377 - make browser-chrome tests give a PASS/FAIL status to testEnd rather than a constant OK, r=ahal,jwatt.
Differential Revision: https://phabricator.services.mozilla.com/D278462
2026-01-13 10:52:34 +00:00
Alexandru Marc 799084cfdb Revert "Bug 2009377 - [mochitest-plain] return a FAIL or PASS status in test_end messages instead of OK, r=ahal." for causing python failures @ test_reftest_output.py
This reverts commit 5739a42054.

Revert "Bug 2009377 - make browser-chrome tests log testEnd with a TIMEOUT status when they shutdown the browser due to a timeout, r=ahal."

This reverts commit 7e143ba52b.

Revert "Bug 2009377 - make browser-chrome tests give a PASS/FAIL status to testEnd rather than a constant OK, r=ahal,jwatt."

This reverts commit f404f8ebb2.
2026-01-13 08:04:34 +00:00
Florian Quèze 5739a42054 Bug 2009377 - [mochitest-plain] return a FAIL or PASS status in test_end messages instead of OK, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D278464
2026-01-13 06:55:30 +00:00
Florian Quèze f404f8ebb2 Bug 2009377 - make browser-chrome tests give a PASS/FAIL status to testEnd rather than a constant OK, r=ahal,jwatt.
Differential Revision: https://phabricator.services.mozilla.com/D278462
2026-01-13 06:55:24 +00:00
Rob Wu 4529029717 Bug 2007587 - Gracefully handle clone errors in StructuredLogger r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D277476
2026-01-05 16:11:15 +00:00
Mark Banner 2ad23597e0 Bug 2004680 - Fix ESLint rule jsdoc/check-tag-names issues in remaining areas. r=firefox-desktop-core-reviewers ,necko-reviewers,sync-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D275758
2025-12-22 12:41:39 +00:00
Florian Quèze 28417f5466 Bug 2000240 - avoid printing 'undefined assertion name' for assertions outsides of test tasks, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D272661
2025-12-22 12:30:01 +00:00
iulian moraru 441715a778 Revert "Bug 2000240 - avoid printing 'undefined assertion name' for assertions outsides of test tasks, r=ahal." for "Too few arguments" logged.
This reverts commit 2217a43137.
2025-12-20 20:09:50 +00:00
Florian Quèze 2217a43137 Bug 2000240 - avoid printing 'undefined assertion name' for assertions outsides of test tasks, r=ahal.
Differential Revision: https://phabricator.services.mozilla.com/D272661
2025-12-15 18:18:44 +00:00
Henri SivonenandVincent Hilla 39a8a4171b Bug 543435 - Make initial about:blank not get overwritten by an async about:blank load. r=sessionstore-reviewers,sfoster,timhuang,credential-management-reviewers,issammani,webidl,extension-reviewers,tabbrowser-reviewers,migration-reviewers,home-newtab-reviewers,hsivonen,cookie-reviewers,fxview-reviewers,firefox-desktop-core-reviewers ,dao,valentin,mossop,smaug,geckoview-reviewers,Jamie,mtigley,thecount,media-playback-reviewers,padenot,dom-worker-reviewers,jesup,jdescottes,asuth,robwu,karlt,profiler-reviewers,kpatenio,devtools-reviewers,tcampbell,nchevobbe
Co-authored-by: Vincent Hilla <[email protected]>
Signed-off-by: Vincent Hilla <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D155376
2025-11-24 05:34:22 +00:00
Mark Banner d8abd37c38 Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for remaining code. r=frontend-codestyle-reviewers,mtigley,perftest-reviewers,home-newtab-reviewers,valentin,sparky,mossop,thecount
Differential Revision: https://phabricator.services.mozilla.com/D272174
2025-11-21 16:16:12 +00:00
Tom Schuster dc10e26ff5 Bug 2000196 - Compare favicons using new ImageTestUtils. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D273007
2025-11-20 11:18:32 +00:00
Mark Banner 2542790f53 Bug 1998787 - Automatic fixes for enabling ESLint jsdoc/tag-line rule everywhere. r=frontend-codestyle-reviewers,mtigley,perftest-reviewers,nchevobbe,home-newtab-reviewers,Gijs,mconley,sparky
Differential Revision: https://phabricator.services.mozilla.com/D271745
2025-11-10 21:27:12 +00:00
Mike Conley b38ebfaf2d Bug 1983851 - Remove ChromeUtils.now newtab train-hop compatibility shims now that Firefox 144 has shipped. r=florian,home-newtab-reviewers,thecount
These shims were added in bug 1983850.

Differential Revision: https://phabricator.services.mozilla.com/D269098
2025-10-20 17:49:37 +00:00
Mark Banner 32474de169 Bug 1993543 - Change XPCOMUtils.defineLazyServiceGetter(s) calls to pass an nsIID rather than a string. r=firefox-desktop-core-reviewers ,mtigley,joschmidt,perftest-reviewers,home-newtab-reviewers,nbarrett,Gijs,sparky
This is all automated changes apart from ShellService.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D268194
2025-10-17 22:13:14 +00:00
Atila Butkovits 091d1f53bd Revert "Bug 1993543 - Simplify XPCOMUtils.defineLazyServiceGetter to require the interface parameter as an nsIID. r=spidermonkey-reviewers,frontend-codestyle-reviewers,Gijs,arai" for causing Reftest failures.
This reverts commit d96e9bd92c.

Revert "Bug 1993543 - Change XPCOMUtils.defineLazyServiceGetter(s) calls to pass an nsIID rather than a string. r=firefox-desktop-core-reviewers ,mtigley,joschmidt,perftest-reviewers,home-newtab-reviewers,nbarrett,Gijs,sparky"

This reverts commit 024c584172.
2025-10-17 12:51:54 +00:00
Mark Banner 024c584172 Bug 1993543 - Change XPCOMUtils.defineLazyServiceGetter(s) calls to pass an nsIID rather than a string. r=firefox-desktop-core-reviewers ,mtigley,joschmidt,perftest-reviewers,home-newtab-reviewers,nbarrett,Gijs,sparky
This is all automated changes apart from ShellService.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D268194
2025-10-17 11:16:12 +00:00
Mike Conley 8b84852aa5 Bug 1983850 - Fix newtab trainhop compatibility issue with ChromeUtils.now usage in TelemetryFeed and mochitest. r=home-newtab-reviewers,thecount,florian
Differential Revision: https://phabricator.services.mozilla.com/D261594
2025-08-20 14:42:41 +00:00
Norisz Fay 0d9f9f577d Revert "Bug 1983919, Bug 1983850 - Shim EventUtils.js for newtab train-hop compatibility for the old way of synthesizing mouse events. r=edgar" for causing mass failures
This reverts commit ca0a5d1707.

Revert "Bug 1983850 - Fix newtab trainhop compatibility issue with ChromeUtils.now usage in TelemetryFeed and mochitest. r=home-newtab-reviewers,thecount,florian"

This reverts commit 085062c936.
2025-08-20 03:54:13 +00:00
Mike Conley 085062c936 Bug 1983850 - Fix newtab trainhop compatibility issue with ChromeUtils.now usage in TelemetryFeed and mochitest. r=home-newtab-reviewers,thecount,florian
Differential Revision: https://phabricator.services.mozilla.com/D261594
2025-08-20 02:47:38 +00:00
Florian Quèze c6561de6fe Bug 1982887 - add the ChromeUtils.now API to use it in ChromeUtils.addProfilerMarker, r=canaltinova,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewer-rotation,search-reviewers,devtools-reviewers,places-reviewers,profiler-reviewers,translations-reviewers,firefox-desktop-core-reviewers ,home-newtab-reviewers,toolkit-telemetry-reviewers,scunnane,robwu,owlish,nchevobbe,Gijs,sparky,mconley.
Differential Revision: https://phabricator.services.mozilla.com/D261007
2025-08-18 21:59:08 +00:00
Gregory Pappas 3c2343ed9e Bug 1981006 - Fix it.skipIf method not working r=beth
Defining `skipIf` like `get: MochiaImpl.skipIf` installs the function as a
getter, not a method, which causes `MochiaImpl.skipIf()` to be invoked with
zero arguments when `it.skipIf` is accessed. `it.skipIf("desc", cond, test)`
then becomes a call to the result of that zero-argument invocation, instead
of invoking the actual `skipIf` function with arguments

Depends on D259870

Differential Revision: https://phabricator.services.mozilla.com/D259871
2025-08-08 00:52:11 +00:00
Alex Franchuk c0f4054b06 Bug 1978519 - Add a test to ensure the crashreporter can read the omnijar r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D259199
2025-08-04 21:37:09 +00:00