Commit Graph
67 Commits
Author SHA1 Message Date
Jan Odvarko ed19be3b3c Bug 1488915 - Migrate toolbox-process-window.xul to HTML; r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D5255
2018-09-10 17:14:57 +00:00
Yura Zenevich a3cbf70618 Bug 1482454 - enabled accessibility panel by default. r=gl, ochameau
MozReview-Commit-ID: 38cNU1Raz8T
2018-08-31 20:30:12 -04:00
J. Ryan Stinnett e323a9837f Bug 1469602 - Clean up custom host messages. r=ochameau
Slightly simplify custom host messaging by removing the redundant stringify /
parse.  This makes it simpler to ignore messages you might overhear.

MozReview-Commit-ID: JZHAzZAVeHZ
2018-06-19 18:46:49 -05:00
J. Ryan Stinnett 035161b7df Bug 1172897 - Rename BrowserAddonActor to AddonTargetActor. r=ochameau
MozReview-Commit-ID: 4iI6BQaleJS
2018-06-04 18:37:02 -05:00
J. Ryan Stinnett c6fd8c950e Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o
2018-05-25 18:20:28 -05:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Brian Grinstead 3d564a4a36 Bug 1457278 - Show the accessibility tool in the default tool set in the Browser Toolbox;r=pbro
This is a new tool that will be better found if it is in the default set.

MozReview-Commit-ID: 5Q9ypEU1JzZ
2018-04-30 09:22:17 -07:00
Brian Grinstead c12efe186e Bug 1457278 - Remove the performance tool from the default tool set in the Browser Toolbox;r=pbro
The performance tool for browser chrome has been replaced by Gecko Profiler and perf-html,
so declutter the toolbar by removing it by default.

MozReview-Commit-ID: 88yFNLnZPXJ
2018-04-30 09:22:14 -07:00
Brian Grinstead ce7eabfaf4 Bug 1457278 - Stop putting scratchpad in the default tool set in the Browser Toolbox;r=pbro
We currently overflow the toolbar menu in a clean profile in the Browser Toolbox.
Scratchpad can be accessed from the parent process by opening the Scratchpad window
and targeting chrome, so this patch removes it from the default set.

MozReview-Commit-ID: 6esMvDCt6Um
2018-04-30 09:22:11 -07:00
Brian Grinstead 9f148400bf Bug 1381834 - Remove old Console front-end;r=nchevobbe
MozReview-Commit-ID: LiKw2ZMRucL
2018-04-13 08:08:03 -07:00
Brian Grinstead 771c2fc0ab Bug 1347127 - Enable new console frontend in Browser Toolbox;r=nchevobbe
MozReview-Commit-ID: D8U8XEgLUZy
2018-03-22 08:30:50 -07:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Florian Quèze f6add2cafd 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
Mike de Boer 68e9e3801a Bug 1440670 - Make the timeout before showing the connection status in the Browser Toolbox longer and hide it whenever the connection is established. r=jryans
MozReview-Commit-ID: BeH95CstC5I
2018-02-23 15:39:50 +01:00
J. Ryan Stinnett 8612d1452a Bug 1438962 - Add diagnostics during Browser Toolbox startup. r=bgrins
Track connection status at various points during Browser Toolbox startup.  If
connecting takes a long time or triggers an error, the status panel is revealed
with the most recent message displayed.

MozReview-Commit-ID: H8240rv3KRe
2018-02-21 03:22:49 -05:00
J. Ryan Stinnett bf44d677a7 Bug 1438962 - Convert Browser Toolbox window to async / await. r=bgrins
MozReview-Commit-ID: 1hLUhmoYQ7u
2018-02-20 09:11:46 -05:00
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Alexandre Poirot 36be948d0f Bug 1434374 - Replace usages of Cu.import in modules (where ChromeUtils isn't defined) r=jdescottes
MozReview-Commit-ID: 8kw2H4R2VIZ
2018-02-05 08:43:50 -08:00
Andrew McCreight 272cee1e65 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
2018-02-06 09:36:57 -08:00
Brian Grinstead e938b6e123 Bug 1424095 - Force off flexbox emulation in the Browser Toolbox;r=jryans
While this feature is still being worked on, it's nice if the BT is rendered
properly (there are currently issues with iframe sizing that make it hard to
use the inspector).

MozReview-Commit-ID: AULRq2N6Miv
2018-01-25 15:09:27 -08:00
Jason Laster d3fb5efc6c Bug 1431127 - Fix TypeError: panel._selectors.getPause. r=jdescottes 2018-01-18 10:51:00 -05:00
Greg Tatum d3aa3e6d07 Bug 1408124 - Create a new perf actor and recording panel; r=julienw
This patch adds a new performance recording panel that interfaes with
perf.html. It is enabled through the new preferences:

"devtools.performance.new-panel-enabled"

MozReview-Commit-ID: 1HBLsbREDPk
2017-11-08 10:36:43 -06:00
Tiberius Oros d7a3db56ae Backed out changeset 36b3f7fb7d31 (bug 1408124)for chrome failures in devtools test devtools/shared/security/tests/chrome/test_websocket-transport.html r=backout on a CLOSED TREE 2017-11-28 21:47:41 +02:00
Greg Tatum 8012032b67 Bug 1408124 - Create a new perf actor and recording panel; r=julienw
This patch adds a new performance recording panel that interfaes with
perf.html. It is enabled through the new preferences:

"devtools.performance.new-panel-enabled"

MozReview-Commit-ID: 1HBLsbREDPk
2017-11-08 10:36:43 -06:00
Tom Tromey cd8bbbd47d Bug 1407230 - Don't set devtools.debugger.client-source-maps-enabled pref; r=jdescottes
This removes the last spot that sets the obsolete
devtools.debugger.client-source-maps-enabled pref.  Note that the
definition of the pref remains; it will be deleted upstream once this
lands, and then removed from M-C by the next debugger bundle landing.

MozReview-Commit-ID: DTd2iDJI1y0
2017-10-10 07:35:49 -06:00
Nicolas Chevobbe fee723d060 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
2017-09-29 15:24:14 +02:00
Brian Grinstead 18b368cf83 Bug 1397295 - Use environment variables instead of query string for params to Browser Toolbox;r=jryans
This allows data like screen position to be persisted in the xul store for the document

MozReview-Commit-ID: 4vdbkneckXh
2017-09-18 15:52:11 -07:00
Brian Grinstead 6ea03fa837 Bug 1392744 - Pass the port along to the browser toolbox chrome uri;r=jryans
This allows multiple browser toolboxes to be opened at once, assuming the host
profiles have different values for devtools.debugger.chrome-debugging-port

MozReview-Commit-ID: 1bzsZFww4Zv
2017-08-24 10:03:47 -07:00
Jan Odvarko 65932bda75 Bug 1326937 - Provide HTML page when running new console frontend; r=bgrins
MozReview-Commit-ID: G2TzrRF0Vag
2017-06-09 09:42:34 -07:00
Sebastian Hengst 6aa896a12d Backed out changeset 227ff88b9848 (bug 1326937) for timing out in browser_ext_devtools_inspectedWindow_eval_bindings.js. r=backout on A CLOSED TREE 2017-07-17 20:48:25 +02:00
Brian Grinstead 2085208361 Bug 1326937 - Provide HTML page when running new console frontend; r=bgrins
MozReview-Commit-ID: 6Pxao2KmSb4
2017-06-09 09:42:34 -07:00
Alexandre Poirot 8acb14c4b9 Bug 1378151 - Remove toolbox-process-window.js preprocessing and enable eslint. r=jdescottes
MozReview-Commit-ID: 6qPg0jSsdsR
2017-07-04 17:05:12 +02:00
Iris Hsiao 4f4f3dc4a3 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 12:05:45 +08:00
Jason Laster ec7f313a08 Bug 1365059 - Update Debugger frontend (5/15/2017). r=jdescottes
MozReview-Commit-ID: 34vyUjfmd1Z
2017-05-17 20:50:22 +02:00
Luca Greco c83cf0fb0e Bug 1302702 - Make WebExtension Addon Debugging oop-compatible. r=ochameau
This patch applies all the changes needed to the devtools actors
and the toolbox-process-window, to be able to debug a webextension
running in an extension child process (as well as a webextension
running in the main process).

The devtools actor used to debug a webextension is splitted into
3 actors:

- the WebExtensionActor is the actor that is created when the
  "root.listTabs" RDP request is received, it provides the addon
  metadata (name, icon and addon id) and two RDP methods:

  - reload: used to reload the addon (e.g. from the "about:debugging#addons" page)
  - connectAddonDebuggingActor: which provides the actorID of the actor
    that is connected to the process where the extension is running
    (used by toolbox-process-window.js to connect the toolbox to the needed
    devtools actors, e.g. console, inspector etc.)

- the WebExtensionParentActor is the actor that connects to the
  process where the extension is running and ensures that a
  WebExtensionChildActor instance is created and connected
  (this actor is only the entrypoint to reach the WebExtensionChildActor,
  and so it does not provide any RDP request on its own, it only connect
  itself to its child counterpart and then it returns the RDP "form" of
  the child actor, and the client is then connected directly to the
  child actor)

- the WebExtensionChildActor is the actor that is running in the same
  process of the target extension, and it provides the same requestTypes
  of a tab actor.

By splitting the WebExtensionActor from the WebExtensionParentActor, we are
able to prevent the RemoteDebuggingServer to connect (and create
instances of the WebExtensionChildActor) for every addon listed by
a root.listAddons() request.

MozReview-Commit-ID: L1vxhA6xQkD
2017-03-21 15:55:35 +01:00
Sebastian Hengst b0ca1e9b39 Backed out changeset 9b16857ca48d (bug 1302702) 2017-05-17 20:01:30 +02:00
Luca Greco 1ca317e6e2 Bug 1302702 - Make WebExtension Addon Debugging oop-compatible. r=ochameau
This patch applies all the changes needed to the devtools actors
and the toolbox-process-window, to be able to debug a webextension
running in an extension child process (as well as a webextension
running in the main process).

The devtools actor used to debug a webextension is splitted into
3 actors:

- the WebExtensionActor is the actor that is created when the
  "root.listTabs" RDP request is received, it provides the addon
  metadata (name, icon and addon id) and two RDP methods:

  - reload: used to reload the addon (e.g. from the "about:debugging#addons" page)
  - connectAddonDebuggingActor: which provides the actorID of the actor
    that is connected to the process where the extension is running
    (used by toolbox-process-window.js to connect the toolbox to the needed
    devtools actors, e.g. console, inspector etc.)

- the WebExtensionParentActor is the actor that connects to the
  process where the extension is running and ensures that a
  WebExtensionChildActor instance is created and connected
  (this actor is only the entrypoint to reach the WebExtensionChildActor,
  and so it does not provide any RDP request on its own, it only connect
  itself to its child counterpart and then it returns the RDP "form" of
  the child actor, and the client is then connected directly to the
  child actor)

- the WebExtensionChildActor is the actor that is running in the same
  process of the target extension, and it provides the same requestTypes
  of a tab actor.

By splitting the WebExtensionActor from the WebExtensionParentActor, we are
able to prevent the RemoteDebuggingServer to connect (and create
instances of the WebExtensionChildActor) for every addon listed by
a root.listAddons() request.

MozReview-Commit-ID: L1vxhA6xQkD
2017-03-21 15:55:35 +01:00
J. Ryan Stinnett f23f138672 Bug 1346902 - Update browser toolbox integration test for new debugger. r=jlast
MozReview-Commit-ID: 8k8bIqSBKGf
2017-04-25 22:12:30 +02:00
J. Ryan Stinnett aec76bd1dd Bug 1346902 - Re-enable new debugger UI for Browser Toolbox. r=jryans
It appears the new debugger UI is working for the Browser Toolbox case, so let's
turn it on to match our approach with web content.

MozReview-Commit-ID: HT6qoIrwAHX
2017-04-25 22:11:45 +02:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Sebastian Hengst f75839c723 Backed out changeset 55f3df15eaa6 (bug 1356569) 2017-04-14 23:39:17 +02:00
Florian Queze 61aabdf237 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Quèze c7eae86054 Bug 1344711 - script-generated patch to remove try blocks around get*Pref calls, r=jaws. 2017-03-07 15:29:48 +01:00
Jason Laster 7aabf6bf38 Bug 1307580 - Preferences Pane should show Debugger source maps checkbox. r=jlongster 2016-10-20 14:16:40 -04:00
Brian Grinstead d33d4172b2 Bug 1300820 - Always use the current debugger frontend in Browser Toolbox;r=jlongster
MozReview-Commit-ID: DJ7L2VSOe2q
2016-09-06 11:20:38 -07:00
Jarda Snajdr 3ae9260bae Bug 1286281 - Part 7: Add WebSocket transport option to chrome debugger server r=jryans
MozReview-Commit-ID: 3gkcU2Zl8Pq
2016-08-01 08:00:00 -07:00
Luca Greco 537d059f73 Bug 1285557 - Create a WebExtensionAddonActor based on ChromeActor and TabActor. r=jryans
MozReview-Commit-ID: 70sLUzqHHsl
2016-07-25 16:28:49 +02:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
James Long ece81a7a77 Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
J. Ryan Stinnett fa4d790e10 Bug 1225160 - Disable source maps for browser debugging. r=ejpbruel
MozReview-Commit-ID: KZiuW4c9rFJ
2016-04-20 11:42:53 -05:00