Commit Graph

127 Commits

Author SHA1 Message Date
Brian Grinstead
08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

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

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Julian Descottes
7abb2d608a Bug 1538632 - Show a deprecation message inside of WebIDE;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D26085

--HG--
extra : moz-landing-system : lando
2019-04-10 06:23:48 +00:00
Jonas Allmann
1db9db7604 Bug 1529231, Remove all occurences of ondialogaccept and ondialogcancel, r=Gijs
Removed all occurences of ondialogaccept.
Removed all occurences of ondialogcancel.
Replaced all removed attributes with event handlers.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 18:34:02 +00:00
Brian Grinstead
a797a66d25 Bug 1531119 - Remove editMenuCommands.inc.xul and make editMenuOverlay.js in charge of constructing the relevant commandset DOM r=bdahl,NeilDeakin
This allows us to drop preprocessing and makes it simpler to add edit menu functionality to any type of document.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 14:18:48 +00:00
Julian Descottes
6fef20e426 Bug 1528219 - Display explicit non-backward message when trying to connect from 67 to older version r=daisuke,loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D19939

--HG--
extra : moz-landing-system : lando
2019-03-09 00:59:03 +00:00
Julian Descottes
60c1290864 Bug 1525654 - Move version compatibility check to dedicated module and add unit-tests;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18934

--HG--
extra : moz-landing-system : lando
2019-02-12 18:20:40 +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
Nazım Can Altınova
89859d7246 Bug 1515197 - Remove the window length setting from devtools performance panel r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D15655

--HG--
extra : moz-landing-system : lando
2019-01-07 21:37:05 +00:00
Nazım Can Altınova
e88550b119 Bug 1476775 - Part 2: Change the profiler usage in devtools after API change r=julienw,gregtatum
Depends on D6267

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

--HG--
extra : moz-landing-system : lando
2018-11-23 16:10:08 +00:00
Julian Descottes
0cedb74d8c Bug 1507071 - Explicitly uninstall valence and adbhelper when starting aboutdebugging and webide;r=ochameau
Depends on D11862

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

--HG--
extra : moz-landing-system : lando
2018-11-14 15:33:01 +00:00
Paolo Amadini
cdb5b4eb19 Bug 1471403 - Part 4 - Convert "notificationbox" to a custom class. r=bgrins
As part of the conversion, support for notificationsHidden and children that are not notifications is also removed.

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

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/notificationbox.js
extra : rebase_source : 36a5412e1e9a9dc591fd486d1123c1f763a6f173
2018-11-09 14:58:18 +00:00
Alexandre Poirot
8e6a787c3d Bug 1505172 - Remove references to devtools.debugger.forbid-certified-apps preference. r=jdescottes,jryans
MozReview-Commit-ID: JV8MXvIuXaa

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

--HG--
extra : moz-landing-system : lando
2018-11-08 16:46:58 +00: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
Paolo Amadini
3a2f47fd3f Bug 1428869 - Use html:progress in front-end code. r=bgrins,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9009

--HG--
extra : rebase_source : 0e2d20dc6060a4c0ee278ef05d67668aec12e64f
2018-10-18 15:41:21 +01:00
Julian Descottes
f1a644359d Bug 1493104 - Add ADBScanner decorator to listen to addon status udpates;r=ladybenko,daisuke
--HG--
extra : rebase_source : 2c1690254e7a9cbf424888cb77c008bba4c4ede7
2018-10-05 13:51:18 +02:00
Julian Descottes
9ab0355775 Bug 1493104 - Add adbScanner to WebIDE scanners if status is already installed;r=ladybenko,daisuke
This fixes the following scenario:
- install ADB
- connect a Device
- start about:debugging
=> device shows up in sidebar
- start WebIDE
=> device should show up in WebIDE

--HG--
extra : rebase_source : b056411fcfc7d0d7f0f50d807b1b24672616607e
2018-10-05 11:21:04 +02:00
Julian Descottes
b9f48622a5 Bug 1493104 - Listen to ADB extension updates in about:debugging usb-runtime helper;r=ladybenko,daisuke
--HG--
extra : rebase_source : 5cd44c8098de216a0ba9f8de935b8d4eed764374
2018-10-05 11:45:32 +02:00
Julian Descottes
f32a8ff753 Bug 1493104 - Convert ADBScanner from a singleton to a class;r=ladybenko,daisuke
--HG--
extra : rebase_source : 7a66e727d567756daae2e57c32c290915f986d45
2018-10-05 11:17:22 +02:00
Julian Descottes
65e9cbd0e2 Bug 1496741 - Cleanup adb-addon.js module;r=ladybenko
--HG--
extra : rebase_source : c7d5a65aa5fc305295a6ae49020bf2b49c090c13
2018-10-02 11:25:03 +02:00
Julian Descottes
419fc776a0 Bug 1494615 - Accept source parameter in adb-addon install();r=ladybenko
Depends on D7404. The install method should not hardcode "webide"
for the addon manager telemetry info

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:43:29 +00:00
Julian Descottes
c1b5abb562 Bug 1494615 - Update adb-addon module to expose a singleton;r=ladybenko
Depends on D7403
The getADBAddon/forgetADBAddon is not removing listeners or doing
anything useful since the next call to getADBADdon will just recreate an
instance of ADBAddon. We can expose a singleton and use lazy requires to
achieve the same effect

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:40:38 +00:00
Julian Descottes
c1aabb3bca Bug 1494615 - Move ADBAddon module to devtools/shared/adb;r=ladybenko
Depends on D7402. Moving the module to a shared older. Following
patches will cleanup the implementation to remove WebIDE couplings.

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

--HG--
rename : devtools/client/webide/modules/addons.js => devtools/shared/adb/adb-addon.js
extra : moz-landing-system : lando
2018-10-03 13:34:40 +00:00
Julian Descottes
aa8196aae8 Bug 1494615 - Remove concept of availableAddons in WebIDE;r=ladybenko
There is only one addon to manage in WebIDe, removing the concept
of available addons will make it easier to move the ADBAddon module to a
shared folder.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 16:09:44 +00:00
Julien Wajsberg
6ddb5fb144 Bug 1459720 - Move the performance panel out of the toolbox to the WebIDE's top level window r=jdescottes
This effectively removes the devtools overhead while profiling... as
long as the toolbox isn't opened as well of course.

This also removes the performance panel from the Browser Toolbox and the
Browser Content Toolbox where it shouldn't have been in the first place.

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

--HG--
extra : moz-landing-system : lando
2018-09-28 12:48:05 +00:00
Michael Ratcliffe
4e3c6d2b5f Bug 1491879 - Fix telemetry support for multiple tabs / windows r=nchevobbe
- Various telemetry methods now need an object to be passed in in order to keep them seperate e.g. if the inspector is opened in tab 1 a timer is started. If an inspector is opened in tab 2 the same timer is restarted. Closing tab 2 would then erase the timing event invalidating the timer in tab 1.
- We no longer need to preface telemetry calls with category "devtools.main" because this is the only category we will be using.
- There are some changes to `devtools/client/debugger/new/dist/vendors.js` and `devtools/client/debugger/new/src/utils/telemetry.js` that need to be ported to the debugger at the same time as landing this.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 12:57:13 +00:00
Alexandre Poirot
3ad83b9241 Bug 1492856 - Remove compatiblity code to guard against miss of RootActor.getRoot r=jdescottes
MozReview-Commit-ID: L5kkG9r7Rtv

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

--HG--
extra : moz-landing-system : lando
2018-09-26 21:12:16 +00:00
Hiroyuki Ikezoe
7ea3b5e685 Bug 1492724 - Add ADBScanner once after the extension is installed or is ready. r=jdescottes
And remove the ADBScanner once the extension is uninstalled.

When RuntimeScanners.add is called for ADBScanner, RuntimeScanner calls
ADBScanner.enable(), thus ADB.start() is called.  Meanwhile WebIDE installs the
devtools adb extension if the extension hasn't installed yet.  So if the
ADB.start() is called before the installation finishes, ADB.start() fails.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 08:17:15 +00:00
Julian Descottes
e361f7ef17 Bug 1492049 - Fix localization for ADB Extension strings in WebIDE;r=flod
Differential Revision: https://phabricator.services.mozilla.com/D6122

--HG--
extra : moz-landing-system : lando
2018-09-18 07:26:31 +00:00
Julian Descottes
b52db5e949 Bug 1491315 - Rename all references to ADB Helper to ADB Extension;r=daisuke
--HG--
extra : rebase_source : 5c696e1d1224343e2a7223b8e412afd826b459c5
2018-09-14 17:57:13 +02:00
Andreea Pavel
fabfc9e604 Bug 1469054 - edit type in devtools/client/webide/content/runtimedetails.js on a CLOSED TREE
--HG--
extra : amend_source : 318cba8ea3eebd812f9414a54db1af54fb8668b8
2018-08-09 13:38:07 +03:00
Hiroyuki Ikezoe
256c603bcd Bug 1469054 - Split Runtime.RuntimeTypes into a new file to import the RuntimeTypes in a file which is importing runtimes.js. r=jdescottes
MozReview-Commit-ID: LVfyW3aaSxU

--HG--
extra : rebase_source : 66802b7736a4148fefad16e4acc5221c7e5a2bf6
2018-08-09 14:27:56 +09:00
Boris Zbarsky
79181a1a13 Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
J. Ryan Stinnett
fa78307d48 Bug 1466534 - Centralize DevTools link handling. r=jdescottes
This adds a `openContentLink` helper meant for any link controlled by web
content.  If there is an associated toolbox open, the toolbox's tab is used to
supply a triggering principal for the link.

MozReview-Commit-ID: 45l5yAPGpZr

--HG--
extra : rebase_source : 61a1d471d6792d148932488e854e16de60dea44b
2018-06-11 23:42:19 -07: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
J. Ryan Stinnett
e2c2e9c3e4 Bug 1463924 - Remove Dev. Edition promo doorhanger. r=nchevobbe
MozReview-Commit-ID: LIg6o35CvD2

--HG--
extra : rebase_source : 0eda7252ad7962b5038b3d7df3c8fc2eee9db511
2018-05-23 18:30:36 -05:00
Michael Ratcliffe
3df73f73cd Bug 1458206 - telemetry.js: Cleanup toolOpened/toolClosed r=jdescottes
The methods have been improved and now live in telemetry.js again.

We use these methods for tools that at least require timing.

MozReview-Commit-ID: 2CqBCA9j3XU

--HG--
extra : rebase_source : faa489ea4790db55648301be842f55cea308ce29
2018-05-04 18:00:04 +01:00
Michael Ratcliffe
3b052d0d30 Bug 1458205 - telemetry.js: Remove actionOccurred r=jdescottes
MozReview-Commit-ID: 7mBtbV5inso

--HG--
extra : rebase_source : 98f050564b93430ebb7882d177a85e0f9fd1aa99
2018-05-04 14:30:40 +01:00
Michael Ratcliffe
5c91c7417c Bug 1458204 - telemetry.js: Rename startTimer/stopTimer r=jdescottes
MozReview-Commit-ID: HAgOaVka0Qk

--HG--
extra : rebase_source : b8d13342be947c1f700dbdc24f820b13b047dcb0
2018-05-04 14:14:43 +01:00
Michael Ratcliffe
30e6b8b177 Bug 1458203 - telemetry.js: Rename all log* methods r=jdescottes
MozReview-Commit-ID: 9QcRGkXCq71

--HG--
extra : rebase_source : a2dcf7c3b8c58aba0afccd83377ffe2855862b02
2018-05-09 09:53:49 +01:00
Mark Banner
d226fcc86a Bug 1453383 - Enable ESLint for devtools/client/{webaudioeditor,webide}/. r=jdescottes
MozReview-Commit-ID: Gm77Z0T3oJq

--HG--
extra : rebase_source : 9a23baa102558d30302baf5044da207b7d79f3b6
2018-04-11 16:10:35 +01:00
Mark Banner
6a7d7e5b8c Bug 1453383 - Automatically fix ESLint issues in devtools/client/{webaudioeditor,webide}/. r=jdescottes
MozReview-Commit-ID: 8QPtZi0oSOO

--HG--
extra : rebase_source : 6b030e1bfd065af35f9b58666fe776a4da0d2dee
2018-04-11 15:43:09 +01:00
Dão Gottwald
8b23aaae8b Bug 1453281 - Remove obsolete menubar binding and styling. r=bgrins,Paolo
MozReview-Commit-ID: Kao3jst0DBJ

--HG--
extra : rebase_source : bed74abc9910ec22295207fdced37f6bfc1648be
2018-04-11 17:29:27 +02:00
Jonathan Kingston
bbb3623c41 Bug 1374741 - Within devtools/ make openUILinkIn() provide the correct triggeringPrincipal. r=jryans
MozReview-Commit-ID: KecQcZWeU6a

--HG--
extra : rebase_source : edbcbd607ee7209b5c137d4f7af9daf5eaeffab6
2018-02-21 16:01:03 +00:00
Brian Grinstead
8c4db27eb0 Bug 1445772 - Don't worry about binding console methods to the console object r=jryans
This isn't needed since Console is an interface and not an object

MozReview-Commit-ID: ZoIo2TS9QL

--HG--
extra : rebase_source : 7ccb86dd4290e5d7ac829cab6dcf2f9548d89f11
2018-03-14 14:33:47 -07:00
Alexandre Poirot
bcf6facc3c Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans
MozReview-Commit-ID: HaGOC5cn3JD
2018-03-12 19:46:35 -05:00
Brendan Dahl
f4384d768c Bug 1439766 - Replace editMenuOverlay.xul by inlining and preprocessing. r=Gijs
The overlay elements with children of editMenuOverlay.xul are moved into
include files (editMenuCommands.inc.xul and editMenuKeys.inc.xul). For
the other single elements in the overlay, the attributes are inlined
wherever they are used.

MozReview-Commit-ID: 792cuzUvQxT

--HG--
extra : rebase_source : 58e4c05bde16cee873d37c6198de102d048499c2
2018-02-22 15:48:24 -08:00
Nicolas Chevobbe
4d5651404b Bug 1382607 - Use new EventEmitter in webide; r=jryans.
MozReview-Commit-ID: 6BGUTw5RNke

--HG--
extra : rebase_source : fe8ffed6ccf0451c4d91f513b2f18b1ec7042fe8
2018-02-26 14:06:47 +01:00
Alexandre Poirot
e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Alexandre Poirot
54ef877eee Bug 1435791 - Remove webapps actor front. r=jdescottes
MozReview-Commit-ID: A21zlETw5Iz

--HG--
extra : rebase_source : 7656d666d8d97add75ec7494b47878424b6028a8
2018-02-05 10:25:25 -08:00
Alexandre Poirot
c1196409cb Bug 1435791 - Remove WebIDE monitor panel. r=jdescottes
MozReview-Commit-ID: 4Oz62CXGt0S

--HG--
extra : rebase_source : 84269b1282c822e21747a7196d0fa8482418aaa4
2018-02-06 01:05:59 -08:00