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

1515 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 706ceffb4b Bug 1665125 - Make print background settings infallible. r=bobowen
This makes callers simpler.

Differential Revision: https://phabricator.services.mozilla.com/D90285
2020-09-16 11:21:41 +00:00
Emilio Cobos Álvarez 4490a1b6b1 Bug 1665001 - Ensure unwriteable margins are zero for print reftests. r=bobowen
It seems on OSX the default is somehow not zero. This matches
equivalent code for regular paged reftests in
layout/tools/reftest/reftest-content.js

MANUAL PUSH: Orange fix

CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D90280
2020-09-15 17:37:41 +02:00
Timothy Nikkel a7adf2b1c8 Bug 1663532. Support setting/clearing prefs that don't have a default value in the reftest harness. r=kats
In order to fix bug 1657822 we need to run some reftests with the pref ui.useOverlayScrollbars. This preference doesn't have a default value (it is not set by anything on desktop, it appears only in mobile/android/app/mobile.js and when we set the pref for some mochitests, the look and feel code looks at this pref, which is how we almost (?) always query for overlay scrollbars.). The reftest harness doesn't currently handle this because it gets the current value first and doesn't expect the pref to not exist.

Differential Revision: https://phabricator.services.mozilla.com/D89399
2020-09-08 08:45:56 +00:00
Christoph Kerschbaumer c6241df6d4 Bug 1661672: Remove use of security.view-source.reachable-from-inner-protocol r=Gijs,emilio
Differential Revision: https://phabricator.services.mozilla.com/D89163
2020-09-07 13:51:44 +00:00
Geoff Brown a2e1392505 Bug 1390884 - Enable all test-verify chaos modes except TimerScheduling; r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D89214
2020-09-02 21:13:40 +00:00
Jonathan Kew 936d5b55b1 Bug 1533462 - Execute the deferred font-info loader immediately when running reftests, to avoid intermittent issues due to async completion triggering an extra reflow mid-test. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87194
2020-08-21 14:28:50 +00:00
Lee Salzman 336b9f7a61 Bug 1657498 - report Software WebRender in about:support. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87122
2020-08-14 22:30:05 +00:00
Ricky Stewart 31755b431d Bug 1657650 - Require that Mach command providers subclass MachCommandBase. r=remote-protocol-reviewers,marionette-reviewers,maja_zf,mhentges,froydnj
Today we don't require that `mach` `CommandProvider`s subclass from any particular parent class and we're very lax about the requirements they must meet. While that's convenient in certain circumstances, it has some unfortunate implications for feature development.

Today the only requirements that we have for `CommandProvider`s are that they have an `__init__()` method that takes either 1 or 2 arguments, the second of which must be called `context` and is populated with the `mach` `CommandContext`. Again, while this flexibility is occasionally convenient, it is limiting. As we add features to `mach`, having a better idea what the shape of our `CommandProvider`s are and how we can instantiate them and use them is increasingly important, and this gives us additional control when having `mach` configure `CommandProvider`s based on data that is only available at the `mach` level. In particular, we plan to leverage this in bugs 985141 and 1654074.

Here we add validation to the `CommandProvider` decorator to ensure all classes inherit from `MachCommandBase`, update all `CommandProvider`s in-tree to inherit from `MachCommandBase`, and update source and test code accordingly.

Follow-up work: we now require (de facto) that the `context` be populated with a `topdir` attribute by the `populate_context_handler` function, since instantiating the `MachCommandBase` requires a `topdir` be provided. This is fine for now in the interest of keeping this patch reasonably sized, but some additional refactoring could make this cleaner.

Differential Revision: https://phabricator.services.mozilla.com/D86255
2020-08-07 18:24:59 +00:00
Matt Woodrow b31970d899 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 02:19:08 +00:00
Cosmin Sabou 38cd82e194 Backed out 8 changesets (bug 1656813) for reftest failures on bipbop_300_215kbps.mp4.lastframe.html.
Backed out changeset 92e0209dc7f1 (bug 1656813)
Backed out changeset 1b3842f2ca27 (bug 1656813)
Backed out changeset efed1b35fe47 (bug 1656813)
Backed out changeset d1c313ebe358 (bug 1656813)
Backed out changeset 4d6a3bf61345 (bug 1656813)
Backed out changeset 060254b3ad73 (bug 1656813)
Backed out changeset 37e5e5e6593a (bug 1656813)
Backed out changeset 12c0e9554a5f (bug 1656813)
2020-08-05 04:52:20 +03:00
Matt Woodrow 1885d56be1 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 00:54:23 +00:00
Jonathan Watt b7e932192e Bug 1652270. Convert nsFrameLoader::Print to return a Promise. r=farre,remote-protocol-reviewers,marionette-reviewers,jgraham,whimboo,mixedpuppy
(Instead of requiring callers to pass an nsIWebProgressListener.)

Differential Revision: https://phabricator.services.mozilla.com/D83249
2020-07-22 23:17:45 +00:00
Bob Clary 010a210fff Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-17 20:48:38 +00:00
Narcis Beleuzu b1faa2872a Backed out 17 changesets (bug 1486004) for wrench bustage on android.py . CLOSED TREE
Backed out changeset cae730f105d7 (bug 1486004)
Backed out changeset e0094d50a315 (bug 1486004)
Backed out changeset 424425ed98c6 (bug 1486004)
Backed out changeset 551232749abe (bug 1486004)
Backed out changeset 505747095def (bug 1486004)
Backed out changeset 5b1c62c4a4d5 (bug 1486004)
Backed out changeset 0a1c8d50ee69 (bug 1486004)
Backed out changeset 6ef81c676859 (bug 1486004)
Backed out changeset 234e55153fb6 (bug 1486004)
Backed out changeset 2f33b309d746 (bug 1486004)
Backed out changeset 48947692c176 (bug 1486004)
Backed out changeset 473bac8eedd9 (bug 1486004)
Backed out changeset af6afed0a04a (bug 1486004)
Backed out changeset a0e2f91eb4d4 (bug 1486004)
Backed out changeset 138c987440c7 (bug 1486004)
Backed out changeset 6d2e305f4722 (bug 1486004)
Backed out changeset 1181ff03bb05 (bug 1486004)
2020-07-17 23:43:57 +03:00
Bob Clary 9cafc708a0 Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-16 21:32:53 +00:00
Kartikaya Gupta e01dd52f41 Bug 1650438 - Add some docs about reftest-[no-]display-list. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D82215
2020-07-16 15:56:34 +00:00
Narcis Beleuzu 1eb115035d Backed out 20 changesets (bug 1486004, bug 1653094) for wrench bustages. CLOSED TREE
Backed out changeset 120c64ebdea3 (bug 1486004)
Backed out changeset b10f105b1c36 (bug 1486004)
Backed out changeset 7f186e6bcccc (bug 1486004)
Backed out changeset cdda7b349cd8 (bug 1486004)
Backed out changeset 650c47e81402 (bug 1486004)
Backed out changeset 2bcca7cf3f1b (bug 1486004)
Backed out changeset e1df276f8a8d (bug 1486004)
Backed out changeset f6f5e7f2bd0a (bug 1486004)
Backed out changeset 1c56cb03ce53 (bug 1486004)
Backed out changeset 582cd190f174 (bug 1486004)
Backed out changeset 7c162e1b3a79 (bug 1486004)
Backed out changeset d1088e178216 (bug 1486004)
Backed out changeset 40763f4afd26 (bug 1486004)
Backed out changeset f20eb5b5a670 (bug 1486004)
Backed out changeset 6349ee0bd63f (bug 1486004)
Backed out changeset 7c23729053f6 (bug 1486004)
Backed out changeset 49586014bd29 (bug 1486004)
Backed out changeset 07971e82ae85 (bug 1653094)
Backed out changeset 47e7295e9c19 (bug 1653094)
Backed out changeset 57a25bbeec37 (bug 1653094)
2020-07-16 17:58:09 +03:00
Bob Clary 0dca9b22c0 Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-15 20:58:02 +00:00
Mihai Alexandru Michis a1d49fb98d Backed out 17 changesets (bug 1486004) for causing bustages in AccessCheck.h
CLOSED TREE

Backed out changeset 86a0855e1e45 (bug 1486004)
Backed out changeset 4fc98067edc5 (bug 1486004)
Backed out changeset 8ab3f1597fde (bug 1486004)
Backed out changeset b487e98320fb (bug 1486004)
Backed out changeset 4cba8e6bc515 (bug 1486004)
Backed out changeset d0db5eef2343 (bug 1486004)
Backed out changeset 50285a87de6b (bug 1486004)
Backed out changeset 9730c0303810 (bug 1486004)
Backed out changeset 140a9d2362f3 (bug 1486004)
Backed out changeset 9d1ce06f6039 (bug 1486004)
Backed out changeset 88a5a4ab39fa (bug 1486004)
Backed out changeset eb186c92232d (bug 1486004)
Backed out changeset 677f2129750e (bug 1486004)
Backed out changeset 81427a5f2103 (bug 1486004)
Backed out changeset 38d7def3d425 (bug 1486004)
Backed out changeset a9e73221c471 (bug 1486004)
Backed out changeset ebe8c2d5432e (bug 1486004)
2020-07-16 15:29:29 +03:00
Bob Clary 69ce0e974b Bug 1486004 - Part 5 - Update reftests to support unrooted android devices using mozdevice 4.0.0, ? r=jmaher
Depends on D82747

Differential Revision: https://phabricator.services.mozilla.com/D82748
2020-07-15 20:58:02 +00:00
Emilio Cobos Álvarez d275fd6251 Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt
This hooks the "monochrome" media query and co to the
nsIPrintSettings.printInColor setting.

This print setting we're using is not exposed in the print preview UI,
but you can test it setting the print.print_in_color preference to
"false", and then print preview will correctly show up greyscale'd.

Once this lands, the UI folks just have to use it as they see fit :)

I would've liked to add a proper rendering test, but the print reftests
check only whether the PDF text matches.

I could add a test to printpreview_helper.xhtml, but I'm refactoring
that file in bug 1648064 so I'd rather wait a bit and add it in a
separate bug. The test for the media feature should make sure that we
test that code path at least.

Differential Revision: https://phabricator.services.mozilla.com/D83552
2020-07-15 03:45:33 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Geoff Brown 734bc97c35 Bug 1650410 - Tolerate psutil import failure in android reftests; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D82242
2020-07-06 14:05:50 +00:00
Hiroyuki Ikezoe 10242eeaf4 Bug 1646629 - Set updateCanvasPending explicitly when reftest-wait was removed and take a snapshot of the whole screen if reftest-no-flush is specified. r=mattwoodrow,tnikkel
That's because we no longer fire MozAfterPaint event for changes by
animations on the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D80157
2020-07-04 08:01:40 +00:00
Kartikaya Gupta 2876150741 Bug 1648742 - Make the reftest-analyzer render TEST-KNOWN-INTERMITTENT-FAIL screenshots. r=jgraham
Also it will understand TEST-KNOWN-INTERMITTENT-PASS, but not render those by
default since they're passing.

Differential Revision: https://phabricator.services.mozilla.com/D81314
2020-06-26 12:26:57 +00:00
Daosheng Mu af1368e7aa Bug 1602072 - Add a gfxInfo flag determine Firefox is embedded by FxR for telemetry. r=thomasmo,chutten,froydnj,jrmuizel,geckoview-reviewers,rbarker,snorp
Differential Revision: https://phabricator.services.mozilla.com/D56233
2020-06-25 17:22:20 +00:00
Geoff Brown 04295788b2 Bug 1622436 - Support --enable-fission option in reftest harness and reftest family mach commands; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D78570
2020-06-08 19:20:45 +00:00
Hiroyuki Ikezoe 3dafe26062 Bug 1641733 - Trigger print via FrameLoader.print in the parant process instead of in the content process. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D78214
2020-06-04 21:09:30 +00:00
Bob Clary f5e7f65c90 Bug 1642661 - jsbrowsertest should error if --enable-js-shell isn't set, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D78340
2020-06-04 19:01:05 +00:00
Matt Woodrow 5b6028fd46 Bug 1620679 - Use web progress listener for detecting load end in reftest-content.js. r=kmag,tnikkel
The previous patch stops us from firing the load event if we abort a load. We have a few crashtests that abort loads (either by directly calling stop(), or by starting a new navigation before load completes).

This switches the reftest harness to use web progress to determine when we've finished loading a test.

Differential Revision: https://phabricator.services.mozilla.com/D73995
2020-05-30 17:19:54 +00:00
Geoff Brown 077744cb37 Bug 1641255 - Remove bad WindowListener reference from android reftest harness; r=jya
WindowListener was removed in bug 1632098, but this reference was left behind.

Differential Revision: https://phabricator.services.mozilla.com/D77098
2020-05-28 04:26:57 +00:00
Joel Maher 9e0ee8988a Bug 1641160 - add support for isCoverageBuild in reftests. r=gbrown
add support for isCoverageBuild in reftests.

Differential Revision: https://phabricator.services.mozilla.com/D77139
2020-05-27 21:22:54 +00:00
Bob Clary 6a0aed7b99 Bug 1638981 - enable mach reftests to run with Python 3. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D76650
2020-05-27 13:07:07 +00:00
Butkovits Atila 1d2238af48 Backed out 2 changesets (bug 1620679) for perma Reftest failure. CLOSED TREE
Backed out changeset 8190c67514cc (bug 1620679)
Backed out changeset 4ca2912d7421 (bug 1620679)
2020-05-26 10:58:42 +03:00
Matt Woodrow 3254d194e7 Bug 1620679 - Use web progress listener for detecting load end in reftest-content.js. r=kmag,tnikkel
The previous patch stops us from firing the load event if we abort a load. We have a few crashtests that abort loads (either by directly calling stop(), or by starting a new navigation before load completes).

This switches the reftest harness to use web progress to determine when we've finished loading a test.

Differential Revision: https://phabricator.services.mozilla.com/D73995
2020-05-26 03:08:53 +00:00
Bob Owen 979bf2cc65 Bug 1627577 part 4: Enable printing restests on macOS and Windows. r=emilio
Depends on D73097

Differential Revision: https://phabricator.services.mozilla.com/D73098
2020-05-22 13:54:07 +00:00
Bob Owen 36a430874a Bug 1627577 part 1: Change printing reftests to work with remote printing. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73095
2020-05-22 12:26:56 +00:00
Mihai Alexandru Michis 19a4744fcc Backed out 2 changesets (bug 1620679) for causing failures in nsDocShell.cpp
CLOSED TREE

Backed out changeset 2957142243c5 (bug 1620679)
Backed out changeset 60df74b03f34 (bug 1620679)
2020-05-18 14:47:37 +03:00
Matt Woodrow a8977d6e64 Bug 1620679 - Use web progress listener for detecting load end in reftest-content.js. r=kmag,tnikkel
The previous patch stops us from firing the load event if we abort a load. We have a few crashtests that abort loads (either by directly calling stop(), or by starting a new navigation before load completes).

This switches the reftest harness to use web progress to determine when we've finished loading a test.

Differential Revision: https://phabricator.services.mozilla.com/D73995
2020-05-18 07:30:27 +00:00
Kartikaya Gupta 99dbd29a06 Bug 1633504 - Disable showing pixel difference numbers in the reftest analyzer. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D74791
2020-05-12 06:21:23 +00:00
Timothy Nikkel 3316760312 Bug 1634939. When forwarding afterpaint events the child could have been removed from the doc tree. r=mattwoodrow
Depends on D73565

Differential Revision: https://phabricator.services.mozilla.com/D73566
2020-05-03 21:03:30 +00:00
Timothy Nikkel 8f1f560edb Bug 1634939. |this| can be destroyed and unable to send messages in ReftestFissionChild::forwardAfterPaintEventToParent after dispatching an event. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73565
2020-05-03 20:58:39 +00:00
Oana Pop Rus 4a954448c2 Backed out changeset 94d6a3fe4b57 (bug 1625250) requested by kats - diagnostic patch. on a CLOSED TREE 2020-05-01 18:07:20 +03:00
Geoff Brown c09c016576 Bug 1634111 - Enhance search for profile data in test harnesses; r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D73105
2020-04-29 19:16:43 +00:00
Bob Clary a7055089af Bug 1611473 - fix mach reftest and mach jstestbrowser, r=gbrown.
* update paths to test manifest and user.js after Bug 1596567.
* make sure to use root=True when checking for existence of reftest.log.
* work around permissions errors when pushing to /data/local/tests.
* Properly handle symbolic links to the JavaScript tests for desktop
  and remote Android tests.

Differential Revision: https://phabricator.services.mozilla.com/D69313
2020-04-28 17:08:36 +00:00
Bob Clary 80ab483d5d Bug 1633302 - Remote android tests must use root=True appropriately when dealing with app created files, r=gbrown.
Depends on D72576

Differential Revision: https://phabricator.services.mozilla.com/D72577
2020-04-27 15:45:59 +00:00
Jean-Yves Avenard 39cb670d46 Bug 1632098 - P2. Don't rely on onOpenWindow to determine when we can start. r=kmag
The startup script starts by searching a window by its type; how the window type parameter is only available once the window's document element has been created.
The main window has already been created however and it is in an in-between state which means that you can't find it by its type nor will domwindowcreated be fired.

So we listen to either initial-document-element-inserted which indicates when it's okay to search for the main window by type again and we are ready to start the reftest.

Differential Revision: https://phabricator.services.mozilla.com/D72142
2020-04-24 06:25:51 +00:00
Jean-Yves Avenard 803c6f27d1 Bug 1632098 - P1. prettify api.js file. r=kmag
The file being in a reftest folder is by default ignored thanks to a blanket rule.

Differential Revision: https://phabricator.services.mozilla.com/D72141
2020-04-23 17:47:07 +00:00
Emilio Cobos Álvarez d36c96ab4c Bug 1612068 - Move zoom from the content viewer to the browsing context. r=nika
We need it to live in BrowsingContext instead of WindowContext, because
we need to preserve the zoom level across same-origin navigation.

It'd be nice if it only lived in the top BC, but that's not possible at
the moment because a lot of tests rely on zooming only iframes. Some of
them can be adjusted for scaling the top instead, but not sure it's
worth it's worth fixing them and moving the zoom to be top-only, as it'd
be a bunch of effort, and the complexity and overhead of propagating the
zoom is not so big.

The print-preview-specific code in nsContentViewer is from before we did
the document cloning setup, and it seems useless. I've tested print
preview scaling before and after my patch and both behave the same.

The rest is just various test changes to use the SpecialPowers APIs or
BrowsingContext as needed instead of directly poking at the content
viewer.

I named the pres context hook RecomputeBrowsingContextDependentData, as
more stuff should move there like overrideDPPX and other media emulation
shenanigans.

I also have some ideas to simplify or even remove ZoomChild and such,
but that's followup work.

Differential Revision: https://phabricator.services.mozilla.com/D71969
2020-04-22 19:32:52 +00:00
Tooru Fujisawa 2108f90fcf Bug 1623965 - Improve error message when binary not found while testing. r=glandium,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,Bebe,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D67726
2020-04-21 11:58:04 +00:00