Commit Graph

113 Commits

Author SHA1 Message Date
J. Ryan Stinnett
23ff4cc75d Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Nicholas Nethercote
cb93c8b8f0 Bug 440908 - Convert sticky prefs in default pref files to the new syntax. r=glandium
MozReview-Commit-ID: GgkNSsdGhBV

--HG--
extra : rebase_source : efaf5f79ab7b608975ee960057d8be380061fdc0
2018-03-07 09:34:06 +11:00
Julian Descottes
470ac856ce Bug 1442451 - do not restore DevTools session when disabled by policy;r=jryans
MozReview-Commit-ID: oORq9CltE3

--HG--
extra : rebase_source : f4344a5ec10ef1ea68494fcdb6b1f9400b4f82be
2018-03-02 08:55:24 +01:00
Mark Banner
ae8b52cc98 Bug 1442377 - Move fillSubviewFromMenuItems/clearSubview to CustomizableUI.jsm. r=Gijs
MozReview-Commit-ID: BQ8V39C68WO

--HG--
extra : rebase_source : e6937b10849b07940cfa9b1bb48807e7edd8131e
2018-03-01 19:53:07 +00:00
Julian Descottes
1bc51fdad7 Bug 1441578 - remove developer button in disable devtools test for DEV_EDITION;r=ochameau
MozReview-Commit-ID: BxwGNBFkgW

--HG--
extra : rebase_source : 2ec639d6c1ca5c2b6e86ad00ab7baf51a78992d5
2018-02-27 20:00:45 +01:00
Brian Grinstead
97119973ca Bug 1440094 - Remove imports to Console.jsm that only access the 'console' object;r=mossop
Importing this object is unnecessary after the updates to the WebIDL console from Bug 1425574
and the follow-ups blocking Bug 1430810. There are still callers that access Console.jsm
to create custom ConsoleAPI objects, but those will be handled separately.

MozReview-Commit-ID: 9ojFxtkpPId

--HG--
extra : rebase_source : 971bf99f709b8d2afe300f3693665724f747aa5e
2018-02-27 11:29:59 -08:00
Julian Descottes
611ba35e84 Bug 1429185 - Add test for DevTools disabled by policy;r=ochameau
MozReview-Commit-ID: It3jD5oDZxt

--HG--
extra : rebase_source : 1ceab46ff89f0330aa4a492b6b064501d74da180
2018-02-23 17:49:37 +01:00
Julian Descottes
9096c5617c Bug 1429185 - Disable all devtools entry points with devtools.policy.disabled;r=ochameau
MozReview-Commit-ID: 9ObZc8my1mE

--HG--
extra : rebase_source : 0b4564987831d28f68308927ca60a9cff0818d4a
2018-02-22 17:44:03 +01:00
Brian Grinstead
89210dfc96 Bug 1438487 - Restore the Browser Toolbox using session store;r=jryans
MozReview-Commit-ID: JUbafbthojm

--HG--
extra : rebase_source : eb8f4c3d10ec60475594c43010afe7ef6088a3f2
2018-02-21 15:47:36 -08: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
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Julian Descottes
8c053a5c46 Bug 1428191 - create developer toggle widget before first paint in DevEdition;r=ochameau
MozReview-Commit-ID: KEJNzXrDrEE

--HG--
extra : rebase_source : d046029277b34da86457eac4c41ebd1d361dd2e5
2018-01-05 13:44:19 +01:00
Julian Descottes
7cbf0a6657 Bug 1425280 - Fix localization note mismatch in devtools files;r=pbro
MozReview-Commit-ID: FVJUjB25smI

--HG--
extra : rebase_source : acdf3b9dca3fede5c3b621f8f8064002bd77e978
extra : source : 9a75a20d6fba62635c6646af38cffabb5701a77a
2017-12-14 15:43:37 -06:00
Julian Descottes
a38e35b3bc Bug 1418952 - style updates for about:devtools;r=nchevobbe
MozReview-Commit-ID: IFaDZBgmJPh

--HG--
extra : rebase_source : 2527b60e1bd23e9fd196296089ef9c0cea449d1b
2017-11-20 11:48:38 +01:00
Julian Descottes
c186e09d03 Bug 1418952 - update about:devtools strings;r=flod,nchevobbe
MozReview-Commit-ID: B20sojPHg7H

--HG--
extra : rebase_source : 04b23af830b3fd5ce16fe76ee47e3bca4e013575
2017-11-20 10:26:43 +01:00
Julian Descottes
af2e5d5dd1 Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG

--HG--
extra : rebase_source : 7704264e84d96e03a0c789103ff466980913d4d2
2017-11-13 21:22:15 +01:00
Julian Descottes
4cac7dcb25 Bug 1416711 - Migrate addBrowser/TabActors to registerActors;r=ochameau
DebuggerServer has old APIs addBrowserActors & addTabActors that can be
replaced by calls to registerActors.

MozReview-Commit-ID: KpYJpbSHM8I

--HG--
extra : rebase_source : c7f20edf503b944ef2582b5fe73bd6d899c0d1cc
2017-11-13 20:29:55 +01:00
Julian Descottes
cfef7be9a1 Bug 1386979 - register about-devtools-toolbox on browser startup;r=ochameau
MozReview-Commit-ID: GUBEyzg2qCw

--HG--
rename : devtools/client/framework/about-devtools-toolbox.js => devtools/shim/aboutdevtoolstoolbox-registration.js
extra : rebase_source : 77cf2036dae59c6119b0c0d2dd1ed821ace0f07d
2017-11-21 20:32:51 +01:00
Julian Descottes
bc283794a0 Bug 1418266 - update preference behavior for DevTools onboarding experiment;r=ochameau
The devtools.onboarding.experiment pref now supports 3 states:
- off (default)
- on
- force

When set to "on" or "force" the preference will flip devtools
enabled to false.

When set to "force" the devtools.enabled pref can no longer be
flipped to true by looking at devtools.selfxss.count, users
have to go through the onboarding flow.

To make sure the devtools.enabled pref is only flipped once, we
use a supporting pref devtools.onboarding.experiment.flipped

MozReview-Commit-ID: B5fPKuGxPW2

--HG--
extra : rebase_source : 6da6cc41f6388871cdfc66c04bef3b54ccfabcbf
2017-11-16 19:56:15 +01:00
Julian Descottes
5b2c0adf24 Bug 1408339 - measure onboarding devtools user detection with telemetry;r=ochameau, datareview=francois
MozReview-Commit-ID: G3edBYlyH8f

--HG--
extra : rebase_source : 6cd721dca7e2bfc6e5cbf1938c47d3851ecfb6fc
2017-11-08 17:51:19 +01:00
Julian Descottes
f5d0be6f79 Bug 1408339 - add a preference to drive the devtools onboarding experiment;r=ochameau
MozReview-Commit-ID: I4uGf1MFbI9

--HG--
extra : rebase_source : 22372a8f8fb59c47ad7f75e7fb55e937d721a884
2017-11-05 16:34:26 +01:00
Julian Descottes
d1a9d0eb6d Bug 1412504 - Style updates for about:devtools;r=nchevobbe
MozReview-Commit-ID: BjCimCRFYWr

--HG--
extra : rebase_source : ce071050361e703501e912609f90d894d4deed1d
2017-11-11 10:28:22 +01:00
Gijs Kruitbosch
8c1b02e3d4 Bug 1388029 - remove the remaining uses of AREA_PANEL, r=jaws
MozReview-Commit-ID: L017kRfHfOv

--HG--
extra : rebase_source : c9dcbb76d787281ac2dcf18c59786205aeaacaf9
2017-11-07 12:15:18 +00:00
Julian Descottes
6ba9f761e9 Bug 1413844 - add utm parameters to about:devtools links;r=pbro
MozReview-Commit-ID: EjgklOeYQ2g

--HG--
extra : rebase_source : b54123549878f8f0e571e7dadbfb462559634961
2017-11-09 19:17:35 +01:00
Julian Descottes
e90066e5c9 Bug 1408337 - set devtools.enabled to true if toolbox was recently opened;r=bgrins
MozReview-Commit-ID: RKprmycu6b

--HG--
extra : rebase_source : c881f5342071ee212d438802bdf80556c251891c
2017-10-31 15:52:58 +01:00
Julian Descottes
f55b078bf6 Bug 1408369 - move back aboutdevtools.dtd to devtools/shim/locales;r=flod
Add localization notes to aboutdevtools.dtd and move it back to the locales
folder where it can be picked up by localization teams.

MozReview-Commit-ID: 8fDimFwdBXv

--HG--
rename : devtools/shim/aboutdevtools/tmp-locale/aboutdevtools.dtd => devtools/shim/locales/en-US/aboutdevtools.dtd
extra : rebase_source : a39410806d2fc930eaaf74c7894371aa041b0dfe
2017-11-06 15:36:28 +01:00
Julian Descottes
d0d415d3b0 Bug 1408369 - create about:devtools welcome message dynamically;r=flod,nchevobbe
The welcome message used to be defined in DTD. Since it has a dynamic part (the
toggle toolbox shortcut) it's easier for localization purposes to have it in a
properties file and dynamically insert it.

MozReview-Commit-ID: FhgQjbs8Dw0

--HG--
extra : rebase_source : 35efe9ccd3ce17931edbba5e0deac32c81fc7609
2017-11-07 21:53:55 +01:00
Julian Descottes
2695e6bb98 Bug 1412029 - add probes to about:devtools;r=bgrins,datareview=francois
This changeset adds 3 scalars:
- devtools.aboutdevtools.opened -> logged every time the page is loaded
- devtools.aboutdevtools.installed -> logged when the user clicks on the
  install button
- devtools.aboutdevtools.noinstall_exits -> logged when leaving the page
  if devtools is not enabled

And 2 keyed histograms:
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_REASON (is it a shortcut, is it a menu
  item etc...)
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_KEY (in case of a keyshortcut, what is
  the keyshortcut id)


MozReview-Commit-ID: 1DET1ozf8i4

--HG--
extra : rebase_source : f2f96e29a8849dec83b03d6daacbf6c6ca7fce2f
2017-11-01 18:41:42 +01:00
Julian Descottes
9d5d22f390 Bug 1412029 - pass key shortcut id to aboutdevtools page;r=bgrins
MozReview-Commit-ID: 4Fmj1p1bgsB

--HG--
extra : rebase_source : f236777ea914ebad6cc7a0e61be97491b6eb97c2
2017-11-01 14:47:31 +01:00
Narcis Beleuzu
0f581d68da Backed out 2 changesets (bug 1412029) for ESLint failure "/devtools/shim/aboutdevtools/aboutdevtools.js" r=backout on a CLOSED TREE
Backed out changeset ab41b0060a87 (bug 1412029)
Backed out changeset d3a84e128c3c (bug 1412029)
2017-11-08 13:38:10 +02:00
Julian Descottes
418a668f0e Bug 1412029 - add probes to about:devtools;r=bgrins,datareview=francois
This changeset adds 3 scalars:
- devtools.aboutdevtools.opened -> logged every time the page is loaded
- devtools.aboutdevtools.installed -> logged when the user clicks on the
  install button
- devtools.aboutdevtools.noinstall_exits -> logged when leaving the page
  if devtools is not enabled

And 2 keyed histograms:
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_REASON (is it a shortcut, is it a menu
  item etc...)
- DEVTOOLS_ABOUT_DEVTOOLS_OPENED_KEY (in case of a keyshortcut, what is
  the keyshortcut id)


MozReview-Commit-ID: 1DET1ozf8i4

--HG--
extra : rebase_source : 5038fcb6741653b7f66581cd601ba9dea58a847f
2017-11-01 18:41:42 +01:00
Julian Descottes
2e31574d55 Bug 1412029 - pass key shortcut id to aboutdevtools page;r=bgrins
MozReview-Commit-ID: 4Fmj1p1bgsB

--HG--
extra : rebase_source : f236777ea914ebad6cc7a0e61be97491b6eb97c2
2017-11-01 14:47:31 +01:00
Julian Descottes
692bf7d21f Bug 1408334 - add form to subscribe to mozilla developer newsletter in about:devtools;r=nchevobbe
MozReview-Commit-ID: JuJqNS3r6NH

--HG--
extra : rebase_source : 61c19cadbff27365ba62d8afd000a78974ac67bc
2017-10-31 10:19:00 +01:00
Margareta Eliza Balazs
e0c4e35f57 Backed out changeset 3a8295d1ff40 (bug 1408334) for failing bc in /browser_misused_characters_in_strings.js r=backout on a CLOSED TREE 2017-11-07 21:04:54 +02:00
Julian Descottes
10e099779f Bug 1408334 - add form to subscribe to mozilla developer newsletter in about:devtools;r=nchevobbe
MozReview-Commit-ID: JuJqNS3r6NH

--HG--
extra : rebase_source : 20b9f294cb60873bfa6edc975d4688c1a2365eef
2017-10-31 10:19:00 +01:00
Julian Descottes
07ff2d75b1 Bug 1413840 - add a link to MDN on each about:devtools feature;r=flod,nchevobbe
MozReview-Commit-ID: J9BXHha9SPe

--HG--
rename : devtools/shim/aboutdevtools/images/feature-responsive-mode.svg => devtools/shim/aboutdevtools/images/feature-responsive.svg
rename : devtools/shim/aboutdevtools/images/feature-visual-editing.svg => devtools/shim/aboutdevtools/images/feature-visualediting.svg
extra : rebase_source : c705d48007ac27d129d280d0da8bb5e0541dd37e
2017-11-02 23:21:50 +01:00
Julian Descottes
2c5cda8646 Bug 1411906 - add close button to about:devtools if devtools are disabled;r=nchevobbe
A close button on the starting page of the devtools onboarding flow
will be helpful for users who triggered the shortcut by mistake and
would like to escape the flow.

MozReview-Commit-ID: 7rZ50jFepJ3

--HG--
extra : rebase_source : 9f0dadf3a68f084d05e9f0098a8a7ac90becf964
2017-11-02 21:56:26 +01:00
Julian Descottes
b88fd1ec3c Bug 1408331 - add license header to about:devtools svg files;r=nchevobbe
MozReview-Commit-ID: 3GEL9HTqzDA

--HG--
extra : rebase_source : 1be30233935210f67f4bef994d9636133a7d9a73
2017-10-31 11:37:18 +01:00
Julian Descottes
eb12efebaf Bug 1408331 - add footer to about:devtools page;r=nchevobbe
Add a footer containing a link to download Firefox developer
edition in about:devtools after devtools have been enabled.

MozReview-Commit-ID: KFefF6qB9tO

--HG--
extra : rebase_source : 73155c83264bfb26ca25dfc9c7a2fc6f4655f460
2017-10-25 20:48:24 +02:00
Julian Descottes
16719acdc0 Bug 1410360 - add mochitest for about:devtools tab selection behavior;r=ochameau
MozReview-Commit-ID: 8eX13qJ1jt8

--HG--
extra : rebase_source : 1b4c4f0e1d078f88ab9f4b305d791dfebdb132d5
2017-10-27 18:13:18 +02:00
Julian Descottes
097acc3d05 Bug 1410360 - reselect original tab after closing about:devtools;r=ochameau
MozReview-Commit-ID: 3bInaF7Zeg9

--HG--
extra : rebase_source : d31509b2264a82d091cfdeacf8e889635f4a65b8
2017-10-26 19:03:11 +02:00
Julian Descottes
c166f24405 Bug 1410360 - open about:devtools tab next to the current tab;r=ochameau
MozReview-Commit-ID: Cw0zFAeH7r2

--HG--
extra : rebase_source : 8afa81f0a700ddee3873e5fafc77daa39bb9dfd4
2017-10-26 19:07:58 +02:00
Julian Descottes
7bc1b2d4eb Bug 1413246 - devtools-startup should add event listeners only on initial launch;r=bgrins
MozReview-Commit-ID: HmTWm5jw50Q

--HG--
extra : rebase_source : e08477640d7c2d2f5731e7f091b9f97f3af398e9
2017-10-31 23:15:43 +01:00
Julian Descottes
74e5729dd5 Bug 1412504 - update styling for about:devtools;r=nchevobbe
MozReview-Commit-ID: 42Pe9BD7dVa

--HG--
extra : rebase_source : 06ae7de7791f7d87b14f810db7b3791e66207d8f
2017-10-28 12:47:23 +02:00
Julian Descottes
c1073d72a0 Bug 1412504 - update otter image in about:devtools;r=nchevobbe
MozReview-Commit-ID: FjdDDzcj6BL

--HG--
extra : rebase_source : acb45d0478966e8dd8f3a1c74ba86e1d518f2aaf
2017-10-28 12:22:39 +02:00