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

289 Коммитов

Автор SHA1 Сообщение Дата
Johann Hofmann d0da7de770 Bug 1475404 - Make EventUtils available to use in content task scopes. r=mconley,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D47588

--HG--
extra : moz-landing-system : lando
2019-10-09 18:03:35 +00:00
Florens Verschelde ac9c3d58a3 Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast
Differential Revision: https://phabricator.services.mozilla.com/D43217

--HG--
extra : moz-landing-system : lando
2019-08-29 10:12:25 +00:00
Kris Maglione 09ec8cc063 Bug 1575385: Fix race in browser_jsonview_nojs.js. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42925

--HG--
extra : moz-landing-system : lando
2019-08-22 20:24:52 +00:00
Mihai Alexandru Michis fea3565134 Merge inbound to mozilla-central. 2019-08-21 01:00:06 +03:00
Kris Maglione 467bd404f5 Bug 1561705: Part 2 - Use regular SpecialPowers actor for browser chrome tests. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D42179

--HG--
extra : rebase_source : 319e389d7c38d919b2c5d474aa8417f443f94fb4
extra : source : 080ff558e41aad0cf05ca896c7f98bf4c9a2e7e9
2019-08-14 16:14:02 -07:00
Gijs Kruitbosch 938483d542 Bug 1561502, r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D42123

--HG--
extra : moz-landing-system : lando
2019-08-20 13:12:26 +00:00
Gijs Kruitbosch 91775b86ee Bug 1561502, r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D42122

--HG--
extra : moz-landing-system : lando
2019-08-20 13:12:17 +00:00
Gijs Kruitbosch d11d241116 Bug 1561502, r=bzbarsky,Honza
Differential Revision: https://phabricator.services.mozilla.com/D42120

--HG--
extra : moz-landing-system : lando
2019-08-20 13:11:58 +00:00
Nicolas Chevobbe 925311bc77 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300

--HG--
extra : moz-landing-system : lando
2019-08-19 12:48:16 +00:00
Sylvestre Ledru 5da36f02d4 Bug 1562642 - Part 5 - Add missing MPL2 headers in devtools/ r=jlast
Depends on D41566

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

--HG--
extra : moz-landing-system : lando
2019-08-12 15:56:26 +00:00
Alexandre Poirot c9648fef81 Bug 1566457 - Only export require, loader and DevToolsLoader from Loader.jsm r=jdescottes
The rest was legacy code to support old xul add-ons.
All mozilla-central code used to be refactored, but a few places
were still using the old codepaths.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 12:25:03 +00:00
Victor Porof 56ef3d5679 Bug 1561435 - Fix linting errors for devtools/client/, r=standard8
# ignore-this-changeset

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

--HG--
extra : source : 64dd06feccb80551c56339bdf16ee480b94b2d84
extra : intermediate-source : 59239f9cb724bfb9ac79c5e06ac42393e74af328
2019-06-20 06:22:00 -07:00
Victor Porof f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00
Tim Nguyen fef5483c4f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 17:54:16 +00:00
arthur.iakab 59ea6f2ddc Backed out changeset c8a2cbf18f3c (bug 1223368) for devtools failures on browser_inspector_search-01.js CLOSED TREE 2019-05-11 20:44:42 +03:00
Tim Nguyen d2328a28a9 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 16:08:13 +00:00
Yura Zenevich c087faa4dc Bug 1544710 - ensure that selected row is always visible within TreeView after update. Clean up scroll into view operations across all uses of TreeView. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D29342

--HG--
extra : moz-landing-system : lando
2019-05-03 04:05:36 +00:00
Joel Maher 6611f95ab0 Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

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

--HG--
extra : moz-landing-system : lando
2019-05-01 08:16:44 +00:00
Nicolas Chevobbe 466dc4b001 Bug 1540069 - Remove openLink and pass isInContentPage to Rep. r=Honza.
This will allow links to be handled by the browser, so we
don't have to have our own logic for that.
The URLs in String rep are modified to have a target="_blank" attribute
to match the current JSONViewer behaviour.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 06:14:50 +00:00
Florens Verschelde 83d8ab904d Bug 1543324 - Part 1: Replace --theme-content-color1,2,3 variables; r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D27106

--HG--
extra : moz-landing-system : lando
2019-04-18 19:18:43 +00:00
sakshaat d781937a67 Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky
Replaced instances of callers in both C++ and JS files to query the state from the principal directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-24 20:36:25 +00:00
ECarr cea157f39b Bug 1247403 - Rename tabActive property to activeTab in the Tab Component. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D21498

--HG--
extra : moz-landing-system : lando
2019-03-05 12:21:53 +00:00
Jonathan Kingston f6680698bd Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston dd4c731d8c Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:54 +00:00
Dorel Luca 4a4dcd57fa Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston 63ab2bd8aa Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-24 20:27:55 +00:00
Jonathan Kingston 147e351e0b Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-25 00:07:42 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Garvit Khatri 166668afbe Bug 1519791 - Remove unused --toolbarbutton*-border-color variables. r=ntim
--HG--
extra : rebase_source : 5359566efb1538c282e7ecfaacbf3cd4619df32d
2019-01-22 10:42:47 +01:00
Jeff Walden ed23151bd7 Bug 1492937 - Make the JS subscript loader load scripts exclusively as UTF-8, with no way to specify any other encoding, and adjust a bunch of existing tests to use UTF-8 directly, rather than Unicode escape sequences or similar. (This also changes the encoding of .sjs scripts and all mochitest-browser tests in the tree from Latin-1 to UTF-8.) r=yzen, r=MattN, r=jimb, r=kmag 2018-12-19 13:46:20 -08:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Florens Verschelde 63be9aad3e Bug 1458224 - Fix Linux root font size in DevTools; r=pbro,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D6155

--HG--
extra : moz-landing-system : lando
2018-10-02 16:46:45 +00:00
Kris Maglione 53f96aa226 Bug 1486182: Part 2a - Add Services.catMan getter for the category manager. r=mossop
This makes it much easier to update existing consumers of
XPCOMUtils.enumerateCategoryEntries to use the category manager directly.

It also, unfortunately, requires updating existing category manager consumers
to use the Services getter in order to avoid ESLint errors.

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

--HG--
extra : rebase_source : fb9fd9b21db80af472ff6250a2e9a35e8d538147
2018-08-24 22:13:57 -07:00
yulia 9334e84033 Bug 1447494 - remove all instances of commandline/helpers; r=ochameau
Removed remaining imports of commandline helpers, as they are no longer used anywhere

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

--HG--
extra : moz-landing-system : lando
2018-08-16 14:06:07 +00:00
Kris Maglione 031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Nicolas Chevobbe e27df170c7 Bug 1471849 - Add mock for Services in json-viewer; r=Honza.
Services is now used in the reps bundle but can't be loaded in the json-viewer.
Since it's only used in the ObjectInspector, which we don't use in the json-viewer,
we can mock it.

MozReview-Commit-ID: DvAxzXTb67K

--HG--
extra : rebase_source : 59c907824e94825357e5049b83ba60afebeddc9a
2018-06-28 10:43:02 +02:00
Sebastian Hengst 82bbb42c90 Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander
MozReview-Commit-ID: 6bs0jkTP6rP

--HG--
extra : rebase_source : 4e554f8e710aea1fb372a0f21d7539cf568baa17
2018-06-20 21:34:40 +03:00
Julian Descottes 7fdc2c153f Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks

--HG--
extra : rebase_source : a3f07665a42c2779a85b7901a07206266a9d1616
extra : source : ae946f375e0d0f4f0f0fc859c54040fef42cbc2c
2018-06-01 12:19:35 +02:00
Julian Descottes 640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Jonathan Kingston 5054bfcd70 Bug 1463398 - Removal of deprecated newChannel() API on nsIIOService r=ckerschb
MozReview-Commit-ID: 5AwSnQhFtT2

--HG--
extra : rebase_source : e9e8a3109f045f5583389042b2c6dc187cf0b6a8
2018-05-22 13:09:41 +01:00
Ognjen Galic d92f87e2e0 Bug 1264557 - Add expand all/collapse all buttons. r=Honza
This adds buttons to collapse and expand the JSON tree. If the file
is larger than 100kB the "Expand All" button is hidden for performance
reasonds, as well as test cases for the buttons.
2018-05-05 12:40:18 +02:00
Oriol Brufau 2571f94ea5 Bug 1460840 - JSON Viewer's converter-child should not trust JSONView without Xrays r=Gijs,kmag
MozReview-Commit-ID: BvrVd9cdRaK

--HG--
extra : rebase_source : 0ea9277b3e576668940b2abaf082a1cd86a0b213
2018-05-11 16:08:47 +02:00
Gijs Kruitbosch aeace8b471 Bug 1459640 - add CSP also via meta tag, r=bgrins
This also fixes all the tests to not rely on eval() anymore.

MozReview-Commit-ID: 8H8r497nQVK

--HG--
extra : rebase_source : 89c7f8a6e1bb77ceb242f05749c22d929ee86929
2018-05-08 12:25:47 +01:00
Csoregi Natalia 33962019e1 Backed out 2 changesets (bug 1264557) for Eslint failure. CLOSED TREE
Backed out changeset e17cd801b578 (bug 1264557)
Backed out changeset d3bf0a95e4e4 (bug 1264557)
2018-05-10 13:48:13 +03:00
Ognjen Galic 5c5a3822fe Bug 1264557 - Add test cases for expand/collapse buttons. r=honza
--HG--
extra : histedit_source : 0c3c6197f3fbce7ff7c3f3f7d90131775eceac4e
2018-05-09 10:10:51 +02:00
Ognjen Galic 2f49407684 Bug 1264557 - Add expand all/collapse all buttons. r=honza
This adds buttons to collapse and expand the JSON tree. If the file
is larger than 100kB the "Expand All" button is hidden for performance
reasonds.

--HG--
extra : histedit_source : 3fa4d8e5523afbc423ebc5a6d803bdb84100f9d7
2018-05-05 12:40:18 +02:00
Kris Maglione 01c298aca6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU

--HG--
extra : rebase_source : 86a43837659aa2ad83a87eab53b7aa8d39ccf55b
2018-05-08 18:36:22 -07:00
Michael Ratcliffe 764c4c8578 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61

--HG--
extra : rebase_source : cd1214d01bd11908f69167839975cd93ecb83421
2018-05-01 18:06:14 +01:00