Commit Graph

1723 Commits

Author SHA1 Message Date
Gabriele Svelto
69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
Matt Woodrow
5e1f228a7d Bug 1599662 - Add process switching to the reftest harness so that we can get better coverage for fission. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D55568

--HG--
extra : moz-landing-system : lando
2019-12-04 08:57:11 +00:00
Gurzau Raul
4246729646 Backed out 2 changesets (bug 1599662) for multiple reftest failures e.g. downscale-moz-icon-1.html on a CLOSED TREE.
Backed out changeset 1a5918cfe128 (bug 1599662)
Backed out changeset a7b980e65413 (bug 1599662)
2019-12-04 03:54:27 +02:00
Matt Woodrow
8ca80cd1af Bug 1599662 - Add process switching to the reftest harness so that we can get better coverage for fission. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D55568

--HG--
extra : moz-landing-system : lando
2019-12-03 22:18:45 +00:00
Bert Peers
7f8678c11a Bug 1596786 - Arrow keys support for reftest-analyzer r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D53220

--HG--
extra : moz-landing-system : lando
2019-11-27 21:15:51 +00:00
Geoff Brown
253aaf1570 Bug 1599587 - Adjust android mochitest/reftest logging; r=jmaher
Guard against flaky results from the remote is_file and reduce adb traffic
by waiting once for the log file to be created rather than checking for it
throughout the test run.
(Minor ride-along change to reftest.jsm resolves javascript error introduced
by bug 1575266.)

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

--HG--
extra : moz-landing-system : lando
2019-11-27 21:33:38 +00:00
Cameron McCormack
36e13da4fc Bug 1599294 - Fix URL used for opening layout debugger from the command line. r=dholbert,emilio
Differential Revision: https://phabricator.services.mozilla.com/D54644

--HG--
extra : moz-landing-system : lando
2019-11-26 00:35:18 +00:00
Botond Ballo
83bfe6cee0 Bug 1590857 - Don't prompt to install Android app if the user is running 'mach install'. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D54381

--HG--
extra : moz-landing-system : lando
2019-11-25 22:17:59 +00:00
Gabriele Svelto
9283d5f034 Bug 1598258 - Add a list of additional minidumps to the event delivered when a plug-in crashes r=froydnj
This patch adds a new field to the `plugin-crashed` event that holds the list
of additional minidumps associated with a crash report. The test
infrastructure is modified to use it which also fixes a race when processing
the .extra file. The reftest machinery has also been modified to take the new
field into account.

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

--HG--
extra : moz-landing-system : lando
2019-11-22 07:30:23 +00:00
Emma Malysz
273aab2e2a Bug 1596884, replace remaining .xul files in layout/tools with .xhtml r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D53898

--HG--
rename : layout/tools/layout-debug/ui/content/layoutdebug.xul => layout/tools/layout-debug/ui/content/layoutdebug.xhtml
rename : layout/tools/recording/recording.xul => layout/tools/recording/recording.xhtml
rename : layout/tools/reftest/reftest.xul => layout/tools/reftest/reftest.xhtml
extra : moz-landing-system : lando
2019-11-20 20:40:32 +00:00
Timothy Nikkel
a43e37dbe9 Bug 1593170. Check if contentRootElement is a dead wrapper before using it. r=mattwoodrow,dbaron
With the fission changes everything is more async, meaning some tests can run longer. Some crashtests navigate to a new location meaning the original root element we have a variable for is no longer around, and chrome isn't allowed to keep content nodes alive, so we are left holding a dead wrapper that throws if we try to access anything on it.

So we check if contentRootElement has become a dead wrapper (and null it out) any time we try to access it and it could have become dead. Generally the existing code already handled a null contentRootElement.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 11:27:00 +00:00
Timothy Nikkel
c650cc8186 Bug 1593170. Avoid useless painting work in queued up rects to paint by ignoring new rects that are already covered. r=mattwoodrow
I don't think this is strictly necessary but it lets us avoid a bunch of useless work, especially with webrender where these rects are always the full window size.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 11:26:45 +00:00
Timothy Nikkel
87226fdf3b Bug 1593170. Adjust how we deal with the reftest events for async plugin drawing for the fission changes to the reftest harness. r=mattwoodrow
The long code comment explains.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 11:26:33 +00:00
Timothy Nikkel
3566a45a32 Bug 1593170. Make the reftest harness deal with SynchronizeForSnapshot and FlushRendering returning promises. r=mattwoodrow
The code comment mostly explains the design. Basically, we force nothing to happen while we wait for the promises to finish and instead record what we need to do once the promise is finished, and do those pending tasks when it's finished.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 11:26:20 +00:00
Timothy Nikkel
7587502593 Bug 1593170. Make the reftest-content.js functions FlushRendering and SynchronizeForSnapshot work on Fission child oop iframes. r=mattwoodrow,kmag
This changes them to return a promise that resolves when the work is done, but we still need to change the callers to handle this new return type and do the right thing when these functions do their work async-ly.

To do this we add a JSWindowActor called ReftestFission. reftest-content.js communicates with this actor via reftest.jsm.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 11:25:11 +00:00
Alexander Surkov
40f1b26958 Bug 1594122 - remove skip xbl tests option r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D53262

--HG--
extra : moz-landing-system : lando
2019-11-15 20:33:32 +00:00
Arthur Iakab
3e63c29465 Backed out 8 changesets (bug 1593170) for causing mass reftest failures. CLOSED TREE
Backed out changeset 2c98625f235b (bug 1593170)
Backed out changeset 39d63ae4d287 (bug 1593170)
Backed out changeset 2c8e57a90cb8 (bug 1593170)
Backed out changeset d511975b764e (bug 1593170)
Backed out changeset a10072d821e5 (bug 1593170)
Backed out changeset 80bd8cadf835 (bug 1593170)
Backed out changeset a004de649342 (bug 1593170)
Backed out changeset 78d380a2241a (bug 1593170)
2019-11-18 04:07:19 +02:00
Timothy Nikkel
c0fa0a7a0e Bug 1593170. Check if contentRootElement is a dead wrapper before using it. r=mattwoodrow,dbaron
With the fission changes everything is more async, meaning some tests can run longer. Some crashtests navigate to a new location meaning the original root element we have a variable for is no longer around, and chrome isn't allowed to keep content nodes alive, so we are left holding a dead wrapper that throws if we try to access anything on it.

So we check if contentRootElement has become a dead wrapper (and null it out) any time we try to access it and it could have become dead. Generally the existing code already handled a null contentRootElement.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 00:49:07 +00:00
Timothy Nikkel
d81e1df1af Bug 1593170. Avoid useless painting work in queued up rects to paint by ignoring new rects that are already covered. r=mattwoodrow
I don't think this is strictly necessary but it lets us avoid a bunch of useless work, especially with webrender where these rects are always the full window size.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 00:45:46 +00:00
Timothy Nikkel
6f7bbcfd74 Bug 1593170. Adjust how we deal with the reftest events for async plugin drawing for the fission changes to the reftest harness. r=mattwoodrow
The long code comment explains.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 00:45:33 +00:00
Timothy Nikkel
36a23c3f84 Bug 1593170. Make the reftest harness deal with SynchronizeForSnapshot and FlushRendering returning promises. r=mattwoodrow
The code comment mostly explains the design. Basically, we force nothing to happen while we wait for the promises to finish and instead record what we need to do once the promise is finished, and do those pending tasks when it's finished.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 00:45:25 +00:00
Timothy Nikkel
c8fc6a9ab7 Bug 1593170. Make the reftest-content.js functions FlushRendering and SynchronizeForSnapshot work on Fission child oop iframes. r=mattwoodrow,kmag
This changes them to return a promise that resolves when the work is done, but we still need to change the callers to handle this new return type and do the right thing when these functions do their work async-ly.

To do this we add a JSWindowActor called ReftestFission. reftest-content.js communicates with this actor via reftest.jsm.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 00:45:07 +00:00
Timothy Nikkel
d714373537 Bug 1596052. If the SendUpdateCanvasForEvent call is for a previous test then ignore it. r=mattwoodrow
This is basically what we did in bug 1593171 (Protect against the same test from calling RecordResult more than once in the reftest harness) where we early exit in SendInitCanvasWithSnapshot.

But now we do it in SendUpdateCanvasForEvent too because SendUpdateCanvasForEvent calls SynchronizeForSnapshot which calls setupAsyncScrollOffsets and setupAsyncZoom, both of which get the documentElement of the current doc and operate on it. The problem is that this could be SendUpdateCanvasForEvent call from the previous test operating on the dom of the current test.

I haven't actually observed this, just noticed it while implementing checking of contentRootElement to make sure all cases are covered.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 22:41:19 +00:00
Timothy Nikkel
42fbc5152d Bug 1596049. Calling CheckForProcessCrashExpectation needs to pass contentRootElement otherwise it does nothing. r=mattwoodrow
Depends on D52827

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

--HG--
extra : moz-landing-system : lando
2019-11-13 23:15:39 +00:00
Jon Coppeard
b439b62977 Bug 1595500 - Create reftest sandboxes on demand since they are often not required r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D52543

--HG--
extra : moz-landing-system : lando
2019-11-11 15:47:36 +00:00
Jamie Nicol
43f7b982f2 Bug 1590805 - Add "emulator" and "device" conditions to reftest sandbox. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D51296

--HG--
extra : moz-landing-system : lando
2019-11-08 22:05:50 +00:00
Brian Grinstead
d981495450 Bug 1593119 - Remove dom/xbl and the MOZ_XBL build option r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D51338

--HG--
extra : moz-landing-system : lando
2019-11-07 00:35:32 +00:00
Geoff Brown
968cf06036 Bug 1592608 - Add more fields to ReftestManifest test descriptions; r=ahal,froydnj
Add test annotations to the ReftestManifest and TestResolver. For example, a
test description from the TestResolver might now contain 'skip-if': 'skiaContent';
similar to the content provided for manifestparser tests; this will allow
'mach test-info report' to filter tests based on reftest manifest test
annotations.
Also add the referenced-test field which identifies the test file associated
with test entries for reference files; this will allow test-verify to
run the correct reftest when only the reference file has been modified.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 17:09:41 +00:00
Geoff Brown
f7081f87f0 Bug 1575266 - Explicitly close reftest log file before quitting application; r=ahal
A speculative fix for intermittent android reftest failures in which the reftest log file
is incomplete but the missing logging is found in the logcat: I hope that closing the
log file explicitly will ensure logging is flushed before the application quits.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 22:45:48 +00:00
Timothy Nikkel
c6fc2ec62c Bug 1593171. Protect against the same test from calling RecordResult more than once in the reftest harness. r=mattwoodrow
Some crashtests call window.location.reload one or more times. Each time the test document loads we call OnDocumentLoad, and each call of that function can lead to a RecordResult call, either directly or indirectly through WaitForTestEnd and its MakeProgress state machine.

Although the error when this happens ("program error managing timeouts") is confusing I found a couple intermittent instances of this happening in our bugzilla.

However with the fission changes to the reftest harness (which in general make things more async) this is much more common because we keep the tests alive longer before tearing down the test page, giving it more of a chance to happen.

To fix it we pass around the top level test url so it can make its way to RecordResult. This means we can ignore RecordResult calls for previous tests, and ignore the second or more RecordResult call for the current test. We reset the count when we start a new test.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 19:48:58 +00:00
Ting-Yu Lin
fe7aba788d Bug 1590185 Part 3 - Add --paged command line argument to layout debugger. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D49994

--HG--
extra : moz-landing-system : lando
2019-10-29 19:51:44 +00:00
Ting-Yu Lin
0023c0c92d Bug 1590185 Part 2 - Support paged mode layout in layout debugger. r=dbaron
This patch adds a menu item in "Toggle" -> "Paged Mode". If the item is
toggled, after finishing loading the document, the document will be
forced into paged mode.

The print settings in `nsLayoutDebuggingTools::SetPagedMode()` are
similar to `setupPrintMode()` in reftest-content.js.

Remove the hack in nsDocumentViewer::InitInternal() because we don't
want to set a new document when mIsPageMode = false.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 19:51:42 +00:00
Ting-Yu Lin
3f0609ea5d Bug 1590185 Part 1 - Remove obsolete member variables in nsLayoutDebuggingTools. r=heycam
Bug 1566215 Part 3 moved these features to layoutdebug.js.
https://hg.mozilla.org/mozilla-central/rev/f84c119572a1f4d8b20ac05c0bd8cefe4fe70fef

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

--HG--
extra : moz-landing-system : lando
2019-10-29 19:51:33 +00:00
Zibi Braniecki
e91fc59641 Bug 1591570 - Remove contenttitlesetting. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D50665

--HG--
extra : moz-landing-system : lando
2019-10-29 17:48:22 +00:00
Brian Grinstead
ec30cc58df Bug 1587142 - Remove most XBL tests in dom/ r=bzbarsky
The following tests are not removed and need to be ported to Shadow DOM:
- test_bug330925.xhtml
- test_bug372086.html
- test_bug319374.xhtml

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

--HG--
extra : moz-landing-system : lando
2019-10-25 22:38:08 +00:00
Geoff Brown
d5a1276fec Bug 1405175 - Repeat reftest --run-until-failure up to 30 times by default; r=ahal
Make reftest --run-until-failure consistent with mochitest:
if --run-until-failure requested without --repeat, repeat up to 30 times;
if --run-until-failure requested with --repeat=N, repeat up to N times.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 18:26:03 +00:00
Xidorn Quan
82cc547ab8 Bug 1578377 - Render dark scrollbars for element with dark background on Windows. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D48289

--HG--
extra : moz-landing-system : lando
2019-10-23 21:00:28 +00:00
Geoff Brown
089eb143c9 Bug 1521640 - Track assertion counts in reftest harness; r=jgraham
These assertion counts were removed (accidentally?) by bug 1321127, effectively
not tracking assertion count mismatches in the reftest harness and instead
relying on mozharness to fail tasks based on the logged error messages.
Restoring the counts ensures:
 - the reftest summary includes accurate assertion counts like
   REFTEST INFO | Unexpected: 12 (..., 11 unexpected asserts, ...)
   REFTEST INFO | Known problems: 64 (..., 31 known asserts, ...)
 - assertion mismatches cause the harness to exit with an error code so
   that the job fails even if the log parsing is broken (bug 1587139)
   or the tests are being run locally with mach.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 14:51:46 +00:00
Andrew Halberstadt
142851700b Bug 1587206 - [lint.flake8] Enable F811 across the tree, r=sylvestre
This prevents redefinition of unused variables.

Depends on D48610

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

--HG--
extra : moz-landing-system : lando
2019-10-10 18:51:20 +00:00
Brendan Dahl
a51ca19772 Bug 1510785 - Support disabling XBL related tests. r=gbrown
Adds a way for mochitest, reftest, and crashtests to skip XBL related
tests when XBL is disabled. Also, add an app constant so JS can
check whether XBL is enabled.

Depends on D45614

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

--HG--
extra : moz-landing-system : lando
2019-10-08 23:52:33 +00:00
Brindusan Cristian
225180bff0 Bug 1585217 - Fix Eslint. r=me CLOSED TREE 2019-10-02 02:00:51 +03:00
Emilio Cobos Álvarez
caccd3a1d9 Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 17:09:23 +00:00
Noemi Erli
20a7022489 Backed out changeset 3f8c2c77cd63 (bug 1585217) for failing in rowser_openLayoutDebug.js CLOSED TREE 2019-10-01 19:07:26 +03:00
Emilio Cobos Álvarez
078e5fd7fa Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 14:23:12 +00:00
Gabriele Svelto
10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
Ciure Andrei
fa4f19c71e Backed out changeset f5716082ad9c (bug 1585217) for causing ESlint failure CLOSED TREE 2019-10-01 05:51:21 +03:00
Emilio Cobos Álvarez
2b5100f2c5 Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 02:17:48 +00:00
Brian Grinstead
92fc475e5b Bug 1584306 - Replace <xul:textbox> with <html:input> in layout/tools/layout-debug/ui/content/layoutdebug.xul;r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D47329

--HG--
extra : moz-landing-system : lando
2019-09-27 17:23:31 +00:00
Paul Zuehlcke
97eafa8dd0 Bug 1402957 - Refactored remaining tests using nsIPermissionManager URI methods to principals. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D47252

--HG--
extra : moz-landing-system : lando
2019-09-27 09:48:53 +00:00
Geoff Brown
7d2245678c Bug 1583695 - Adjust Android test timeouts; r=bc
Change the taskcluster max-run-time for mochitests and reftests to use the
defaults, now that android tests no longer run anywhere near 7200 seconds.
(Also noticed some unrelated tc configuration that is obsolete - tidied that.)
Also remove the special 600 second reftest timeout for android debug reftests.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 17:03:18 +00:00
Agi Sferro
731917effd Bug 1570115 - Allow Actors to implement WebBrowserChrome. r=kmag,snorp
Differential Revision: https://phabricator.services.mozilla.com/D44052

--HG--
extra : moz-landing-system : lando
2019-09-20 18:15:18 +00:00
Agi Sferro
ebe6d184ab Bug 1570115 - Move LoadURIDelegate to Actor. r=kmag,snorp
Differential Revision: https://phabricator.services.mozilla.com/D44051

--HG--
extra : moz-landing-system : lando
2019-09-20 18:15:25 +00:00
Zibi Braniecki
38edf520dd Bug 1581204 - Remove unused DTDs from layout. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D45901

--HG--
extra : moz-landing-system : lando
2019-09-16 19:41:54 +00:00
Andrew Halberstadt
b6461aa946 Bug 1567642 - [reftest] Fix flake8 under Python 3 lint issues r=gbrown
Depends on D45415

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

--HG--
extra : moz-landing-system : lando
2019-09-10 19:15:30 +00:00
Bob Owen
94dc85db8f Bug 1577515: Add fuzz to some Canvas 2D reftests when remote canvas enabled. r=jrmuizel
This is required due to different backends being used for SVG images and canvas.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 06:51:03 +00:00
Cameron McCormack
2503e0f3c1 Bug 1577390 - Wait a bit before loading document in Layout Debugger when profiling. r=dbaron
That gives the profiler a chance to attach to a newly created content
process.  There's no API for waiting for the profiler to be ready in a
just-created process, unfortunately.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 23:12:58 +00:00
Geoff Brown
7ba1b41441 Bug 1575667 - Add --no-install option for android mach reftest and gtest; r=bc
Straight-forward addition of the --no-install option for reftest, just like
the existing option for mochitest. For gtest, I alos noticed the mach command
help needed some cleanup.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 13:45:10 +00:00
Cameron McCormack
79a431d339 Bug 1569077 - Part 3: Add --capture-profile argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39469

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:30 +00:00
Cameron McCormack
712f284101 Bug 1569077 - Part 2: Add --autoclose argument to the layout debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39468

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:28 +00:00
Cameron McCormack
7ce6716163 Bug 1569077 - Part 1: Refactor layout debugger command line handling. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D39467

--HG--
extra : moz-landing-system : lando
2019-08-25 23:38:26 +00:00
Mike Hommey
66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Hiroyuki Ikezoe
10f4aacd62 Bug 1508177 - Reftests that check scrollbars are properly appeared by the difference between visual and layout viewports. r=botond,tnikkel
scrollbars-in-landscape-content.html doesn't fail on environments where we don't
use overlay scrollbars because scrollbars for the visual viewport are not
rendered there.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 22:37:54 +00:00
Hiroyuki Ikezoe
ccb7fd1a3f Bug 1508177 - Add reftests to make sure that expanded layout viewport areas that are initially out of the visual viewport are rendered by setting resolution. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D40767

--HG--
extra : moz-landing-system : lando
2019-08-13 22:37:50 +00:00
Kristen Wright
b7b95930c5 Bug 1571544 - Convert mozilla.widget.disable-native-theme to static pref. r=njn
Converts mozilla.widget.disable-native-theme varcache pref to a static pref and updates uses of its associated global variable with the pref. This also renames the pref to widget.disable-native-theme to group with other widget prefs.

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

--HG--
extra : moz-landing-system : lando
2019-08-07 23:05:05 +00:00
L. David Baron
85cac89c70 Bug 1561792 - Rename the pref gfx.font_ahem_antialias_none to gfx.font_rendering.ahem_antialias_none to avoid the additional pref observer added in the previous patch. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D41068

--HG--
extra : moz-landing-system : lando
2019-08-07 20:46:04 +00:00
Cameron McCormack
d622a3d445 Bug 1569060 - Add layout debugger command to dump process IDs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D39437

--HG--
extra : moz-landing-system : lando
2019-08-06 23:31:55 +00:00
Geoff Brown
f7b0420fd4 Bug 1570051 - Minor updates to android mach commands; r=bc
Various cleanup:
 - remove extraneous calls to grant_runtime_permissions
 - remove unused legacy jimdb support code
 - remove "This may take a while" logging
 - emphasize x86/x86_64 capabilities of emulator

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

--HG--
extra : moz-landing-system : lando
2019-08-03 01:52:39 +00:00
Kannan Vijayan
3fb6190ec6 Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39378

--HG--
extra : moz-landing-system : lando
2019-07-26 16:48:31 +00:00
Cameron McCormack
65b43505be Bug 1569084 - Update help text to use two-dash form for --layoutdebug. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D39448

--HG--
extra : moz-landing-system : lando
2019-07-26 02:25:29 +00:00
Ting-Yu Lin
47c53c2fec Bug 1567982 - Fix command name for the reload button on layout debugger's toolbar. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D38903

--HG--
extra : moz-landing-system : lando
2019-07-22 22:57:49 +00:00
Coroiu Cristina
4436573fa3 Bug 1566215 - Fix ESlint failure on a CLOSED TREE 2019-07-22 09:27:29 +03:00
Cameron McCormack
db2d38ee9a Bug 1567328 - Improve the keyboard shortcuts in the Layout Debugger. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38582

--HG--
extra : moz-landing-system : lando
2019-07-19 18:38:47 +00:00
Cameron McCormack
bc2763a680 Bug 1566215 - Part 5: Use a remote browser in the layout debugger. r=dbaron,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D38415

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:44 +00:00
Cameron McCormack
383e501763 Bug 1566215 - Part 4: Use message manager to send layout debugger commands to content. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38414

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:37 +00:00
Cameron McCormack
3c7a36d829 Bug 1566215 - Part 3: Move debugging state management into layoutdebug.js. r=dbaron
Many of these features are non-functional these days, but I'll keep them
hooked up in case we decide to fix them.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:35 +00:00
Cameron McCormack
b92599beb1 Bug 1566215 - Part 2: Merge nsILayoutDebugger functionality into nsLayoutDebuggingTools. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38412

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:33 +00:00
Cameron McCormack
75400edc99 Bug 1566215 - Part 1: Remove some unused nsLayoutDebuggingTools code. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D38411

--HG--
extra : moz-landing-system : lando
2019-07-22 04:48:26 +00:00
Edwin Gao
29f92afa77 Bug 1562745 - Make OSX10.14 debug tests actually use debug builds. r=jmaher
As far as I can tell, the intermittent suite_start failures are due to
stdout/stderr output interleaving -- a known issue for reftest logging,
without a clear way forward. Let's work around it the same way we did
on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 16:18:20 +00:00
Brendan Dahl
28dcf95b41 Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron
386947-1.xul, now has one assertion since we take a different code
path with chrome URL's and XBL files. The assertion is triggered since the
binding is invalid.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:42 +00:00
Brendan Dahl
84f1f82f3d Bug 1557371 - Part 1 - Load all XUL reftests with chrome privilege. r=dbaron
This will have two benefits:

1) Align test setup with shipping Firefox - We don't allow content
privilege XUL in shipping versions of Firefox, so having the tests be
chrome would be more realistic to our use case.

2) Support the XUL to XHTML migration. These files will soon become XHTML
files, but will still need to load XUL elements, so they'll need to be
marked as chrome privileged to continue working.

One test (404149-1.xul) is now disabled, since it fails when loaded as
chrome. Bug 1557383 was filed to address this.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:33 +00:00
Jonathan Kingston
31441f82ea Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D35504

--HG--
extra : moz-landing-system : lando
2019-07-08 16:37:45 +00:00
Emilio Cobos Álvarez
6754f5f967 Bug 1563484 - Add reftest support for text-zoom. r=dbaron
Seems we had no reftests for this feature :(

Depends on D36893

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

--HG--
extra : moz-landing-system : lando
2019-07-05 21:33:37 +00:00
Cosmin Sabou
cddd4c6528 Backed out changeset f9c0c52368d6 (bug 1562745) for causing crashes on stream-safe-creation.any.serviceworker.html 2019-07-06 01:05:01 +03:00
Geoff Brown
bfa723f163 Bug 1562745 - Make OSX10.14 debug tests actually use debug builds. r=jmaher
As far as I can tell, the intermittent suite_start failures are due to
stdout/stderr output interleaving -- a known issue for reftest logging,
without a clear way forward. Let's work around it the same way we did
on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 12:56:54 +00:00
Victor Porof
6a261b9e77 Bug 1561435 - Format layout/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : b9cc96337c05dbb9a9f811c63dcc5fd63588d652
2019-07-05 10:50:41 +02:00
Kartikaya Gupta
a898111144 Bug 1525314 - Auto-fuzz WR on Android with maxDifference<=2. r=jmaher
Due to the sheer number of tests that exhibit a random fuzz with maxDifference=1
and maxDifference=2 with WR on Android, it's easier to just tweak the harness
to autofuzz these away. This adds machinery to do so, and also adds a new
annotation that can be used to disable the autofuzzing on specific tests.

Depends on D36794

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

--HG--
extra : moz-landing-system : lando
2019-07-04 21:35:04 +00:00
Kris Maglione
f180f12646 Bug 1560400: Part 1 - Support remote frames in Window indexed getters. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35471

--HG--
extra : rebase_source : b326799f8ced75068f7e7fec6edbd39455cdb9b1
extra : source : 84633034590f2d1a4c336f9653e6c542f3a09039
2019-06-20 13:52:55 -07:00
Mihai Alexandru Michis
761fb3a596 Backed out changeset c68a6b2e0157 (bug 1557371) for causing failures in reftest/content/bugs/272646-1.xul CLOSED TREE 2019-07-02 06:01:31 +03:00
Brendan Dahl
c5fbaae97e Bug 1557371 - Part 1 - Load all XUL reftests with chrome privilege. r=dbaron
This will have two benefits:

1) Align test setup with shipping Firefox - We don't allow content
privilege XUL in shipping versions of Firefox, so having the tests be
chrome would be more realistic to our use case.

2) Support the XUL to XHTML migration. These files will soon become XHTML
files, but will still need to load XUL elements, so they'll need to be
marked as chrome privileged to continue working.

One test (404149-1.xul) is now disabled, since it fails when loaded as
chrome. Bug 1557383 was filed to address this.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 00:04:12 +00:00
Kartikaya Gupta
32b53ae115 Bug 1558598 - Force WebRender on or off in the reftest harness. r=ahal
Covers both local and remote reftests.

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

--HG--
extra : moz-landing-system : lando
2019-06-29 09:48:45 +00:00
Masatoshi Kimura
f0e5cca26d Bug 1558750 - Use nsIConverterOutputStream to handle non-Latin1 log output. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D35149

--HG--
extra : moz-landing-system : lando
2019-06-24 13:52:37 +00:00
Geoff Brown
00c7fc4efb Bug 1560073 - Change default android package name for most mach test commands; r=snorp,nalexander,maja_zf
Use the geckoview TestRunnerActivity, org.mozilla.geckoview.test, by default
for all types of mochitests, reftests, and web-platform tests. TRA is already
the default for gtest and geckoview-junit. Fennec, based on ANDROID_PACKAGE_NAME,
remains the default for robocop and marionette-test and I have no plans to
change those. There is a related issue for xpcshell-test -- not the package
name, but the default apk -- but I am reluctant to handle that until bug 1553225
is resolved.

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

--HG--
extra : moz-landing-system : lando
2019-06-26 02:34:49 +00:00
Kartikaya Gupta
9d4b493f9c Bug 1501582 - Add a geckoview condition to the reftest sandbox. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D34537

--HG--
extra : moz-landing-system : lando
2019-06-11 16:06:41 +00:00
Botond Ballo
844bbdc53b Bug 1554790 - Add a reftest-resolution attribute. r=kats,hiro
Differential Revision: https://phabricator.services.mozilla.com/D32774

--HG--
extra : moz-landing-system : lando
2019-06-11 02:22:02 +00:00
Jason Orendorff
f9de42554c Bug 1555066 - Fix uncaught exceptions in jsreftest test harness when a content process crashes. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D32856

--HG--
extra : moz-landing-system : lando
2019-06-05 13:12:32 +00:00
Jonathan Watt
098392f093 Bug 1552785. Remove internal code for various frameset printing behaviors. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D33624

--HG--
extra : rebase_source : 336e87a05970895684602c9db3e5222918f861c8
extra : source : 98fbf1ed617549496036099b5aee333aa6b29925
2019-05-21 16:01:34 +01:00
Andrew Halberstadt
fe77911a5f Bug 1553527 - [testing] Add 'fission' to test manifest context r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D32210

--HG--
extra : moz-landing-system : lando
2019-05-24 18:41:14 +00:00
Geoff Brown
61b33e18e7 Bug 1550808 - Support reftest in sub-directory of manifest location, even on Windows; r=ahal
When TV runs the reftest harness against an individual reftest, and the specified reftest
is in a sub-directory of its manifest location, the harness currently fails to run the
requested test, on Windows only. For example, the pathname in findManifest might be
"css-multicol\multicol-nested-002.xht", on Windows. Using posixpath changes pathname to
"css-multicol/multicol-nested-002.xht", regardless of platform, and that seems to work
everywhere.

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

--HG--
extra : moz-landing-system : lando
2019-05-24 17:53:20 +00:00
Cameron McCormack
00bc6ad52c Bug 1552098 - Add "Matched CSS Rules" command to the layout debugger. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D31397

--HG--
extra : moz-landing-system : lando
2019-05-16 23:11:50 +00:00
Daniel Varga
4bf41d68cf Merge mozilla-central to mozilla-inbound. a=merge 2019-05-16 07:19:28 +03:00