Commit Graph

1978 Commits

Author SHA1 Message Date
Gijs Kruitbosch
bd7719e854 Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164127
2022-12-12 10:08:03 +00:00
Barret Rennie
f38098cf3d Bug 1541508 - Use Services.env in layout/ r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D160140
2022-11-25 19:09:08 +00:00
Marco Castelluccio
d5ba50dc9f Bug 1790816 - Reformat layout/ with isort. r=linter-reviewers,ahal DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162669
2022-11-24 17:23:27 +00:00
Mark Banner
4a8185fb14 Bug 1801368 - Migrate StructuredLog.jsm to an ES module. r=ahal
Depends on D162490

Differential Revision: https://phabricator.services.mozilla.com/D162491
2022-11-24 16:17:47 +00:00
Mark Banner
55d53c8bb7 Bug 1801368 - Change StructuredLogger and StructuredFormatter to use class definitions, improve private properties. r=ahal
Depends on D162489

Differential Revision: https://phabricator.services.mozilla.com/D162490
2022-11-24 16:17:47 +00:00
Marco Castelluccio
276183d19c Bug 1631441 - Remove no longer relevant tests with XBL bindings. r=emilio DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162413
2022-11-23 13:41:15 +00:00
Stephen A Pohl
0a408a0948 Bug 1642138: Improve integration with the macOS-level Window menu handling to unlock built-in OS functionality such as tiling of windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159723
2022-11-07 19:04:40 +00:00
Iulian Moraru
1c8854ed1e Backed out changeset 46538d8cbaf1 (bug 1642138) as per dev's request. CLOSED TREE 2022-11-05 03:02:28 +02:00
Stephen A Pohl
177c2181ca Bug 1642138: Improve integration with the macOS-level Window menu handling to unlock built-in OS functionality such as tiling of windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159723
2022-11-03 19:32:27 +00:00
William Durand
560aa1a276 Bug 1797050 - Part 6 - Use browser_specific_settings instead of applications in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +00:00
Cristian Tuns
4d37cf70f1 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie
267a101012 Bug 1541508 - Use Services.env in layout/ r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D160140
2022-11-02 02:08:55 +00:00
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Joel Maher
52f4e17b80 Bug 1794897 - Add fuzzy-if for 8 reftests to run on Pixel5. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D159241
2022-10-13 12:41:08 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Alexandre Poirot
15211b3be5 Bug 1783821 - [devtools] Manual rewrites r=bomsy
In md files and code comments and mostly from common js files.

I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D154073
2022-09-05 12:29:57 +00:00
Eemeli Aro
24830b1cc6 Bug 1787411 - Migrate layout debugger localization to Fluent. r=fluent-reviewers,flod,emilio
The localization file is moved to `content/` to make it more clear that it's not intended to be localised.

For the same reason, no Fluent migration script is included as there are no localised strings to migrate.

Differential Revision: https://phabricator.services.mozilla.com/D155702
2022-08-29 09:59:35 +00:00
Daniel Holbert
4209467c50 Bug 1786210: Remove mentions of unused pref gfx.font_loader.interval. r=emilio
This patch doesn't impact behavior.

The pref "gfx.font_loader.interval" used to control certain aspects of
font-loading behavior, but that code has evolved and we no longer read the
value of this pref anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D155183
2022-08-21 23:45:56 +00:00
Andrew McCreight
8f54548bda Bug 1769791, part 2 - Add allowXULXBL for file URIs for reftests even if not http. r=jmaher
This ensures we have the permission to load XUL files from file URIs when we are
not using HTTP, which we seem to need for remote reftests, like Android.

This also removes the setting of dom.allow_XUL_XBL_for_file in the reftest pref
file, which doesn't seem to be enough to make Android remote reftests work for
some reason, so I don't think it is doing anything.

Differential Revision: https://phabricator.services.mozilla.com/D154690
2022-08-18 22:14:54 +00:00
Emilio Cobos Álvarez
5edd66eae2 Bug 1783940 - Include fonts that new chrome tests need in the reftest jar.
MANUAL PUSH: Test-only trivial fix CLOSED TREE
2022-08-10 21:31:04 +02:00
Emilio Cobos Álvarez
9f8d56e747 Bug 1783940 - Remove -moz-* display values enabled-in-content prefs. r=dholbert
We have unshipped these since forever, no point in keeping the pref
around. Move the relevant tests to chrome ref/mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D154152
2022-08-10 15:43:51 +00:00
Sandor Molnar
2fd0743a13 Backed out changeset 28c712b01ff9 (bug 1783940) for causing mochitest plain failures in layout/generic/test/test_dynamic_reflow_root_disallowal.html 2022-08-10 02:26:47 +03:00
Emilio Cobos Álvarez
8efdb3cc26 Bug 1783940 - Remove -moz-* display values enabled-in-content prefs. r=dholbert
We have unshipped these since forever, no point in keeping the pref
around. Move the relevant tests to chrome ref/mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D154152
2022-08-09 21:59:45 +00:00
Emilio Cobos Álvarez
8c0e9c2e38 Bug 1781034 - Add a shortcut to open the browser toolbox to the layout debugger. r=layout-reviewers,devtools-reviewers,nchevobbe,dshin
Depends on D152628

Differential Revision: https://phabricator.services.mozilla.com/D152629
2022-07-26 15:06:30 +00:00
Emilio Cobos Álvarez
eef7f0ff16 Bug 1781034 - Remove layout debugger's visual debugging. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D152628
2022-07-26 15:06:30 +00:00
Marian-Vasile Laza
aa61e2020a Backed out 2 changesets (bug 1781034) for causing bustages on nsImageFrame.cpp. CLOSED TREE
Backed out changeset 6a7a9375987a (bug 1781034)
Backed out changeset 58728270361e (bug 1781034)
2022-07-26 17:45:06 +03:00
Emilio Cobos Álvarez
75b34d5fc7 Bug 1781034 - Add a shortcut to open the browser toolbox to the layout debugger. r=layout-reviewers,devtools-reviewers,nchevobbe,dshin
Depends on D152628

Differential Revision: https://phabricator.services.mozilla.com/D152629
2022-07-26 14:08:57 +00:00
Emilio Cobos Álvarez
81b3b99519 Bug 1781034 - Remove layout debugger's visual debugging. r=layout-reviewers,dshin
Differential Revision: https://phabricator.services.mozilla.com/D152628
2022-07-26 14:08:56 +00:00
Dan Robertson
01442549da Bug 1777324 - Move reftest README to firefox source documentation. r=tnikkel
Move the README for the layout reftests to the firefox source documentation.

Differential Revision: https://phabricator.services.mozilla.com/D150630
2022-07-15 21:40:22 +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
bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +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
Daniel Holbert
a867c38ed4 Bug 1776778: Make reftest harness log & fail gracefully when its drawSnapshot() call fails. r=tnikkel
This is just touching reftest.jsm, so this doesn't impact users at all.

I'm using the same approach we use for other similar failure conditions in this
file (logging and incrementing the exception count), cribbing from e.g.
https://searchfox.org/mozilla-central/rev/5b2d2863bd315f232a3f769f76e0eb16cdca7cb0/layout/tools/reftest/reftest.jsm#1229-1231
https://searchfox.org/mozilla-central/rev/5b2d2863bd315f232a3f769f76e0eb16cdca7cb0/layout/tools/reftest/reftest.jsm#985-986

I confirmed in a try run that this does turn the reftest harness orange (with
REFTEST ERROR logging) if I force the drawSnapshot call to fail and trigger
the codepath that I'm adding here.

Differential Revision: https://phabricator.services.mozilla.com/D150436
2022-06-28 01:21:21 +00:00
Barret Rennie
282e0ff4b2 Bug 1772919 - Port osfile.jsm usage to IOUtils in layout/tools/ r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D149300
2022-06-23 23:40:49 +00:00
Martin Robinson
f85b73bf84 Bug 1463600 - Implement CSS 'contain: style' r=emilio
Add an implementation of CSS `contain: style`. This introduces two new
data structures, the ContainStyleScope and ContainStyleScopeManager.

ContainStyleScope manages one `contain: style` "world" which has its own
counter and quote lists. The contents of these lists depend on their
parent scopes, but are not affected by their children.
ContainStyleScopeManager manages a tree of scopes starting at a root
scope which is outside of any `contain: style` element.

Scopes are stored in a hash table that is keyed off of the nsIContent
which establishes the `contain: style` scope. When modifying quote or
content lists, the ContainStyleScopeManager is responsible for finding
the appropriate `contain: style` scope to modify.

Perhaps the most complex part of this is that counters and quotes have
read access to the state of counters and quotes that are in ancestor
`contain: style` scopes. In the case of counters, USE nodes that are at
the beginning of counter lists might have a counter scope that starts in
an ancestor `contain: style` scope. When nsCounterNode::SetScope() is
called, the code may look upward in the `contain: style` scope tree to
find the start of the counter scope. In the case of quotes, the first
node in the quote list must look for the state of quotes in ancestor
`contain: style` scopes.

Differential Revision: https://phabricator.services.mozilla.com/D149508
2022-06-22 16:16:59 +00:00
Bogdan Szekely
b56ae513c7 Backed out changeset 86e9449aba35 (bug 1463600) for causing xpcshell failures on test_css-properties-db.js 2022-06-22 15:35:33 +03:00
Martin Robinson
83640bbee6 Bug 1463600 - Implement CSS 'contain: style' r=emilio
Add an implementation of CSS `contain: style`. This introduces two new
data structures, the ContainStyleScope and ContainStyleScopeManager.

ContainStyleScope manages one `contain: style` "world" which has its own
counter and quote lists. The contents of these lists depend on their
parent scopes, but are not affected by their children.
ContainStyleScopeManager manages a tree of scopes starting at a root
scope which is outside of any `contain: style` element.

Scopes are stored in a hash table that is keyed off of the nsIContent
which establishes the `contain: style` scope. When modifying quote or
content lists, the ContainStyleScopeManager is responsible for finding
the appropriate `contain: style` scope to modify.

Perhaps the most complex part of this is that counters and quotes have
read access to the state of counters and quotes that are in ancestor
`contain: style` scopes. In the case of counters, USE nodes that are at
the beginning of counter lists might have a counter scope that starts in
an ancestor `contain: style` scope. When nsCounterNode::SetScope() is
called, the code may look upward in the `contain: style` scope tree to
find the start of the counter scope. In the case of quotes, the first
node in the quote list must look for the state of quotes in ancestor
`contain: style` scopes.

Differential Revision: https://phabricator.services.mozilla.com/D149508
2022-06-22 10:42:34 +00:00
Tooru Fujisawa
3e7abb615a Bug 1774566 - Remove unnecessary 2nd parameter from ChromeUtils.import in layout/tools/reftest/manifest.jsm. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D149701
2022-06-21 11:10:15 +00:00
Emilio Cobos Álvarez
f7eb7c604f Bug 1764585 - Re-add a line accidentally removed.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2022-06-20 17:22:13 +02:00
Emilio Cobos Álvarez
3ec010c2b1 Bug 1764585 - Wait for some pref changes to take effect. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D149745
2022-06-20 13:57:09 +00:00
Dan Robertson
0f3ed8ae5d Bug 1772154 - Add section on the reftest analyzer to reftest docs. r=botond,mstange
Differential Revision: https://phabricator.services.mozilla.com/D147886
2022-06-01 23:16:22 +00:00
Tooru Fujisawa
b458dbc7a5 Bug 1772103 - Use plain object for lazy getter in layout/tools/reftest/. r=dholbert
Depends on D147891

Differential Revision: https://phabricator.services.mozilla.com/D147892
2022-06-01 21:29:14 +00:00
Henrik Skupin
ec898f20be Bug 1769544 - Fix layout/tools/reftest/selftest/test_reftest_output.py for the new exit code of a forced shutdown as caused by MOZ_CRASHREPORTER_SHUTDOWN. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D146531
2022-05-17 14:27:04 +00:00
Jonathan Watt
6e5bce1349 Bug 1769388 - Change nsIPrintSettingsService's 'newPrintSettings' attribute to a 'createNewPrintSettings' function. r=bobowen,webdriver-reviewers,whimboo
Having an attribute be a constructor is just...wrong.

Differential Revision: https://phabricator.services.mozilla.com/D146383
2022-05-16 11:50:34 +00:00
Joel Maher
ab1727d3e3 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 17:41:03 +00:00
Butkovits Atila
8a2fe790ec Backed out changeset 1ce55e10b927 (bug 1762991) for causing jit failures. CLOSED TREE 2022-05-10 09:41:32 +03:00
Joel Maher
f33bac2082 Bug 1762991 - switch to --disable-fission and fission by default. r=gbrown,webdriver-reviewers,whimboo
updated patch for android_hardware_unittests.py, asking for a review- please look at the interdiff to see recent changes.

Differential Revision: https://phabricator.services.mozilla.com/D144985
2022-05-10 00:41:01 +00:00
Cristian Tuns
9462119251 Backed out changeset 60dcc095f627 (bug 1762991) for causing multiple failures (exit status 2). CLOSED TREE 2022-05-06 14:34:10 -04:00