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

1966 Коммитов

Автор SHA1 Сообщение Дата
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
Joel Maher 8e2741c219 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-06 15:01:22 +00:00
Tooru Fujisawa 2130db6a12 Bug 1765167 - Part 6: Stop using Cu.import in layout/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D144099
2022-05-03 06:32:31 +00:00
Emilio Cobos Álvarez 20b8aec4d5 Bug 1764354 - Propagate color-scheme preference to SVG images on chrome documents. r=aosmond
This allows favicons to respect the user theme even when it doesn't
match the content theme.

Differential Revision: https://phabricator.services.mozilla.com/D143639
2022-04-17 20:38:01 +00:00
Emilio Cobos Álvarez a18fdda05d Bug 1762298 - GCC build bustage and reftest fixes.
MANUAL PUSH: Orange fix CLOSED TREE
2022-04-04 22:14:24 +02:00
Emilio Cobos Álvarez 7e23a4287f Bug 1760836 - Support printing to an nsIOutputStream. r=jfkthame,jrmuizel,webdriver-reviewers,geckoview-reviewers,agi
The trickiest bits are the PrintTargetCG ones, the rest is just plumbing
and cleanups and tests, but let me know if you want those to be split
out, can do.

The GTK change to nsPrintSettingsGTK::GetResolution is a no-op (we only
read resolution on windows), but I did that because we assume that it
doesn't fail and GTK returns a sane default anyways.

Differential Revision: https://phabricator.services.mozilla.com/D142199
2022-03-30 18:51:58 +00:00
Iulian Moraru 7a3ed2ce2a Backed out changeset d42d7505c9cf (bug 1760836) for causing mochitest failures on browser_print_stream.js. CLOSED TREE 2022-03-29 23:32:39 +03:00
Emilio Cobos Álvarez b0fb172236 Bug 1760836 - Support printing to an nsIOutputStream. r=jfkthame,jrmuizel,webdriver-reviewers,geckoview-reviewers,agi
The trickiest bits are the PrintTargetCG ones, the rest is just plumbing
and cleanups and tests, but let me know if you want those to be split
out, can do.

The GTK change to nsPrintSettingsGTK::GetResolution is a no-op (we only
read resolution on windows), but I did that because we assume that it
doesn't fail and GTK returns a sane default anyways.

Differential Revision: https://phabricator.services.mozilla.com/D142199
2022-03-29 17:50:58 +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
Miko Mynttinen 4ad7ade1e9 Bug 1697979 - Part 2: Adjust test expectations r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D133200
2022-01-22 02:37:31 +00:00
Mitchell Hentges 0116a8d491 Bug 1748737: Update deprecated pytest code r=webdriver-reviewers,ahal,whimboo
`pytest` is about to be upgraded, so this patch resolves a bunch of the
issues currently blocking the upgrade.
Most changes done in this patch are described in the "deprecations" page
on the pytest docs:
https://docs.pytest.org/en/latest/deprecations.html#using-class-in-custom-collectors

One undocumented change is that defining a pytest argument as the same name as an
in-scope, imported fixture function, will no longer use that imported function.

Differential Revision: https://phabricator.services.mozilla.com/D136537
2022-01-21 18:21:55 +00:00
Alexandru Michis ae4456b8b6 Backed out 3 changesets (bug 1697979) for causing reftest failures in retained-dl-displayport-1.html
Backed out changeset e4248d811360 (bug 1697979)
Backed out changeset db3882cc536c (bug 1697979)
Backed out changeset ea7ce38abaab (bug 1697979)
2022-01-21 04:01:27 +02:00
Miko Mynttinen d0f3aa6702 Bug 1697979 - Part 2: Adjust test expectations r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D133200
2022-01-21 00:43:34 +00:00