Commit Graph
81 Commits
Author SHA1 Message Date
Alexandre Poirot f2cc564831 Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575
2018-11-27 19:18:06 +00:00
Andreea Pavel 2e1438afd5 Backed out 7 changesets (bug 1506546) fo failing devtools at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js on a CLOSED TREE
Backed out changeset fbe3f2183f32 (bug 1506546)
Backed out changeset 8972a2f14015 (bug 1506546)
Backed out changeset 00fe26234b3d (bug 1506546)
Backed out changeset 7d8e650e25c2 (bug 1506546)
Backed out changeset a293a37483b9 (bug 1506546)
Backed out changeset 7b75250a4f12 (bug 1506546)
Backed out changeset 23ad29cb776e (bug 1506546)
2018-11-27 14:37:14 +02:00
Alexandre Poirot caf7aef5cd Bug 1506546 - Implement RootFront.getAddon and use it to retrieve a single AddonTargetFront. r=yulia
MozReview-Commit-ID: nWTkfbF9qb

Depends on D12574

Differential Revision: https://phabricator.services.mozilla.com/D12575
2018-11-27 11:23:20 +00:00
Bogdan Tara 228d1068ee Merge inbound to mozilla-central. a=merge 2018-11-16 11:47:51 +02:00
Alexandre Poirot 781a5ac688 Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-15 10:22:49 +00:00
Andrea Marchesini 02c1924ab1 Bug 1480544 - Allow Console API to log messages on stdout, r=bgrins
This patch introduces 2 new prefs:
- devtools.console.stdout.chrome: if true, console API writes on stdout when
                                  used by chrome code
- devtools.console.stdout.content: console API write on stdout when used by
                                   content code.
2018-11-15 21:47:58 +01:00
Andreea Pavel 9d41a0a2bf Backed out 5 changesets (bug 1506549) for failing devtools at devtools/client/aboutdebugging/test/browser_service_workers_status.js on a CLOSED TREE
Backed out changeset 6be66dea928c (bug 1506549)
Backed out changeset da0d76d0e8fc (bug 1506549)
Backed out changeset 490eeba8f9f7 (bug 1506549)
Backed out changeset 97554f465eca (bug 1506549)
Backed out changeset 4f259de6cce0 (bug 1506549)
2018-11-14 21:46:07 +02:00
Alexandre Poirot 0d5dc1f31e Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-14 15:48:16 +00:00
Alexandre Poirot 1fc5daee89 Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia
MozReview-Commit-ID: E9OiwqDwNk7

Differential Revision: https://phabricator.services.mozilla.com/D11758
2018-11-13 14:07:36 +00:00
Alexandre Poirot d46ecb70dc Bug 1497644 - Always call Root actor's getProcess request via RootClient.getProcess r=yulia
I also made its argument mandatory, so that later in root spec we can use a non-nullable number.

MozReview-Commit-ID: BUPgI1ww1gC

Differential Revision: https://phabricator.services.mozilla.com/D8141
2018-10-11 16:26:45 +00:00
Alexandre Poirot 600169f1e8 Bug 1492434 - Computes isBrowsingContext from TabTarget out of actor's form r=jdescottes
Instead of requiring all TargetFactory.forRemoteTab to compute isBrowsingContext flag,
we can compute it out of the actor's form as we know which types are browsing context
inherited or not.

MozReview-Commit-ID: H5zLo5nZSm6

Differential Revision: https://phabricator.services.mozilla.com/D7413
2018-10-03 09:07:18 +00:00
David Walsh a1032659ab Bug 1314057 - Remove new-debugger-frontend flag from framework devtool r=davidwalsh 2018-09-07 13:31:09 -05:00
Narcis Beleuzu cbe7b0b012 Backed out 5 changesets (bug 1314057) for devtools failures on browser_browser_toolbox_debugger.js . CLOSED TREE
Backed out changeset 9bb3fd62313e (bug 1314057)
Backed out changeset cdb30006eb31 (bug 1314057)
Backed out changeset 7691cbfeac6a (bug 1314057)
Backed out changeset 1b274560201f (bug 1314057)
Backed out changeset 059a19d11454 (bug 1314057)
2018-09-17 07:29:31 +03:00
David Walsh 1392137ddb Bug 1314057 - Remove new-debugger-frontend flag from framework devtool. r=jlast 2018-09-07 13:31:09 -05:00
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