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

222 Коммитов

Автор SHA1 Сообщение Дата
Anny Gakhokidze 3ae9a2f63d Bug 1630908 - Part 1: Pass OriginAttributes to be included with remote type, r=nika,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D101073
2021-01-19 22:23:29 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Michael Kaply f0ac540cc4 Bug 1279647 - Switch titlebar and tooltip separators to emdash. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93620
2020-10-15 20:00:28 +00:00
Mihai Alexandru Michis 43951837ff Backed out changeset 6e63ffafb422 (bug 1279647) for causing multiple failures.
CLOSED TREE
2020-10-15 20:09:26 +03:00
Michael Kaply ba224a5ebc Bug 1279647 - Switch titlebar and tooltip separators to emdash. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D93620
2020-10-15 15:42:59 +00:00
Miko Mynttinen 4b462a6797 Bug 1667172 - Draw background colors and images by default in layout debugger paged mode r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D91321
2020-09-24 18:11:40 +00:00
Simon Giesecke de7bab0f06 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Csoregi Natalia fa70a28d01 Bug 1597485 - Fix eslint. r=fix 2020-07-30 05:28:38 +03:00
Cameron McCormack f67a047f66 Bug 1597485 - Part 2: Make Layout Debugger commands work on OOP iframes. r=TYLin,nika
Differential Revision: https://phabricator.services.mozilla.com/D85107
2020-07-29 23:57:51 +00:00
Cameron McCormack c75dff40e3 Bug 1597485 - Part 1: Remove "Dump Web Shells" command. r=TYLin
It's not that useful.

Differential Revision: https://phabricator.services.mozilla.com/D85106
2020-07-29 23:54:43 +00:00
Cameron McCormack 8b18ae5fbf Bug 1655394 - Add a Dump Text Runs command to the Layout Debugger. r=TYLin,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D84953
2020-07-29 22:31:19 +00:00
Joel Maher 2f2dc70492 Bug 1654553 - fix browser chrome tests to support Object.is instead of ==. r=gbrown,preferences-reviewers,Gijs,rpl
fix browser chrome tests to support Object.is instead of ==

Differential Revision: https://phabricator.services.mozilla.com/D84539
2020-07-27 17:02:35 +00:00
Olli Pettay bccd166233 Bug 1654088, make WindowWatcher methods to use CStrings and not char and make window.open throw the correct exception, r=farre,geckoview-reviewers,agi*
Differential Revision: https://phabricator.services.mozilla.com/D84604
2020-07-27 21:36:24 +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
Kagami Sascha Rosylight f6d17b63b5 Bug 1630704 - Part 28: Remove nsFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81865
2020-07-06 22:38:11 +00:00
Kagami Sascha Rosylight 1afcf4d621 Bug 1630704 - Part 27: Remove nsFrame from inheritance chain r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81864
2020-07-06 22:29:42 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Ting-Yu Lin a826558cef Bug 1648615 - Add hotkeys to dump DOM tree and frame tree in layout debugger. r=emilio
* ctrl+d: Dump DOM tree (content). (Use "d" because "c" is for copy.)
* ctrl+f: Dump frame trees.
* ctrl+p: Dump frame trees in CSS pixels.

On macOS, the modified is cmd instead of ctrl.

Differential Revision: https://phabricator.services.mozilla.com/D81234
2020-06-25 23:59:15 +00:00
Nika Layzell 24afe9ee3d Bug 1640019 - Part 6: Get rid of the rebuild_frameloaders pref, r=Gijs
This pref was enabled on all platforms, and the codepath which has it disabled
has been untested for some time. Remove the pref to simplify the code handling
the old case.

Differential Revision: https://phabricator.services.mozilla.com/D78974
2020-06-15 23:24:00 +00:00
Narcis Beleuzu a8dde16e58 Backed out 10 changesets (bug 1508306, bug 1640019) for bc failures on browser_autoOpen.js . CLOSED TREE
Backed out changeset 8844170ff408 (bug 1508306)
Backed out changeset b750f1d873cf (bug 1508306)
Backed out changeset c7170e76e676 (bug 1640019)
Backed out changeset 5905995e4815 (bug 1640019)
Backed out changeset 7bf86513348e (bug 1640019)
Backed out changeset f7d0605295f7 (bug 1640019)
Backed out changeset 521b4d5a9a89 (bug 1640019)
Backed out changeset 8542edc564bc (bug 1640019)
Backed out changeset 4f6a03152526 (bug 1640019)
Backed out changeset 30d2bf04719b (bug 1640019)
2020-06-12 22:47:50 +03:00
Nika Layzell eb18c1a614 Bug 1640019 - Part 6: Get rid of the rebuild_frameloaders pref, r=Gijs
This pref was enabled on all platforms, and the codepath which has it disabled
has been untested for some time. Remove the pref to simplify the code handling
the old case.

Differential Revision: https://phabricator.services.mozilla.com/D78974
2020-06-12 16:52: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
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
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
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
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
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
Ting-Yu Lin a50454abf1 Bug 1602767 - Make layout debugger's paged mode use the same setup as reftest-paged. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D56543

--HG--
extra : moz-landing-system : lando
2019-12-11 03:46:58 +00:00
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
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
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
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
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
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
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
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