Commit Graph

266 Commits

Author SHA1 Message Date
Nicholas Nethercote
66a26ccca9 Bug 1572332 - Move non-debugger devtools prefs into all.js and firefox.js. r=jdescottes
This makes prefs definition simpler, more consistent, and less error-prone.

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

--HG--
extra : moz-landing-system : lando
2019-08-26 01:44:59 +00:00
Julian Descottes
3df7a88f3b Bug 1572390 - Split main.js in debugger-server and debugger-server-connection r=yulia,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D41009

--HG--
rename : devtools/server/main.js => devtools/server/debugger-server-connection.js
rename : devtools/server/main.js => devtools/server/debugger-server.js
extra : moz-landing-system : lando
2019-08-08 12:44:13 +00:00
Julian Descottes
f1fcf6094f Bug 1539461 - Remove the aboutdebugging.new-enabled preference r=remote-debugging-reviewers,daisuke
Depends on D37860

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

--HG--
extra : moz-landing-system : lando
2019-07-16 16:24:14 +00: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
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Brendan Dahl
2488d71403 Bug 1551320 - Replace another instance of createElement with createXULElement. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D32211

--HG--
extra : moz-landing-system : lando
2019-05-22 20:19:28 +00:00
Julian Descottes
033f059748 Bug 1553029 - Show WebIDE deprecation message if the new about:debugging is enabled r=daisuke
Rather than having a separate preference for showing the deprecation message, we should reuse the aboutdebugging new pref

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:37:48 +00:00
Julian Descottes
62d2b67271 Bug 1553029 - Update WebIDE deprecation message to stop mentioning release 69 r=flod,daisuke
There was a last minute schedule change for remote debugging release and we will not ride the trains with Firefox 68
The deprecation schedule is therefore shifting by one release. We update the deprecation message in WebIDE here and we should
uplift this change to beta if possible. The patch was written in order to be uplifted, we can go for a simpler version if the
uplift is a no go.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 08:48:51 +00:00
Brendan Dahl
543c10a1d2 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295

--HG--
extra : moz-landing-system : lando
2019-05-20 16:50:28 +00:00
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
Brian Grinstead
6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Julian Descottes
5091f67021 Bug 1505289 - Move unknown runtime logic to aboutdebugging r=Ola,ladybenko
The notion of unknown runtime is only relevant to aboutdebugging
As we will complexify this to handle unplugged devices, moving it to aboutdebugging seems reasonable.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 22:23:01 +00:00
Julian Descottes
43bf250bf8 Bug 1538632 - Add a test for the deprecation message in WebIDE;r=daisuke
Depends on D26085

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

--HG--
extra : moz-landing-system : lando
2019-04-10 07:51:05 +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
Alexandre Poirot
c5e4b01f95 Bug 1520774 - Remove TargetFactory.forRemoteTab. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D18539

--HG--
extra : moz-landing-system : lando
2019-02-06 16:17:15 +00:00
Alexandre Poirot
ef1c99b06e Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:24 +00:00
Bogdan Tara
19bcfc41e1 Backed out 8 changesets (bug 1465635) for failures on browser_canvas-actor-test-10.js, browser_target_server_compartment.js CLOSED TREE
Backed out changeset e8e363f98525 (bug 1465635)
Backed out changeset 9ec017a91e78 (bug 1465635)
Backed out changeset 11413ebfbcaf (bug 1465635)
Backed out changeset 52728b761d5d (bug 1465635)
Backed out changeset 734646bf9829 (bug 1465635)
Backed out changeset d9ae7cd34c1a (bug 1465635)
Backed out changeset 00d325ab677a (bug 1465635)
Backed out changeset a9b181f32189 (bug 1465635)
2019-01-30 18:54:05 +02:00
Alexandre Poirot
dc852753a8 Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

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

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:25 +00:00
Alexandre Poirot
fc5fb970e7 Bug 1515290 - Instantiate DebuggerServer in dedicated loader when debugging chrome tabs. r=yulia,jdescottes
When debugging contexts running from the system compartment, the debugger has
to be loaded in a dedicated Loader, with invisibleToDebugger flag turned on.
This ensures that the Debugger API is going to be used from a distinct system
compartment. Otherwise it may be used from the same compartment than the page
we are debugging.

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

--HG--
extra : moz-landing-system : lando
2019-01-30 08:04:50 +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
Alexandre Poirot
9e9978c28d Bug 1521052 - Destroy DebuggerServer in the content process when the last connection drops. r=jdescottes
We never really tried to cleanup the DebuggerServer and so a few tests require some tweaks
to acknowledge that once the last connection drop (typically, we close the toolbox or target),
the server is destroyed and dynamically registered actors are also destroyed.

I think it is great to consider that everything is cleaned up as we may followup to destroy
the whole loader.

Depends on D16961

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

--HG--
extra : moz-landing-system : lando
2019-01-23 14:46:11 +00: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
Julian Descottes
e2806136af Bug 1516408 - Remove deprecated backward compatibility code in webide;r=ochameau
Depends on D15303

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

--HG--
extra : moz-landing-system : lando
2019-01-03 10:18:00 +00:00
Julian Descottes
3fc2d93d35 Bug 1516250 - Stop using form to call Target.forRemoteTab in WebIDE;r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D15303

--HG--
extra : moz-landing-system : lando
2018-12-25 07:59:27 +00:00
Julian Descottes
eff4be5306 Bug 1508956 - Add unknown runtime entries for devices with no runtime detected;r=daisuke
Depends on D14307. Introduce a placeholder UnknownAdbRuntime extending AdbRuntime.
AdbRuntime implements isUnknown(). This method is used to filter out the unknown runtimes in
webide and about:debugging. (filter will be removed in about:debugging in a patch in the same
queue)

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

--HG--
extra : moz-landing-system : lando
2018-12-19 18:07:37 +00:00
Alexandre Poirot
9d435e1006 Bug 1508285 - Refactor RootFront.listTabs to return BrowsingContextTargetFront instead of JSON form. r=yulia,jdescottes
MozReview-Commit-ID: 4CMHJ3tV7Rc

Depends on D14174

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

--HG--
extra : moz-landing-system : lando
2018-12-17 11:56:30 +00:00
Alexandre Poirot
0d4cf81b11 Bug 1508285 - Use RootFront.rootForm instead of listTabs to fetch global actors. r=yulia
MozReview-Commit-ID: Ed5SyZbB0kq

Depends on D14173

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

--HG--
extra : moz-landing-system : lando
2018-12-17 11:56:28 +00:00
Julian Descottes
cefef81b96 Bug 1492700 - Introduce adb singleton to register adb consumers;r=daisuke
Depends on D13476

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

--HG--
extra : moz-landing-system : lando
2018-12-06 14:57:03 +00:00
Julian Descottes
e9f2a32f79 Bug 1492700 - Stop sending adb-addon updates from Devices.jsm;r=daisuke
Depends on D12758

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

--HG--
extra : moz-landing-system : lando
2018-11-27 12:49:11 +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
Alexandre Poirot
1578b6da37 Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

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

--HG--
extra : moz-landing-system : lando
2018-11-15 10:22:49 +00:00
Andreea Pavel
b1857361c4 Backed out 5 changesets (bug 1506549) for failing devtools at devtools/client/aboutdebugging/test/browser_service_workers_status.js on a CLOSED TREE
Backed out changeset 6be66dea928c (bug 1506549)
Backed out changeset da0d76d0e8fc (bug 1506549)
Backed out changeset 490eeba8f9f7 (bug 1506549)
Backed out changeset 97554f465eca (bug 1506549)
Backed out changeset 4f259de6cce0 (bug 1506549)
2018-11-14 21:46:07 +02:00
Alexandre Poirot
c5b46b077f Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

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

--HG--
extra : moz-landing-system : lando
2018-11-14 15:48:16 +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
Alexandre Poirot
fb3dcac40b Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia
MozReview-Commit-ID: E9OiwqDwNk7

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

--HG--
extra : moz-landing-system : lando
2018-11-13 14:07:36 +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
Alexandre Poirot
282edc25f7 Bug 1485661 - Adapt tabListChanged to new front. r=yulia
MozReview-Commit-ID: 8LcTfats8c8

Depends on D8824

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

--HG--
extra : moz-landing-system : lando
2018-10-30 08:08:40 +00:00
Julian Descottes
305dfd1207 Bug 1499096 - Update tests using ok() to is(), with minor fixes;r=Standard8
Depends on D8741
This changeset updates some calls to ok() that should actually be calls to is()
and that needed tiny fixes to match the expected value.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:21:18 +00:00
Julian Descottes
73e3a16c0d Bug 1499096 - Use ok() with 2 arguments instead of 3 when possible;r=Standard8
Depends on D8740.
This changeset replaces calls to ok with 3 arguments to calls with 2 arguments
in situations where the switch does not have a significant impact on the assert.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 07:13:35 +00:00
fvsch
53b58056e8 Bug 1490491 - Part 4: replace 2 png icons, remove 2 unused; r=pbro
Depends on D5954

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

--HG--
extra : moz-landing-system : lando
2018-10-22 14:47:28 +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
Alexandre Poirot
bbd1bcdcbe Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes
* debugger-controller and events.js are special and require to support two cases because this is
the only production codepath that can have a TabTarget or a WorkerTarget.
Thus, leading to either TargetFront or WorkerClient on target.activeTab.
* webide.js doesn't need to listen for tabNavigated, this is redundant with tabListChanged.
* application's initializer. In case you are wondering this code can't be spawn against a WorkerTarget.
The application panel doesn't work in worker toolboxes.
* The code modified in target is in TabTarget, so we don't have to support the WorkerClient case, we always have a TargetFront here.
* I tried to update the doc file the best I can but this all feel outdated.

MozReview-Commit-ID: 2hGchebfIub

Depends on D7458

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

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:10 +00:00
Brindusan Cristian
c328bc1cdf Backed out 8 changesets (bug 1485660) for damp failures on front.hasRequests. CLOSED TREE
Backed out changeset 7a2f29bbe2a8 (bug 1485660)
Backed out changeset 26e82fa62444 (bug 1485660)
Backed out changeset 9bb2f56f219d (bug 1485660)
Backed out changeset 40a3c2dd1b38 (bug 1485660)
Backed out changeset cfb160882db9 (bug 1485660)
Backed out changeset 3642f2d66777 (bug 1485660)
Backed out changeset 9026679753b2 (bug 1485660)
Backed out changeset dccca441b980 (bug 1485660)
2018-10-11 22:33:35 +03:00
Alexandre Poirot
cf0d0480eb Bug 1497644 - Always call Root actor's getProcess request via RootClient.getProcess r=yulia
I also made its argument mandatory, so that later in root spec we can use a non-nullable number.

MozReview-Commit-ID: BUPgI1ww1gC

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

--HG--
extra : moz-landing-system : lando
2018-10-11 16:26:45 +00:00