Commit Graph

122 Commits

Author SHA1 Message Date
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
Bill McCloskey
be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Thomas Nguyen
d67c09f7dd Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb,JanH
MozReview-Commit-ID: LWcP7drDPwL

--HG--
extra : rebase_source : 3741530254b3cb2627f798cf22eacf64c29a8b9e
2017-10-23 18:15:40 +08: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
7324ecc861 Bug 1416711 - Stop guarding consumer calls to DebuggerServer.init();r=ochameau
DebuggerServer.init() already bails out if it was previously initialized
so we could avoid guarding the calls to init() with it everywhere.

Registering an actor module several times is also a noop as the Server
keeps a map of all the already registered modules and will bail out if
the module is already known.

MozReview-Commit-ID: 4ONLlx9253i

--HG--
extra : rebase_source : a6fce209baf5e019b6a216761c01832a30332343
2017-11-13 21:04:43 +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
Phil Ringnalda
90dde0bad4 Backed out 2 changesets (bug 1345433) for eslint bustage
Backed out changeset 7353f6f68571 (bug 1345433)
Backed out changeset 6ee966b99e7e (bug 1345433)

MozReview-Commit-ID: 47mqBLmmBpv
2017-10-31 19:35:18 -07:00
Thomas Nguyen
e6dd599a0d Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb
MozReview-Commit-ID: LWcP7drDPwL

--HG--
extra : rebase_source : c8bef97f35437368297af402ddf0f18b32182035
2017-10-23 18:15:40 +08:00
Julian Descottes
84bf318644 Bug 1399886 - remove unnecessary invertable CSS classes on devtools icons;r=gl
Using fill instead of filter we don't need to define each icon as
invertable or not. If the icon is a SVG and supports fill="context-fill"
then it will be inverted/highlighted etc... as expected.

If not then it won't be impacted by DevTools themes.

MozReview-Commit-ID: CLFprKMuCt9

--HG--
extra : rebase_source : 391f3567c2bdf319dcfd0a3b0c87f0479f85eabd
2017-10-04 21:13:48 +02:00
Nicolas Chevobbe
307f01eac7 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0

--HG--
extra : rebase_source : ebf75886fac79aaebfab16c03997f402e9f5a278
2017-09-29 15:24:14 +02:00
Alexandre Poirot
47204c5723 Bug 1402779 - Force using privileged Promise in panels. r=tromey
MozReview-Commit-ID: IDAZeHlluH6

--HG--
extra : rebase_source : ce1381531a3c049ebff07da1730f2f2b2652e5e2
2017-09-24 22:45:16 +02:00
Alexandre Poirot
4dd05d6b9e Bug 1250832 - Remove DevTools globals from browser.xul scope. r=jryans
MozReview-Commit-ID: 1kKJrz9iEx0

--HG--
extra : rebase_source : b9135d07a0b9269e3bbd8f92f9ce49c09029055d
2017-09-25 10:15:50 +02:00
Sebastian Hengst
012539a236 Backed out changeset 418e79946237 (bug 1250832) for failing devtools/client/commandline/test/browser_cmd_csscoverage_startstop.js on Windows 7 debug. r=backout 2017-09-26 13:32:00 +02:00
Alexandre Poirot
bf1de68106 Bug 1250832 - Remove DevTools globals from browser.xul scope. r=jryans
MozReview-Commit-ID: 1kKJrz9iEx0

--HG--
extra : rebase_source : 41cfb38452b8124e288deef02db94f06756d2003
2017-09-25 10:15:50 +02:00