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

1755 Коммитов

Автор SHA1 Сообщение Дата
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
Cameron McCormack 1e8189c0f1 Bug 1640537 - Improve style sheet dumping in the layout debugger. r=TYLin
Make it show the contents of style sheets (as it used to before Stylo)
and make it work in --disable-debug --enable-layout-debugger builds.

Differential Revision: https://phabricator.services.mozilla.com/D76640
2020-05-26 23:07:36 +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
Cameron McCormack 0d5684a3a8 Bug 1639419 - Enable frame tree dumps whenever the layout debugger is enabled. r=TYLin,glandium
Differential Revision: https://phabricator.services.mozilla.com/D76076
2020-05-20 23:44:49 +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
Botond Ballo f037b67019 Bug 1629732 - Fix non-unified build errors in layout/tools. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D71846
2020-04-22 00:10:55 +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
aarushivij 58b3a02016 Bug 1631439 - Rewrite callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...) r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D71579
2020-04-20 15:42:03 +00:00
Geoff Brown e245496607 Bug 1612345 - Ensure that most custom retriggers repeat the original task by default; r=bc
Various updates to the custom retrigger action so that, without any custom changes to
parameters, the retriggered task runs with the same parameters as the original task.
Several issues were found and corrected, notably:
 - parameters like --allow-software-gl-layers were ignored
 - MOZHARNESS_TEST_PATHS was ignored
 - many parameter customizations in the desktop mozharness configs were ignored
 - mochitest suite/subsuite/flavor selection was not always correct
 - using repeat=1 by default meant that each test ran twice

Differential Revision: https://phabricator.services.mozilla.com/D70457
2020-04-17 22:11:02 +00:00
Kartikaya Gupta 6066dbc1b7 Bug 1625250 - Set a couple of env vars to help debug MIT-SHM error. r=jgraham
This sets the env vars when running with WR enabled in reftests or WPT,
which is where the errors seem to be manifesting.

Differential Revision: https://phabricator.services.mozilla.com/D71375
2020-04-17 18:59:14 +00:00
Andrea Marchesini 13481ea877 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-11 13:42:12 +00:00
Razvan Maries b74e338c98 Backed out 6 changesets (bug 1363541) for perma failures. CLOSED TREE
Backed out changeset a775f6e9eb41 (bug 1363541)
Backed out changeset 9212bfd89eca (bug 1363541)
Backed out changeset bf41b0c139f6 (bug 1363541)
Backed out changeset aa7c6668b249 (bug 1363541)
Backed out changeset 9f413a8a47bb (bug 1363541)
Backed out changeset 827a9a2866bd (bug 1363541)

--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 11:31:20 +03:00
Andrea Marchesini b523b552a4 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 22:08:02 +00:00
Coroiu Cristina d37de5ed78 Backed out 6 changesets (bug 1363541) for browser-chrome failures at browser/base/content/test/performance/browser_startup_mainthreadio.js on a CLOSED TREE
Backed out changeset 947073be919f (bug 1363541)
Backed out changeset 1f397b686c11 (bug 1363541)
Backed out changeset d2ba944a47a3 (bug 1363541)
Backed out changeset 80d4d1f0c921 (bug 1363541)
Backed out changeset 9d6b9052f413 (bug 1363541)
Backed out changeset aeaa10789071 (bug 1363541)

--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 01:00:15 +03:00
Andrea Marchesini 8764c55c53 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 13:27:35 +00:00
Ting-Yu Lin 014e9adb5c Bug 1627398 Part 3 - Add a menu item in layout debugger to dump frames in CSS pixels. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D69916

--HG--
extra : moz-landing-system : lando
2020-04-08 00:29:36 +00:00
Bob Clary 9bcd644524 Bug 1611473 - fix desktop mach jstestbrowser by updating paths to test manifest and user.js after Bug 1596567, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D69312

--HG--
extra : moz-landing-system : lando
2020-04-02 19:13:47 +00:00
Andrea Marchesini 9bea58365a Bug 1624146 - Cookie code refactoring - part 10 - CookieService under mozilla::net, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67759

--HG--
rename : netwerk/cookie/nsCookieService.cpp => netwerk/cookie/CookieService.cpp
rename : netwerk/cookie/nsCookieService.h => netwerk/cookie/CookieService.h
extra : moz-landing-system : lando
2020-04-06 12:26:14 +00:00
Andrea Marchesini 42df52a06f Bug 1624146 - Cookie code refactoring - part 3 - CookiePermission, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67752

--HG--
rename : netwerk/cookie/nsCookiePermission.cpp => netwerk/cookie/CookiePermission.cpp
rename : netwerk/cookie/nsCookiePermission.h => netwerk/cookie/CookiePermission.h
extra : moz-landing-system : lando
2020-04-06 12:22:57 +00:00
Geoff Brown d46135408b Bug 1598746 - Adjust some mochitest and reftest SCHEDULES.exclusive entries; r=ahal
Use finer granularity for some reftest/mochitest SCHEDULES.exclusive entries,
so that reftest-plain does not run when only crashtests are modified, and
vice versa; similarly, break up mochitest into mochitest/browser-chrome/chrome/
a11y. Use schedules-component instead of category.

Differential Revision: https://phabricator.services.mozilla.com/D60085

--HG--
extra : moz-landing-system : lando
2020-03-24 14:55:28 +00:00
Geoff Brown 534483c227 Bug 1177545 - Remove automation.py.in entirely; r=egao,bc
Remove the remainder of automation.py.in and the build support for generating
automation.py.
Some of this functionality was in use, especially for android tests.
Some code was moved or re-implemented in remoteautomation.py or in the affected
harness(es). Some features were removed: There are some minor changes in behavior.
For instance, instead of using a different server startup timeout for debug builds,
one value is used for all builds (due to performance improvements over time,
the longer timeout is no longer needed).

Differential Revision: https://phabricator.services.mozilla.com/D66839

--HG--
extra : moz-landing-system : lando
2020-03-17 19:06:34 +00:00
Simon Giesecke 8aa47bcfb7 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in layout. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D66016

--HG--
extra : moz-landing-system : lando
2020-03-17 09:38:32 +00:00
Nicholas Nethercote ee6065433a Bug 1622712 - Fix incorrect path to `crashreporter-symbols` in `mach reftest`. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D66919

--HG--
extra : moz-landing-system : lando
2020-03-16 22:57:40 +00:00
Emilio Cobos Álvarez 14521d064e Bug 1622093 - Fix print reftests. r=dholbert
These have been broken for a while, because we don't run them on automation...

The way we import PDFJS in reftest.jsm was broken. And PDFJS updates caused
breakage.

Differential Revision: https://phabricator.services.mozilla.com/D66669

--HG--
extra : moz-landing-system : lando
2020-03-16 04:35:14 +00:00
Brendan Dahl a1088aa304 Bug 1566930 - Default to auto install on the various android mach commands. r=gbrown,perftest-reviewers,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D64230

--HG--
extra : moz-landing-system : lando
2020-03-13 20:48:52 +00:00
Geoff Brown 313e12e535 Bug 1177545 - Cleanup automation.py.in; r=egao
Remove unused code from automation.py.in, move some android-specific code from
automation.py.in to remoteautomation.py, and eliminate some other easily-replaced
code. In the long term we want to eliminate automation.py.in completely; I may
attempt that once these changes have landed.

Differential Revision: https://phabricator.services.mozilla.com/D66306

--HG--
extra : moz-landing-system : lando
2020-03-10 21:42:26 +00:00
Mike Shal d6e9df170e Bug 1620744 - Convert test_archive action to py3; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65858

--HG--
extra : moz-landing-system : lando
2020-03-10 20:19:49 +00:00
Daniel Varga 09acd57d19 Backed out 13 changesets (bug 1620744) for causing diffoscope failures firefox/browser/chrome/browser/content/browser/built_in_addons.json
CLOSED TREE

Backed out changeset 6beda54bcb9b (bug 1620744)
Backed out changeset a1e97f0b91ef (bug 1620744)
Backed out changeset b8faa0184d4f (bug 1620744)
Backed out changeset 3bc8fda68107 (bug 1620744)
Backed out changeset 8e95b21b2ae3 (bug 1620744)
Backed out changeset 1de09de1a802 (bug 1620744)
Backed out changeset 622a2f7414fa (bug 1620744)
Backed out changeset 3372c9ab721c (bug 1620744)
Backed out changeset 0997313a9f99 (bug 1620744)
Backed out changeset 2fa34749bbfa (bug 1620744)
Backed out changeset 6d597d2eb792 (bug 1620744)
Backed out changeset 78e78f7c7b26 (bug 1620744)
Backed out changeset 6e4d85b19f88 (bug 1620744)
2020-03-10 21:13:18 +02:00
Mike Shal d181929c22 Bug 1620744 - Convert test_archive action to py3; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65858

--HG--
extra : moz-landing-system : lando
2020-03-09 22:02:50 +00:00
Andrew Halberstadt a9dd0b2e3e Bug 1325207 - [reftest] Stop treating 'skip/skip-if' as a failure type in the manifests r=kats
Currently the RefTest manifest parser has 5 possible statuses:

0 => EXPECTED_PASS
1 => EXPECTED_FAIL
2 => EXPECTED_RANDOM
3 => EXPECTED_DEATH   (aka skip)
4 => EXPECTED_FUZZY

In the manifests, the last status annotation that appears on the line will take
precedence. For example:

    skip-if(true) fails-if(true) == test1.html ref.html
    fails-if(true) skip-if(true) == test2.html ref.html

The first test will have an expected status equal to EXPECTED_FAIL, whereas the
second one will be EXPECTED_DEATH. The same holds true for any combination of
'fail/random/skip/fuzzy' annotations. This means developers need to be very
careful about the order they specify these annotations as getting the order
wrong can easily lead to unexpected behaviour.

With the introduction of defaults in bug 1616368, the risk of unexpected behaviour
is far greater. Since defaults are simply prepended to the test line, a manifest
that looks like:

    defaults skip-if(true)
    == test1.html ref.html
    fails-if(true) == test2.html ref.html

will actually skip the first test, but run the second (since the fails-if
overwrites EXPECTED_DEATH with EXPECTED_FAIL).

The root of the problem appears to be that 'skip' and 'fuzzy' are not actually
test statuses. They are modifiers that affect how we run the test, but don't
actually affect whether the test is expected to pass or fail.

Therefore, this patch solves the problem by making 'skip/skip-if' its own thing
that does not get overwritten by other failure types. In otherwords, a 'skip-if'
can appear before or after a 'fails-if' and it will have the same meaning.

Differential Revision: https://phabricator.services.mozilla.com/D64457

--HG--
extra : moz-landing-system : lando
2020-03-09 15:20:11 +00:00
Timothy Nikkel 5c0874aab0 Bug 1615505. Forward MozAfterPaint events from child processes to the reftest harness. r=kmag,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D62859

--HG--
extra : moz-landing-system : lando
2020-02-28 12:06:27 +00:00