Commit Graph

135 Commits

Author SHA1 Message Date
yulia
e43fffae44 Bug 1462399 - remove GCLI commands; r=ochameau
This patch removes remaining files and traces of GCLI panel commands.

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

--HG--
extra : moz-landing-system : lando
2018-09-03 17:24:32 +00:00
Kris Maglione
9a8a840c9d Bug 1484496: Part 5d - Convert devtools/ nsISimpleEnumerator users to use JS iteration. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3732

--HG--
extra : rebase_source : 0154c72286ce0ca3ade84c5c360122861a36c7b0
extra : histedit_source : 83a8b267becbf86db5f8789d3673bd529da35286
2018-08-18 19:28:37 -07:00
Boris Zbarsky
0e54dc6661 Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
J. Ryan Stinnett
9d30878aa5 Bug 1473687 - Wait for files to finish loading in Scratchpad test. r=ochameau
In devtools/client/scratchpad/test/browser_scratchpad_recent_files.js, we would
import test files and delete them from disk before the read had fully completed,
which caused an error.  (This test also had various other troubles like not
actually writing anything to the test files.)

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

--HG--
extra : moz-landing-system : lando
2018-07-06 07:44:41 +00:00
Alexandre Poirot
b18ae66a40 Bug 1471152 - Package all panel scripts under resource://devtools/ instead of chrome://devtools/. r=jdescottes
MozReview-Commit-ID: 72iggFSZswN

--HG--
extra : rebase_source : 9e6192682deb3c7ecd162515a2a5ac6b391f9674
2018-06-25 12:59:22 -07:00
Alexandre Poirot
63b32d2839 Bug 1470989 - Rename all panel modules to "panel.js". r=jdescottes
MozReview-Commit-ID: HN33KNmbCaY

--HG--
rename : devtools/client/accessibility/accessibility-panel.js => devtools/client/accessibility/panel.js
rename : devtools/client/dom/dom-panel.js => devtools/client/dom/panel.js
rename : devtools/client/scratchpad/scratchpad-panel.js => devtools/client/scratchpad/panel.js
rename : devtools/client/styleeditor/styleeditor-panel.js => devtools/client/styleeditor/panel.js
extra : rebase_source : 24bef9ee149421ac77a5d05f7f1d98e66f556875
2018-06-25 12:47:52 -07:00
Alexandre Poirot
f7e331b36e Bug 1470244 - Rename all panel documents to index.{xul|html}. r=jdescottes
MozReview-Commit-ID: 5C3ehYKBt3m

--HG--
rename : devtools/client/accessibility/accessibility.html => devtools/client/accessibility/index.html
rename : devtools/client/canvasdebugger/canvasdebugger.xul => devtools/client/canvasdebugger/index.xul
rename : devtools/client/debugger/debugger.xul => devtools/client/debugger/index.xul
rename : devtools/client/dom/dom.html => devtools/client/dom/index.html
rename : devtools/client/inspector/inspector.xhtml => devtools/client/inspector/index.xhtml
rename : devtools/client/memory/memory.xhtml => devtools/client/memory/index.xhtml
rename : devtools/client/performance-new/perf.xhtml => devtools/client/performance-new/index.xhtml
rename : devtools/client/performance/performance.xul => devtools/client/performance/index.xul
rename : devtools/client/scratchpad/scratchpad.xul => devtools/client/scratchpad/index.xul
rename : devtools/client/storage/storage.xul => devtools/client/storage/index.xul
rename : devtools/client/styleeditor/styleeditor.xul => devtools/client/styleeditor/index.xul
rename : devtools/client/webaudioeditor/webaudioeditor.xul => devtools/client/webaudioeditor/index.xul
rename : devtools/client/webconsole/webconsole.html => devtools/client/webconsole/index.html
extra : rebase_source : 30d4a2b96c7caf9c2543866e11519559d73f75dc
2018-06-21 11:08:25 -07:00
Sebastian Hengst
82bbb42c90 Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander
MozReview-Commit-ID: 6bs0jkTP6rP

--HG--
extra : rebase_source : 4e554f8e710aea1fb372a0f21d7539cf568baa17
2018-06-20 21:34:40 +03: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
Alexandre Poirot
f68f33087a Bug 1466691 - Replace callback style in favor of promise for TabClient methods. r=jryans
MozReview-Commit-ID: 6Is4O8KQhgY

--HG--
extra : rebase_source : 8987e85385bd202a8e9100a230eff1c1fcdcb4f9
2018-06-05 01:50:40 -07:00
Brian Grinstead
057167f7eb Bug 1425552 - Move clearOutput and clearPrivateMessages from the jsterm and onto the WebConsoleFrame;r=nchevobbe
MozReview-Commit-ID: 9lJW7qt64DT

--HG--
extra : rebase_source : 1a331fb42429206688ac5c980a2915c1c7d48157
2018-06-02 16:44:08 -07:00
Julian Descottes
7fdc2c153f Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks

--HG--
extra : rebase_source : a3f07665a42c2779a85b7901a07206266a9d1616
extra : source : ae946f375e0d0f4f0f0fc859c54040fef42cbc2c
2018-06-01 12:19:35 +02: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
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
abhinav
7d35a49d48 Bug 1454045 - Downgrade openTrustedLinkIn for DevTools where pages don't need special powers. r=jryans
MozReview-Commit-ID: GqDS7jlF3Ni

--HG--
extra : rebase_source : aa0bf50fb3df3c2147c899f7ebe16e32414cbf4d
2018-05-07 00:47:43 +05:30
Mark Banner
f7f93b63da Bug 1456755 - Enable ESLint rule no-undef for devtools/{client/scratchpad/,shared/tests/unit}. r=jdescottes
MozReview-Commit-ID: 1GdQdf1y0gc

--HG--
extra : rebase_source : ce83f4ebc4dd66202651b061bcdaef7e9ca360ba
2018-04-24 21:46:01 +01:00
Mantaroh Yoshinaga
40919c22b6 Bug 1455496 - Part 2. Add test of existence of scratchpad's menu bar. r=jdescottes 2018-04-23 09:26:15 +09:00
Mantaroh Yoshinaga
f65311bb20 Bug 1455496 - Part 1. Hide toolbar of scratchpad panel. r=dao
The scratchpad panel(in the toolbox) should not display menu bar.
This patch will hide this menu bar if target is toolbox.
2018-04-23 09:25:59 +09:00
Boris Zbarsky
45a3faf8f6 Bug 1455052 part 12. Remove JS uses of nsIDOMEvent. r=masayuki,kmag
MozReview-Commit-ID: 5g0H3rzxTXt
2018-04-20 12:55:31 -04:00
Kris Maglione
9da74a6674 Bug 1455176: Follow-up: Fix devtools bustage in straggler tests that still use Task global. r=bustage
MozReview-Commit-ID: J0ieBBJGZWM

--HG--
extra : rebase_source : ffa1e92e83c38ab5cc970ea8b90b037026e6939e
2018-04-19 16:15:00 -07:00
Alexandre Poirot
9b2fdcf8bb Bug 1453712 - Use a preference to set the testing flag. r=jryans
MozReview-Commit-ID: 1cjSQnXtc4h

--HG--
extra : rebase_source : 55c0c9fa81a8dc17b92cba721dcc5912b07d0fab
2018-04-12 09:22:42 -07:00
Brian Grinstead
86d5c02846 Bug 1304794 - Stop using the old frontend for remaining non-console mochitests r=nchevobbe
MozReview-Commit-ID: D9azk5jNzpm

--HG--
extra : rebase_source : c361776292202609c408c25533aeab64428c4a47
2018-04-12 09:29:43 -07: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
Dão Gottwald
bf9d434a13 Bug 1450559 - Remove nsISessionStore in favor of SessionStore.jsm. r=mikedeboer
MozReview-Commit-ID: 8spvIOus9ai

--HG--
rename : browser/components/sessionstore/nsSessionStore.manifest => browser/components/sessionstore/nsSessionStartup.manifest
extra : rebase_source : fc353af87bd620b7039d3e6241cc60c3788e3da6
2018-04-05 16:30:48 +02:00
Mark Banner
a0259c665b Bug 1451659 - Fix mochitest issues after enabling ESLint on more files in devtools. r=jdescottes
MozReview-Commit-ID: 4KZjO1VewoE

--HG--
extra : rebase_source : 5db3e7be1f73514ca5b1e56d0558eb70f5952592
2018-04-05 11:08:30 +01:00
Mark Banner
3e2d95e5c0 Bug 1451659 - Enable ESLint for devtools/client/{canvasdebugger,framework,scratchpad,shadereditor}/. r=jdescottes
Disable rules with many failures for now, in a way that mentored bugs can easily pick them up.
Fix other minor issues raised by various rules.

MozReview-Commit-ID: 71OQI7jLihe

--HG--
extra : rebase_source : 7eac06299e6bbc6ae84e21b263c105555a06e757
2018-04-04 23:24:04 +01:00
Mark Banner
34a483b76d Bug 1451659 - Automated ESLint fixes for devtools/client/scratchpad/. r=jdescottes
MozReview-Commit-ID: ACluPVPspsQ

--HG--
extra : rebase_source : 473724688611bbda178cd3b58859dba3e9f41570
2018-04-05 08:01:09 +01:00
Oriol Brufau
22273d6ed4 Bug 1445805 - Remove unsafe CPOWs in Scratchpad tests r=jryans
MozReview-Commit-ID: 6wvOxhrtTUp

--HG--
extra : rebase_source : 144cc1e4003d18537a94c102a0c494a68b84ec26
2018-03-20 04:26:23 +01:00
Kris Maglione
83957914cc Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT

--HG--
extra : rebase_source : f7b79ad5998f1138266e89767ee1b434e4797b30
2018-03-14 14:35:05 -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
Nicolas Chevobbe
56166f1711 Bug 1382604 - Remove old-event-emitter usage from scratchpad; r=jryans.
Usage was removed from devtools/client/framework/sidebar as well since it emits
events with the parent component.

MozReview-Commit-ID: 24LLmnSZ89I

--HG--
extra : rebase_source : 3ede287d862c80817fe4767e8d029dda26cbb58b
2018-03-05 10:45:55 +01:00
Nicolas Chevobbe
8ea55ce28a Bug 1382606 - Switch webconsole to new event-emitter; r=Honza.
MozReview-Commit-ID: HBogPeOI7WM

--HG--
extra : rebase_source : 4ad1fb922ffc818d175ae3c09820ce31ba416487
2018-02-23 09:10:36 +01:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01: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
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
Brian Grinstead
18bb37dcc8 Bug 1392352 - Part 2 - Translate the tabbrowser implementation into a JS class;r=mconley,r=dao CLOSED TREE
We keep the XBL binding around for <content>, <constructor>, and <destructor>. This can
eventually be migrated to a Custom Element once we have platform support, but in the meantime
this is a way to get the many thousands of LOC into a JS class.

MozReview-Commit-ID: 1dCQp527yF9

--HG--
extra : rebase_source : 26b833413bab71168aa15e03f0f3803884be3f6b
extra : amend_source : 150cef6748ca8a9e819de0c674fac5966dd574cf
2018-02-27 10:04:14 -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
9f4f847021 Bug 1397366 - restore source-editor commands controller for scratchpad & styleeditor menus;r=ochameau
MozReview-Commit-ID: Cfgws8fqgvp

--HG--
extra : rebase_source : 45f03264527acc9fe70a49931c08a76e97ee778a
2018-01-03 20:52:58 +01:00
Vincent Lequertier
450fb4980c Bug 1393464 - Remove Heritage from devtools helper view-helpers.js; r=pbro
Calling "devtools/shared/extend" instead.

MozReview-Commit-ID: HbonI7vq8Be

--HG--
extra : rebase_source : 5c9f2ccd0f5cddfcdb1949354932fd492564cc93
2018-01-04 18:54:52 +01:00
Bill McCloskey
9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Andreea Pavel
89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00