Commit Graph
279 Commits
Author SHA1 Message Date
Alexandre Poirot 50cc9ad5c6 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
2019-07-18 12:25:03 +00:00
Victor Porof 2c5f76d8a7 Bug 1561435 - Fix linting errors for devtools/client/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35885
2019-06-20 06:22:00 -07:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Tim Nguyen cfc056ac1f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334
2019-05-11 17:54:16 +00:00
arthur.iakab 14865bcdb8 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 8533c03502 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334
2019-05-11 16:08:13 +00:00
Yura Zenevich 46844ab918 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
2019-05-03 04:05:36 +00:00
Joel Maher 41ecc30f4a Bug 1546459 - remove subsuite=clipboard from manifests. r=ahal
remove subsuite=clipboard from manifests

Differential Revision: https://phabricator.services.mozilla.com/D28521
2019-05-01 08:16:44 +00:00
Nicolas Chevobbe 4179a1e8c6 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
2019-04-23 06:14:50 +00:00
Florens Verschelde 8d9e907b45 Bug 1543324 - Part 1: Replace --theme-content-color1,2,3 variables; r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D27106
2019-04-18 19:18:43 +00:00
sakshaat 8b67bd2a1d 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
2019-03-24 20:36:25 +00:00
ECarr 5a554bea86 Bug 1247403 - Rename tabActive property to activeTab in the Tab Component. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D21498
2019-03-05 12:21:53 +00:00
Jonathan Kingston 8397774fdf Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-27 23:42:27 +00:00
Jonathan Kingston 1d7c7a19d3 Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771
2019-02-27 23:41:54 +00:00
Dorel Luca 2dfae9a24a 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 b6e28d0b8e Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-24 20:27:55 +00:00
Jonathan Kingston ba03516b3f Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771
2019-02-25 00:07:42 +00:00
Kris Maglione 856fa07b17 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
2019-01-17 10:18:31 -08:00
Garvit Khatri 4f4350dff5 Bug 1519791 - Remove unused --toolbarbutton*-border-color variables. r=ntim 2019-01-22 10:42:47 +01:00
Jeff Walden d8edda9a4c 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 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Florens Verschelde 365e8595b4 Bug 1458224 - Fix Linux root font size in DevTools; r=pbro,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D6155
2018-10-02 16:46:45 +00:00
Kris Maglione 95ade8d85e 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
2018-08-24 22:13:57 -07:00
yulia 5e4d38002f 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
2018-08-16 14:06:07 +00:00
Kris Maglione e97c582e3f 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
2018-05-21 16:58:23 -07:00
Narcis Beleuzu 749f83cc65 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 6dcf46ad68 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
2018-05-21 16:58:23 -07:00
Nicolas Chevobbe 06f3d13ff8 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
2018-06-28 10:43:02 +02:00
Sebastian Hengst 4124655c70 Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander
MozReview-Commit-ID: 6bs0jkTP6rP
2018-06-20 21:34:40 +03:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Jonathan Kingston 2c4c7885a2 Bug 1463398 - Removal of deprecated newChannel() API on nsIIOService r=ckerschb
MozReview-Commit-ID: 5AwSnQhFtT2
2018-05-22 13:09:41 +01:00
Ognjen Galic 4928516cb3 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 a6fb10a819 Bug 1460840 - JSON Viewer's converter-child should not trust JSONView without Xrays r=Gijs,kmag
MozReview-Commit-ID: BvrVd9cdRaK
2018-05-11 16:08:47 +02:00
Gijs Kruitbosch 8f3f0e6dc3 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
2018-05-08 12:25:47 +01:00
Csoregi Natalia 171b2f4aad 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 a9fdc6ebaa Bug 1264557 - Add test cases for expand/collapse buttons. r=honza 2018-05-09 10:10:51 +02:00
Ognjen Galic b629142042 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.
2018-05-05 12:40:18 +02:00
Kris Maglione c03fa450d6 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
2018-05-08 18:36:22 -07:00
Michael Ratcliffe a4ac391ae6 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
2018-05-01 18:06:14 +01:00
Oriol Brufau 720d144ae6 Bug 1457513 - Let JSON Viewer display unmodified headers r=Honza
MozReview-Commit-ID: R54uNEefvw
2018-04-27 19:58:25 +02:00
Kris Maglione b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Brian Grinstead 3ffee913fc Bug 1378108 - Part 2 - Remove Firebug theme;r=gl
MozReview-Commit-ID: 930pvUVLsiP
2018-04-04 12:32:54 -07:00
Brian Grinstead 2679daea21 Bug 1378108 - Part 1 - Remove non-variable css selector overrides for Firebug theme;r=gl
MozReview-Commit-ID: 6WfdDVs1EKg
2018-04-04 12:32:39 -07:00
Peter Van der Beken 75d03ab497 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz. 2018-03-01 20:19:56 +01:00
Gijs Kruitbosch 37003c87ae Bug 1442840, r=ckerschb 2018-03-08 20:46:13 +00:00
Gijs Kruitbosch 9f4a0a68ff Bug 1442840, r=bgrins 2018-03-08 20:45:00 +00:00
Oriol Brufau f2e444643a Bug 1447012 - Use waitForNewTab instead of progress listener in addJsonViewTab r=Honza
MozReview-Commit-ID: KInGiOtMLex
2018-03-19 02:55:17 +01:00
Tooru Fujisawa f415c74b57 Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Nicolas Chevobbe 3ac44ca17d Bug 1440388 - Adapt JSONViewer to the new Reps bundle; r=Honza.
We don't populate the href attribute on links anymore and reps require
that we pass an openLink function to handle them.
This had an impact on the test where we are testing those links.

MozReview-Commit-ID: Hj2PBX79HZu
2018-03-09 15:30:40 +01:00