Commit Graph

50 Commits

Author SHA1 Message Date
Alexandre Poirot
3675c8a0f9 Bug 1382377 - Make Console API be a no-op until DevTools are opened at least once. r=baku,jdescottes
MozReview-Commit-ID: 4xuzRQKH3Vg

--HG--
extra : rebase_source : f388a7222df314c988c3af20afb59684cc1045e5
2017-08-08 16:29:34 +02:00
Kris Maglione
821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Julian Descottes
024a25f592 Bug 1386616 - dt-addon: move key-shortcuts.properties to devtools/shim/locales;r=ochameau
MozReview-Commit-ID: 9zUqnuYIdWS

--HG--
rename : devtools/client/locales/en-US/key-shortcuts.properties => devtools/shim/locales/en-US/key-shortcuts.properties
extra : rebase_source : 806a6baa5886fbad2b50df80a7560b5300bd25b5
2017-08-02 16:20:58 +02:00
Julian Descottes
1e72d11d7b Bug 1386616 - dt-addon: create new devtools/shim locale;r=Pike
MozReview-Commit-ID: JVnBlBSPpw1

--HG--
extra : rebase_source : 1a8239167f5bfc98a170907e1337ac19b27e0799
2017-08-03 16:57:19 +02:00
Julian Descottes
68384c971b Bug 1392531 - create dedicated tab target instance for web-extensions;r=jdescottes
MozReview-Commit-ID: G7EOfYnZuZw

--HG--
extra : rebase_source : f363f9cb0027b20d9c8c5cb684af3b295b9ad289
2017-08-22 16:31:44 +02:00
Julian Descottes
d148f3f8c0 Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i

--HG--
extra : source : da075933f7bcd9e3b7ff735879c521bb50f28b7a
2017-07-24 12:12:47 +02:00
Julian Descottes
721cd7ffa1 Bug 1374735 - use DevToolsShim to retrieve the WebExtensionInspectedWindowFront;r=ochameau,rpl
Expose an API to retrieve devtools' WebExtensionInspectedWindowFront which is needed
for webextensions. Exposed a new API on devtools/DevToolsShim

MozReview-Commit-ID: Dyc2UUJGsrs

--HG--
extra : source : b7435cd66ce3299d23f71a9bf855edbcb1ccacf2
2017-07-12 11:04:28 +02:00
Julian Descottes
8725798c60 Bug 1374735 - use DevToolsShim to create TabTarget in ext-devtools;r=mixedpuppy
Removing dependencies from mozilla-central to devtools. Use DevTools shim instead
of directly depending on devtools code here.

MozReview-Commit-ID: CeV5tfw1Vnz

--HG--
extra : source : 22baf4e67730ce89d5342cb0dd5c1e2e5944b4a1
2017-06-22 20:44:56 +02:00
Ryan VanderMeulen
b708734864 Backed out 4 changesets (bug 1374735) for test_ext_i18n.js failures on a CLOSED TREE.
Backed out changeset 50a36fb7c7f9 (bug 1374735)
Backed out changeset da075933f7bc (bug 1374735)
Backed out changeset b7435cd66ce3 (bug 1374735)
Backed out changeset 22baf4e67730 (bug 1374735)
2017-08-18 12:34:22 -04:00
Julian Descottes
e88a15e62e Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i

--HG--
extra : rebase_source : 6a079c88e5908cc8f8a021bb0a12ea44670bc5ce
2017-07-24 12:12:47 +02:00
Julian Descottes
0cda1042cc Bug 1374735 - use DevToolsShim to retrieve the WebExtensionInspectedWindowFront;r=ochameau,rpl
Expose an API to retrieve devtools' WebExtensionInspectedWindowFront which is needed
for webextensions. Exposed a new API on devtools/DevToolsShim

MozReview-Commit-ID: Dyc2UUJGsrs

--HG--
extra : rebase_source : 018660cc54bf2454c1f810ded639fd647ba79da3
2017-07-12 11:04:28 +02:00
Julian Descottes
c6f45428f0 Bug 1374735 - use DevToolsShim to create TabTarget in ext-devtools;r=mixedpuppy
Removing dependencies from mozilla-central to devtools. Use DevTools shim instead
of directly depending on devtools code here.

MozReview-Commit-ID: CeV5tfw1Vnz

--HG--
extra : rebase_source : 515278b93ad9840f6af89fb13cc62bb819a65253
2017-06-22 20:44:56 +02:00
Brian Grinstead
4902b5d260 Bug 1388552 - Save Browser Console state in session store;r=mikedeboer,nchevobbe
This evolves restoreScratchpadSession into restoreDevToolsSession which can keep track
of more than just scratchpad windows. In this case we also restore the Browser Console.

MozReview-Commit-ID: D4vOGkpq8xH

--HG--
extra : rebase_source : 33f1a2183ee717c79f360a7dda688832a5c33566
2017-08-11 09:16:59 -07:00
Brian Grinstead
0262e6e6ac Bug 1388552 - Export the HUDService object directly instead of individual methods and properties;r=nchevobbe
MozReview-Commit-ID: 9AYCuqqv1U7

--HG--
extra : rebase_source : 83612fd2c4edfde5c86cfc11a70682cc74ebfa12
2017-08-11 09:07:04 -07:00
Julian Descottes
c6f19f876e Bug 1388738 - add comment for devtools-startup developerToggleCreated flag;r=ochameau
MozReview-Commit-ID: FN4YuM7VpHf

--HG--
extra : rebase_source : f8adaedf6511ce2ed4ffd493afbffca64337f01f
2017-08-10 11:58:36 +02:00
Julian Descottes
62b13a707c Bug 1388738 - reuse devtools-startup initDevTools in DevToolsShim;r=ochameau
MozReview-Commit-ID: 7Qr06CZBYuf

--HG--
extra : rebase_source : 55e275f49c14ada8d9633a2999ce0a86382055b9
2017-08-09 17:17:46 +02:00
Julian Descottes
a3b6311216 Bug 1386821 - add a separate flag to check if devtools entry point was recorded;r=ochameau
MozReview-Commit-ID: Ae1k097opw5

--HG--
extra : rebase_source : 3e1c4662c842f4767f8d2d4dd5128a3d24bc2e38
2017-08-03 12:55:26 +02:00
Julian Descottes
67391889ec Bug 1386821 - call initDevTools if devtools.toolbar.visible is true;r=ochameau
MozReview-Commit-ID: C1EFv9T0VKS

--HG--
extra : rebase_source : dc80edf968e75cfdbf3556c062901cbf9875c4a6
2017-08-03 08:57:38 +02:00
Julian Descottes
7c91ef2812 Bug 1387462 - Fix devtools shim test if devtools are not installed;r=ochameau
MozReview-Commit-ID: 28ArQzFGZ6H

--HG--
extra : rebase_source : 59f672548e0352ee60774ea87d4426618f050d2e
extra : source : 7cf0689936eb9cb843cb9e94f326e9b4903e843d
2017-07-25 19:52:34 +02:00
Julian Descottes
1738a4ac42 Bug 1387359 - add developer toggle to CustomizableUI even if devtools already loaded;r=nchevobbe
After Bug 1359855, the developer toggle is added to CustomizableUI via devtools-startup.
It is added after browser-delayed-startup-finished is received. However when starting
devtools with --jsconsole, devtools will be initialized before we receive the event and
the toggle will never be added to the UI.

Introducing a new flag here dedicated to the developer toggle and adding a few comments
to the devtools-startup:hookWindow() method which becomes a bit complex now.

MozReview-Commit-ID: IhPFznt0O83

--HG--
extra : rebase_source : d282e39c0588fca29813305292e53e71f93814bd
2017-08-04 11:09:56 +02:00
Julian Descottes
c0c69ebef6 Bug 1386620 - dt-addon-prefs: move devtools.theme preference to devtools-startup-prefs.js;r=bgrins
MozReview-Commit-ID: GOWh7COmCSx

--HG--
extra : rebase_source : 72952b2f7373ac19144711e53342c37dfb2d050d
extra : source : 57dfefe7df235df85d083cca1b43479dc5af3f45
2017-07-25 16:45:08 +02:00
Julian Descottes
54c09394be Bug 1386620 - dt-addon-prefs: move jsonview enabled pref outside of devtools addon;r=ochameau
DevTools preferences are loaded dynamically by calling DevtoolsPreferences.loadPrefs().
We can not preload them when the addon starts, otherwise this will slow down the startup
of Firefox.

But jsonview's converter-observer needs to check preferences to check if jsonview is
enabled very early. Moving devtools.jsonview.enabled to a separate preferences file
that is still processed by firefox fixes the issue.

The downside is that this pref will keep following m-c's release cycle and not the addon's.
But it is so generic it should not be a big issue.


MozReview-Commit-ID: HrD5IVe54Ks

--HG--
extra : rebase_source : bb85aa12ec92db7d11abdb002f0429123b173afd
extra : source : 9622410d90ad264933ee7d1147ed655615ac4a19
2017-07-21 12:27:35 +02:00
Julian Descottes
c18173354b Bug 1386620 - dt-addon: move devtools-startup to devtools shim folder;r=ochameau
MozReview-Commit-ID: GNFAyfXHIa9

--HG--
rename : devtools/client/devtools-startup.js => devtools/shim/devtools-startup.js
rename : devtools/client/devtools-startup.manifest => devtools/shim/devtools-startup.manifest
extra : rebase_source : 32fda4768488b517399d6864c15aa5cbc2639fb6
extra : source : 8d2736d54513382969ba510186860486e66d8b1d
2017-07-20 18:56:39 +02:00
Sebastian Hengst
9d40682893 Backed out changeset d0ed0997f4e0 (bug 1369801)
MozReview-Commit-ID: P1ViGMmdnT
2017-07-27 18:14:48 +02:00
Sebastian Hengst
934f66df50 Backed out changeset a31f0c8450a8 (bug 1369801)
MozReview-Commit-ID: 6jOXOX1WfFy
2017-07-27 18:14:43 +02:00
Sebastian Hengst
12c5c09136 Backed out changeset 082ece5eba4d (bug 1369801)
MozReview-Commit-ID: LinIFYwj1fW

--HG--
rename : devtools/shim/devtools-startup.js => devtools/client/devtools-startup.js
rename : devtools/shim/devtools-startup.manifest => devtools/client/devtools-startup.manifest
2017-07-27 18:14:03 +02:00
Sebastian Hengst
5566c73770 Backed out changeset 71b891583296 (bug 1369801)
MozReview-Commit-ID: A6KDPVjAL8X
2017-07-27 18:13:58 +02:00
Sebastian Hengst
4c2d1c0374 Backed out changeset ad2610a5e6ba (bug 1369801)
MozReview-Commit-ID: 8fzyVFiiN0D
2017-07-27 18:13:29 +02:00
Julian Descottes
e7a8569efe Bug 1369801 - move devtools.inspector.enabled to devtools-startup-prefs;r=ochameau
MozReview-Commit-ID: BojshjPhVGe

--HG--
extra : rebase_source : c1d82bfd8bd0108ea3f30c7573a4c4d597b6979f
2017-07-25 22:09:01 +02:00
Julian Descottes
b188e49fd4 Bug 1369801 - Fix devtools shim test now that devtools resource path is not registered;r=ochameau
MozReview-Commit-ID: 28ArQzFGZ6H

--HG--
extra : rebase_source : bc127d13f832d1acf4f31fcf3f424e57c4765572
2017-07-25 19:52:34 +02:00
Julian Descottes
b5b51ea07e Bug 1369801 - dt-addon: move devtools-startup to devtools shim folder r=ochameau
MozReview-Commit-ID: GNFAyfXHIa9

--HG--
rename : devtools/client/devtools-startup.js => devtools/shim/devtools-startup.js
rename : devtools/client/devtools-startup.manifest => devtools/shim/devtools-startup.manifest
extra : rebase_source : febb74b2dc5777562e36665df52647d7aa486db7
2017-07-20 18:56:39 +02:00
Julian Descottes
1d362112a9 Bug 1369801 - dt-addon-prefs: move devtools.theme preference to devtools-startup-prefs.js;r=bgrins
MozReview-Commit-ID: GOWh7COmCSx

--HG--
extra : rebase_source : 59713e0a7e5ab514761e3506c6659d6b1d17bb61
2017-07-25 16:45:08 +02:00
Julian Descottes
be3db82a6e Bug 1369801 - dt-addon-prefs: move jsonview enabled pref outside of devtools addon;r=ochameau
DevTools preferences are loaded dynamically by calling DevtoolsPreferences.loadPrefs().
We can not preload them when the addon starts, otherwise this will slow down the startup
of Firefox.

But jsonview's converter-observer needs to check preferences to check if jsonview is
enabled very early. Moving devtools.jsonview.enabled to a separate preferences file
that is still processed by firefox fixes the issue.

The downside is that this pref will keep following m-c's release cycle and not the addon's.
But it is so generic it should not be a big issue.


MozReview-Commit-ID: HrD5IVe54Ks

--HG--
extra : rebase_source : 7feb021770c827996e276b60169b08093ecc1ff0
2017-07-21 12:27:35 +02:00
Alexandre Poirot
73bb3be2cc Bug 1359855 - Automatically initialize DevTools when accessing DevToolsShim.gDevTools. r=jdescottes
WebExtension tests expect DevTools to be automatically initialized,
they access DevToolsShim.gDevTools.getTargetForTab in order to open DevTools.

MozReview-Commit-ID: 3VQRlxgBkI0

--HG--
extra : rebase_source : 66fe8aeef5314fe06ac59ae025b1321fcc1195fc
2017-07-24 14:30:24 +02:00
Alexandre Poirot
53c9434795 Bug 1359855 - Prevent loading DevTools when saving session restore data. r=jdescottes,mossop
MozReview-Commit-ID: 1d7WmiGRSmp

--HG--
extra : rebase_source : 3bf708a25962a6ec4bbf1b24b89f1758468a0472
2017-07-20 12:38:09 +02:00
Carsten "Tomcat" Book
21c8982ca4 Backed out changeset 2dd30b065030 (bug 1359855) 2017-07-24 12:07:02 +02:00
Alexandre Poirot
0a5d2f6a1c Bug 1359855 - Prevent loading DevTools when saving session restore data. r=jdescottes,mossop
MozReview-Commit-ID: 1d7WmiGRSmp

--HG--
extra : rebase_source : 3bf708a25962a6ec4bbf1b24b89f1758468a0472
2017-07-20 12:38:09 +02:00
Julian Descottes
c0bf02c7c5 Bug 1382173 - devtools shim support initialized and installed states;r=ochameau
MozReview-Commit-ID: 4CmfzyLVrM4

--HG--
extra : rebase_source : 372e1f32746e4cc6e2686b9b92848d18ffde576b
extra : source : 8f7664516d49c6013e5fd1cc9e4efd1f0cbab84a
2017-07-19 13:40:53 +02:00
Julian Descottes
e698093458 Bug 1372520 - use DevToolsShim to inspectNode in nContextMenu;r=bgrins,mixedpuppy
As devtools become optional, nsContextMenu needs to check if devtools are installed before
displaying the devtools-related menu entries.

Rather than loading devtools classing and calling APIs, use APIs provided by the DevToolsShim,
that will stay in mozilla-central.

MozReview-Commit-ID: CxqabTjhckC

--HG--
extra : rebase_source : 1781edcf11316eab7e95cbab834d1bc3230c44d7
2017-06-14 17:52:50 +02:00
Julian Descottes
a7015fc300 Bug 1367425 - Use DevToolsShim in webextensions codebase;r=mixedpuppy
Use DevToolsShim to access devtools APIs from webextensions code.
For webextensions tests using DevTools, tests are accessing DevToolsShim.gDevTools
which is fine for test purposes.

MozReview-Commit-ID: 66gFV98xvpf

--HG--
extra : rebase_source : 05734afae4368c5d7e4682b5fae1b8f3e4417220
2017-05-26 15:48:15 +02:00
Julian Descottes
882c976a5a Bug 1367424 - add shims for addon sdk to DevToolsShim;r=ochameau
Some APIs and methods still used by the addon sdk are not worth exposing
or migrating to mozilla-central given that this is only intended for
release 56 (after that, legacy extensions will no longer be supported).

For those APIs, we create a simple wrapper in DevToolsShim and moved the
implementation to framework/devtools

MozReview-Commit-ID: 8LiiptqO0NI

--HG--
extra : rebase_source : 3e4832bcaffa92d64e9d2490bcc0250bc05573c1
2017-06-06 14:01:32 +02:00
Sebastian Hengst
ccf4e450a6 Backed out changeset f972a227ac15 (bug 1367424) for failing test_chrome_ext_hybrid_addons.html on Android. r=backout 2017-06-12 18:25:24 +02:00
Julian Descottes
dca07d04dd Bug 1367424 - add shims for addon sdk to DevToolsShim;r=ochameau
Some APIs and methods still used by the addon sdk are not worth exposing
or migrating to mozilla-central given that this is only intended for
release 56 (after that, legacy extensions will no longer be supported).

For those APIs, we create a simple wrapper in DevToolsShim and moved the
implementation to framework/devtools

MozReview-Commit-ID: 8LiiptqO0NI

--HG--
extra : rebase_source : 17685611ae0270afd6b819043b56cda94511a723
2017-06-06 14:01:32 +02:00
Sebastian Hengst
09cf712b58 Backed out changeset 8ecdc6d29e1d (bug 1367424) for failing jetpack's test-dev-panel.js.test Panel API and more. r=backout 2017-06-06 13:03:41 +02:00
Julian Descottes
4cbdadf23f Bug 1367424 - add shims for addon sdk to DevToolsShim;r=ochameau
Some APIs and methods still used by the addon sdk are not worth exposing
or migrating to mozilla-central given that this is only intended for
release 56 (after that, legacy extensions will no longer be supported).

For those APIs, we create a simple wrapper in DevToolsShim and moved the
implementation to framework/devtools

MozReview-Commit-ID: 8LiiptqO0NI

--HG--
extra : rebase_source : 357b503532fed7933a6690418b846c70350c59b9
2017-05-29 18:21:21 +02:00
Julian Descottes
e7209cfe2e Bug 1366823 - add Scratchpad manager APIs to DevToolsShim;r=ochameau
MozReview-Commit-ID: 5JsSu9Spkgn

--HG--
extra : rebase_source : 83d93d5168ddb7f4310543ff6d12e0f809d3db87
extra : source : 62e2f83b5992f2117caf4a7f76202437ce6e3d16
2017-05-29 14:50:07 +02:00
Julian Descottes
5fb78f1d7e Bug 1363327 - register about:debugging dynamically using a manifest;r=ochameau
MozReview-Commit-ID: 2WG5zN6p1EK

--HG--
extra : rebase_source : e64de772772242fbae8de186df0f97ba60df92d2
2017-05-26 10:09:42 +02:00
Julian Descottes
c145a6fb23 Bug 1366622 - add license headers in devtools/shim;r=ochameau
MozReview-Commit-ID: 4t8nYdTc7

--HG--
extra : rebase_source : 677eacb7e5f0017454593bd3a056722f513b4d20
2017-05-22 00:02:32 +02:00
Julian Descottes
9abe8798b4 Bug 1356244 - emit registered/unregistered events from DevTools Shim;r=ochameau
MozReview-Commit-ID: HshI3viGq7f

--HG--
extra : rebase_source : 26f9569b9f4819a453f7ee60fda9d963b34ab611
extra : source : fb89c80a02109dcd0822174f6c6eded2ca7a8594
2017-05-17 13:53:53 +02:00
Julian Descottes
52acc63ebc Bug 1356244 - devtools-addon: create low-level DevTools shim for mozilla-central;r=ochameau
MozReview-Commit-ID: KdfomLHgdLY

--HG--
extra : rebase_source : 5fff97798bfe3eeac98c8be12cbcfe6e6177afa8
extra : source : 2d422bec07d3a5bab5d83b4c949f27c6e49be261
2017-05-18 09:12:22 +02:00