Commit Graph
52 Commits
Author SHA1 Message Date
Alexandre Poirot 941991bcc1 Bug 1397452 - Remove all SDK compatiblity code from DevTools. r=jdescottes
MozReview-Commit-ID: IRhZeIS97cy
2017-09-25 16:04:26 +02:00
Oriol Brufau 2767eb0137 Bug 1384572 - Prevent JSON Viewer from loading in iframes. r=Honza
MozReview-Commit-ID: Cj79fMt5oAO
2017-09-20 00:01:21 +02:00
Alexandre Poirot d816033b34 Bug 1382377 - Make Console API be a no-op until DevTools are opened at least once. r=baku,jdescottes
MozReview-Commit-ID: 4xuzRQKH3Vg
2017-08-08 16:29:34 +02:00
Kris Maglione be161e68b4 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
2017-08-19 13:32:58 -07:00
Julian Descottes 122761aa6a Bug 1386616 - dt-addon: move key-shortcuts.properties to devtools/shim/locales;r=ochameau
MozReview-Commit-ID: 9zUqnuYIdWS
2017-08-02 16:20:58 +02:00
Julian Descottes 1cc651613e Bug 1386616 - dt-addon: create new devtools/shim locale;r=Pike
MozReview-Commit-ID: JVnBlBSPpw1
2017-08-03 16:57:19 +02:00
Julian Descottes f493553983 Bug 1392531 - create dedicated tab target instance for web-extensions;r=jdescottes
MozReview-Commit-ID: G7EOfYnZuZw
2017-08-22 16:31:44 +02:00
Julian Descottes 4ba1ec480e Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i
2017-07-24 12:12:47 +02:00
Julian Descottes aaea6acb73 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
2017-07-12 11:04:28 +02:00
Julian Descottes 0136ec01f5 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
2017-06-22 20:44:56 +02:00
Ryan VanderMeulen f40c0d4a06 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 307d4547f9 Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i
2017-07-24 12:12:47 +02:00
Julian Descottes 01c83703fb 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
2017-07-12 11:04:28 +02:00
Julian Descottes db97328707 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
2017-06-22 20:44:56 +02:00
Brian Grinstead 1d229271b6 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
2017-08-11 09:16:59 -07:00
Brian Grinstead 2be258f821 Bug 1388552 - Export the HUDService object directly instead of individual methods and properties;r=nchevobbe
MozReview-Commit-ID: 9AYCuqqv1U7
2017-08-11 09:07:04 -07:00
Julian Descottes 211da9e117 Bug 1388738 - add comment for devtools-startup developerToggleCreated flag;r=ochameau
MozReview-Commit-ID: FN4YuM7VpHf
2017-08-10 11:58:36 +02:00
Julian Descottes 4514014ccd Bug 1388738 - reuse devtools-startup initDevTools in DevToolsShim;r=ochameau
MozReview-Commit-ID: 7Qr06CZBYuf
2017-08-09 17:17:46 +02:00
Julian Descottes 1d3861b9f1 Bug 1386821 - add a separate flag to check if devtools entry point was recorded;r=ochameau
MozReview-Commit-ID: Ae1k097opw5
2017-08-03 12:55:26 +02:00
Julian Descottes 577daf92a3 Bug 1386821 - call initDevTools if devtools.toolbar.visible is true;r=ochameau
MozReview-Commit-ID: C1EFv9T0VKS
2017-08-03 08:57:38 +02:00
Julian Descottes e0c014c493 Bug 1387462 - Fix devtools shim test if devtools are not installed;r=ochameau
MozReview-Commit-ID: 28ArQzFGZ6H
2017-07-25 19:52:34 +02:00
Julian Descottes a06fa404cc 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
2017-08-04 11:09:56 +02:00
Julian Descottes 5015483142 Bug 1386620 - dt-addon-prefs: move devtools.theme preference to devtools-startup-prefs.js;r=bgrins
MozReview-Commit-ID: GOWh7COmCSx
2017-07-25 16:45:08 +02:00
Julian Descottes 6b65b3d94c 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
2017-07-21 12:27:35 +02:00
Julian Descottes e4f4b31aa1 Bug 1386620 - dt-addon: move devtools-startup to devtools shim folder;r=ochameau
MozReview-Commit-ID: GNFAyfXHIa9
2017-07-20 18:56:39 +02:00
Sebastian Hengst 89fac36463 Backed out changeset d0ed0997f4e0 (bug 1369801)
MozReview-Commit-ID: P1ViGMmdnT
2017-07-27 18:14:48 +02:00
Sebastian Hengst c1e14f6557 Backed out changeset a31f0c8450a8 (bug 1369801)
MozReview-Commit-ID: 6jOXOX1WfFy
2017-07-27 18:14:43 +02:00
Sebastian Hengst b0b2270552 Backed out changeset 082ece5eba4d (bug 1369801)
MozReview-Commit-ID: LinIFYwj1fW
2017-07-27 18:14:03 +02:00
Sebastian Hengst 0adaf383ff Backed out changeset 71b891583296 (bug 1369801)
MozReview-Commit-ID: A6KDPVjAL8X
2017-07-27 18:13:58 +02:00
Sebastian Hengst 428d3ddf8a Backed out changeset ad2610a5e6ba (bug 1369801)
MozReview-Commit-ID: 8fzyVFiiN0D
2017-07-27 18:13:29 +02:00
Julian Descottes 7a6623f98e Bug 1369801 - move devtools.inspector.enabled to devtools-startup-prefs;r=ochameau
MozReview-Commit-ID: BojshjPhVGe
2017-07-25 22:09:01 +02:00
Julian Descottes ebce4364fe Bug 1369801 - Fix devtools shim test now that devtools resource path is not registered;r=ochameau
MozReview-Commit-ID: 28ArQzFGZ6H
2017-07-25 19:52:34 +02:00
Julian Descottes fe052d64cc Bug 1369801 - dt-addon: move devtools-startup to devtools shim folder r=ochameau
MozReview-Commit-ID: GNFAyfXHIa9
2017-07-20 18:56:39 +02:00
Julian Descottes 079fccf669 Bug 1369801 - dt-addon-prefs: move devtools.theme preference to devtools-startup-prefs.js;r=bgrins
MozReview-Commit-ID: GOWh7COmCSx
2017-07-25 16:45:08 +02:00
Julian Descottes 8d526d873e 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
2017-07-21 12:27:35 +02:00
Alexandre Poirot 715ae2217a 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
2017-07-24 14:30:24 +02:00
Alexandre Poirot 67781d6a93 Bug 1359855 - Prevent loading DevTools when saving session restore data. r=jdescottes,mossop
MozReview-Commit-ID: 1d7WmiGRSmp
2017-07-20 12:38:09 +02:00
Carsten "Tomcat" Book ab09bf47a3 Backed out changeset 2dd30b065030 (bug 1359855) 2017-07-24 12:07:02 +02:00
Alexandre Poirot 0d5914d13d Bug 1359855 - Prevent loading DevTools when saving session restore data. r=jdescottes,mossop
MozReview-Commit-ID: 1d7WmiGRSmp
2017-07-20 12:38:09 +02:00
Julian Descottes 88b10e51b2 Bug 1382173 - devtools shim support initialized and installed states;r=ochameau
MozReview-Commit-ID: 4CmfzyLVrM4
2017-07-19 13:40:53 +02:00
Julian Descottes 24139ca556 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
2017-06-14 17:52:50 +02:00
Julian Descottes 851f331527 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
2017-05-26 15:48:15 +02:00
Julian Descottes 7e0466ef4c 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
2017-06-06 14:01:32 +02:00
Sebastian Hengst 3b75964ad7 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 44251e878c 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
2017-06-06 14:01:32 +02:00
Sebastian Hengst bc3498c6ce 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 5673c4abd2 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
2017-05-29 18:21:21 +02:00
Julian Descottes 1497714c48 Bug 1366823 - add Scratchpad manager APIs to DevToolsShim;r=ochameau
MozReview-Commit-ID: 5JsSu9Spkgn
2017-05-29 14:50:07 +02:00
Julian Descottes 1e93105ae9 Bug 1363327 - register about:debugging dynamically using a manifest;r=ochameau
MozReview-Commit-ID: 2WG5zN6p1EK
2017-05-26 10:09:42 +02:00
Julian Descottes b2c43f3c13 Bug 1366622 - add license headers in devtools/shim;r=ochameau
MozReview-Commit-ID: 4t8nYdTc7
2017-05-22 00:02:32 +02:00