Граф коммитов

221 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Kris Maglione 35eb8605de Bug 1770237: Part 1b - Update MockRegistrar to allow registering JSMs similarly to static components. r=mccr8
This makes it easier to migrate some tests that use chrome manifest
registration. It lets us register JSMs as components in a similar way to how
we register them in static component manifests.

Differential Revision: https://phabricator.services.mozilla.com/D148181
2022-06-22 20:31:32 +00:00
Tooru Fujisawa 2337bc5418 Bug 1772299 - Reject modification to globalThis inside system module. r=Standard8,webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148116
2022-06-15 22:20:53 +00:00
Barret Rennie 802ed4da39 Bug 1760130 - Run FileTestUtils cleanup at the latest possible phase r=mak
Differential Revision: https://phabricator.services.mozilla.com/D148147
2022-06-09 16:11:13 +00:00
Tooru Fujisawa e6e999d822 Bug 1772098 - Part 2: Use plain object for lazy getter in testing/modules/. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147924
2022-06-06 06:30:33 +00:00
Tooru Fujisawa acaf6f75b5 Bug 1610653 - Part 9: Do not use global this property assignment to define global variable in testing/modules. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D144116
2022-05-30 15:19:38 +00:00
Andrew McCreight c8c5c819df Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs
This patch won't actually build, because a few bits of code are used
for both nsIFactory::createInstance and static components, and static
components are not fixed until the next patch.

The first place is nsLoadGroupConstructor, which uses an nsIFactory
macro to create a static component constructor. (This could be worked
around by expanding the macro to the state before this patch.)

The other issue is that nsAppShellConstructor is used in an nsIFactory
on OSX, but as a static component on all other platforms. This could
be worked around by wrapping nsAppShellConstructor in an adaptor that
passes in the extra null argument to nsAppShellConstructor.

Differential Revision: https://phabricator.services.mozilla.com/D146456
2022-05-17 20:24:19 +00:00
Andrew McCreight 01913de302 Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory. r=xpcom-reviewers,Jamie,necko-reviewers,kershaw,nika
nsIFactory is binary compatible with Windows COM's IClassFactory,
but nothing seems to depend on it. This patch removes the test
for compatibility, TestCOM, and removes the lockFactory
method that isn't otherwise needed.

Differential Revision: https://phabricator.services.mozilla.com/D146386
2022-05-16 22:38:51 +00:00
Tooru Fujisawa 32bc0bc61e Bug 1768022 - Use globalThis instead of Cu.getGlobalForObject(this). r=Standard8,webdriver-reviewers,necko-reviewers,whimboo,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D145842
2022-05-10 07:52:01 +00:00
Doug Thayer 04d1c8fd1e Bug 1756823 - Replace ConsoleAPIStorage observer calls with js array r=nchevobbe,webdriver-reviewers,geckoview-reviewers,agi,jdescottes
See the comment in the file explaining it. For a case of logging 100k numbers,
this dropped the time per number from 15 microseconds to 9 with the console
closed, and 55 microseconds to 38 with the console open. I think we could shave
off more with a native approach, but I don't know that it's worth it and it's
much more likely for that to introduce bugs.

Differential Revision: https://phabricator.services.mozilla.com/D143782
2022-05-03 17:21:59 +00:00
Tooru Fujisawa 5aae6d2f7b Bug 1608276 - Part 3: Do not use global this whem loading sinon subscript. r=mossop
Here the Services.scriptloader.loadSubScript is kept as is, given the
sinon-7.2.7.js is vendored script and making it JSM-compatible requires extra
step during re-vendor.

The target object is replaced from `this` to separate object, so that it
keeps working after ESM-ification.

Differential Revision: https://phabricator.services.mozilla.com/D144081
2022-04-26 12:48:06 +00:00
Barret Rennie 2e264dae56 Bug 1762493 - Remove Ajv r=ckerschb,ahal
Differential Revision: https://phabricator.services.mozilla.com/D142881
2022-04-20 15:23:28 +00:00
Mark Banner 2d563feacc Bug 1758476 - Remove some unnecessary uses of the target object argument to ChromeUtils.import. r=mossop,webdriver-reviewers,perftest-reviewers,robwu,whimboo,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D140518
2022-03-17 22:13:08 +00:00
Cristian Tuns e8374bd569 Backed out changeset 528295e7cb0c (bug 1758476) for causing tabswitch failures CLOSED TREE 2022-03-14 12:27:48 -04:00
Mark Banner 0ce30e3008 Bug 1758476 - Remove some unnecessary uses of the target object argument to ChromeUtils.import. r=mossop,webdriver-reviewers,perftest-reviewers,robwu,whimboo,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D140518
2022-03-14 10:19:40 +00:00
Mark Banner aa27ba2794 Bug 1758472 - Stop using ChromeUtils.import(..., null) for importing modules in tests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140515
2022-03-08 16:59:20 +00:00
Florian Quèze ee0f63bdfc Bug 1754015 - Assert.jsm should throw when comparing a NaN number, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D138041
2022-02-16 09:56:34 +00:00
criss b6a852be9b Backed out 3 changesets (bug 1754015, bug 1754012) for causing failures on test_nsIX509CertValidity.js. CLOSED TREE
Backed out changeset 6928edee3bbc (bug 1754012)
Backed out changeset 6792032bd169 (bug 1754012)
Backed out changeset 8f11731d9aee (bug 1754015)
2022-02-08 13:42:46 +02:00
Florian Quèze 9686fc17a5 Bug 1754015 - Assert.jsm should throw when comparing a NaN number, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D138041
2022-02-08 10:35:50 +00:00
Andrei Oprea c73cc990d7 Bug 1730924 - Upgrade ajv.js from 4.1.1 to 6.12.6 r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D127625
2021-10-12 19:41:05 +00:00
Alexandru Michis ba57f54149 Backed out changeset 837ba61b9975 (bug 1730924) for causing xpcshell failures in services/sync.
CLOSED TREE
2021-10-12 20:13:05 +03:00
Andrei Oprea db4ace8177 Bug 1730924 - Upgrade ajv.js from 4.1.1 to 6.12.6 r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D127625
2021-10-12 14:43:02 +00:00
Tomislav Jovanovic 1b801a123d Bug 1708243 - Part 4: Remove tab-content.js and onExtensionBrowser.js, stop touching .content eagerly r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D127750
2021-10-09 22:45:28 +00:00
Tomislav Jovanovic 0b1c358ede Bug 1708243 - Part 3: Use actor messaging for tabs.detectLanguage, stop loading MessageChannel.jsm, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D126623
2021-09-29 16:52:59 +00:00
Mark Banner 14aedbb785 Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 12:09:49 +00:00
Noemi Erli e0f4b9b5fe Backed out 2 changesets (bug 1729460) for causing newtab failures CLOSED TREE
Backed out changeset 5617839462be (bug 1729460)
Backed out changeset 6d52fde3ee0e (bug 1729460)
2021-09-10 13:14:12 +03:00
Mark Banner 3cfdb5c41a Bug 1729460 - Change users of defineLazyServiceGetter(s) to use Services.* where appropriate. r=mossop,webdriver-reviewers,extension-reviewers,whimboo,robwu
Differential Revision: https://phabricator.services.mozilla.com/D124838
2021-09-10 09:38:42 +00:00
Nika Layzell 08996b5877 Bug 1650089 - Part 8: Avoid race when calling loadContentPage with about:blank, r=kmag
Without this change, there was a race where the promiseBrowserLoaded promise
from the loadURL call could return early due to observing the load completing
for the default about:blank document, rather than for the second explicit
about:blank load, leading to intermittent timeouts due to loads interrupting
one-another. This change skips the default about:blank document load with
nodefaultsrc, avoiding the issue.

Differential Revision: https://phabricator.services.mozilla.com/D121778
2021-08-10 14:31:19 +00:00
Butkovits Atila 22fb2b6793 Backed out 8 changesets (bug 1650089) for causing Xpcshell failures on test_ext_redirects.js. CLOSED TREE
Backed out changeset ee763318d378 (bug 1650089)
Backed out changeset 24d7898ec4bd (bug 1650089)
Backed out changeset bcdd2f5c9840 (bug 1650089)
Backed out changeset 24a5bd7f97dd (bug 1650089)
Backed out changeset 1b8b4e939e82 (bug 1650089)
Backed out changeset a7a4f37a5d72 (bug 1650089)
Backed out changeset 78c012d4b071 (bug 1650089)
Backed out changeset e870508c1ddc (bug 1650089)
2021-08-06 04:35:52 +03:00
Nika Layzell cc1d110aaa Bug 1650089 - Part 8: Avoid race when calling loadContentPage with about:blank, r=kmag
Without this change, there was a race where the promiseBrowserLoaded promise
from the loadURL call could return early due to observing the load completing
for the default about:blank document, rather than for the second explicit
about:blank load, leading to intermittent timeouts due to loads interrupting
one-another. This change skips the default about:blank document load with
nodefaultsrc, avoiding the issue.

Differential Revision: https://phabricator.services.mozilla.com/D121778
2021-08-06 00:10:59 +00:00
Mark Banner 6fdf25dc9d Bug 1717025 - Remove unnecessary inclusions of Promise.jsm in test harnesses and tests. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D118180
2021-06-17 14:31:57 +00:00
Kris Maglione ae436f55ec Bug 1646560: Part 2 - Move allowJavascript and friends from DocShell to BrowsingContext and WindowContext. r=jdescottes,nika,geckoview-reviewers,devtools-backward-compat-reviewers,agi
This is slightly complicated by the fact that the editor code wants to be able
to set this from the content process, so we really need separate
BrowsingContext and WindowContext flags, the latter of which can be set by the
owning process.

Differential Revision: https://phabricator.services.mozilla.com/D114899
2021-06-15 04:40:11 +00:00
Kris Maglione b3c34d273e Bug 1646560: Part 1 - Move some XPCShell content helpers to generic shared module. r=nika
They were originally written for the extension framework, but have been used
more and more widely ever since.

Differential Revision: https://phabricator.services.mozilla.com/D114898
2021-06-15 04:40:10 +00:00
Florian Quèze c238647be5 Bug 1703583 - automatically reject waitForEvent, waitForCondition and topicObserved promises at the end of a browser test, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D111115
2021-04-19 21:56:04 +00:00
Bryce Seager van Dyk bb3170ecf7 Bug 1702271 - Document waitForCondition msg arg. r=florian DONTBUILD
This also makes a couple of other fixes to existing comments to bring them in
line with the actual behaviour and names used.

Differential Revision: https://phabricator.services.mozilla.com/D110428
2021-03-31 17:40:51 +00:00
Florian Quèze 0815ca71ee Bug 1596165 - Remove the initial timer in TestUtils.waitForCondition, r=Gijs.
Depends on D108010

Differential Revision: https://phabricator.services.mozilla.com/D108011
2021-03-25 18:30:07 +00:00
Brindusan Cristian 53931c7cda Backed out 2 changesets (bug 1596165) for bc failures in browser_bookmarkProperties_folderSelection.js and browser_doorhanger_submit_telemetry.js. CLOSED TREE
Backed out changeset 4eccbb3d6549 (bug 1596165)
Backed out changeset 7d8fb53c8fcb (bug 1596165)
2021-03-25 00:48:01 +02:00
Florian Quèze 829131f372 Bug 1596165 - Remove the initial timer in TestUtils.waitForCondition, r=Gijs.
Depends on D108010

Differential Revision: https://phabricator.services.mozilla.com/D108011
2021-03-24 20:46:14 +00:00
Florian Quèze 06bedf6439 Bug 1697797 - Add profiler markers on BrowserTestUtils, TestUtils and SpecialPowers methods, r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D108009
2021-03-11 21:39:50 +00:00
Mark Banner 263d555274 Bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import', use object destructuring instead (test-only changes). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104683
2021-02-11 22:02:15 +00:00
Julien Wajsberg 3c4ba8f56b Bug 1690631 - Add string matching helpers to Assert.jsm r=Gijs
This adds Assert.stringContains and Assert.stringMatches.

Differential Revision: https://phabricator.services.mozilla.com/D104254
2021-02-11 17:59:03 +00:00
Michael Cooper bedfe8bf76 Bug 1690052 - Wait until Normandy has updated default branch prefs before processing recipes r=Gijs
The 30 second delay and 3x max retries were chosen arbitrarily.

This avoids a potential race condition where the RecipeRunner is triggered before Normandy has fully initialized. When this happens, recipes can wrongly unenroll or graduate, causing many problems and confusing telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D103704
2021-02-03 17:39:03 +00:00
Valentin Gosu 2ae4bc3d94 Bug 1688838 - Also disable other prefs that may trigger OMT use of MockRegistry.jsm r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D103464
2021-02-02 10:56:16 +00:00
Valentin Gosu bfc7a3df9d Bug 1688838 - Don't use the Windows Registry off main thread in nsNotifyAddrListener while a MockRegistry is active r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D103158
2021-01-28 13:41:39 +00:00
Sylvestre Ledru c0f6fe8caf Bug 1562642 - Add missing license headers r=mhoye,marionette-reviewers,webdriver-reviewers,perftest-reviewers,tarek
Differential Revision: https://phabricator.services.mozilla.com/D97138
2020-11-17 02:06:54 +00:00
David Teller 8e0c2cbd01 Bug 1426219 - Assert.throws now cleans up recentJSDevError;r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D94973
2020-10-30 11:06:32 +00:00