Commit Graph
1668 Commits
Author SHA1 Message Date
Nicolas Chevobbe 17649b0c34 Bug 1566850 - Remove target.activeConsole usage in Toolbox. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56692
2019-12-13 14:21:20 +00:00
Nicolas Chevobbe 2f8b59dc62 Bug 1566850 - Remove target.activeConsole usage in tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56688
2019-12-13 13:58:54 +00:00
Julian Descottes 01914eddb6 Bug 1602727 - Fix DevTools destroyer patterns r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56527
2019-12-15 21:07:59 +00:00
Kris Maglione 7b2657b231 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-13 20:36:24 +00:00
Kris Maglione 8c0d38f33d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-13 20:36:16 +00:00
Jason Laster bb4b102f39 Bug 1603698 - Omniscient Browser Toolbox error "this._stopThreadFrontListeners is not a function". r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D57135
2019-12-13 16:55:19 +00:00
Julian Descottes 4125c38d2c Bug 1603366 - Rename Omniscient browser toolbox to Multiprocess Browser Toolbox and support localization r=pbro,flod
Differential Revision: https://phabricator.services.mozilla.com/D56877
2019-12-12 15:00:20 +00:00
shindli 9969261559 Backed out 8 changesets (bug 1566850, bug 1603035) for causing perma bc failures in browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow.js CLOSED TREE
Backed out changeset da1672f831d1 (bug 1566850)
Backed out changeset b3aea303d3ed (bug 1566850)
Backed out changeset 3c8ef35fde92 (bug 1566850)
Backed out changeset 4deadf97378f (bug 1566850)
Backed out changeset 55ac64d74725 (bug 1566850)
Backed out changeset 33c4706a4255 (bug 1566850)
Backed out changeset 1796a39b020b (bug 1566850)
Backed out changeset ae02ae71f846 (bug 1603035)
2019-12-13 12:50:45 +02:00
Julian Descottes fbd078a8ea Bug 1602371 - Rename LocalTabTargetFront tab getter to localTab r=ochameau
Depends on D56330

Renaming the "tab" getter to "localTab" will make it easier to refactor later.

Differential Revision: https://phabricator.services.mozilla.com/D56331
2019-12-13 10:38:07 +00:00
Nicolas Chevobbe a5333c52c3 Bug 1566850 - Remove target.activeConsole usage in Toolbox. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56692
2019-12-13 09:15:17 +00:00
Nicolas Chevobbe b25e763547 Bug 1566850 - Remove target.activeConsole usage in tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56688
2019-12-13 09:10:33 +00:00
Julian Descottes 46e48b3f7d Bug 1603389 - Read content-process messages setting from prefs for BrowserToolbox Console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D56888
2019-12-12 13:10:44 +00:00
Julian Descottes 8d90139c27 Bug 1581093 - Fix blank DevTools window in private browsing, set private flag on host window r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D56636
2019-12-12 13:17:10 +00:00
Alexandre Poirot 41736b9bd8 Bug 1602734 - Pass one option object instead of arguments to watchTargets callbacks. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D56713
2019-12-12 10:41:27 +00:00
Jason Laster 63559fdcd5 Bug 1583550 - Highlight toolbox paused state. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D55848
2019-12-11 16:13:00 +00:00
Julian Descottes cdf779c751 Bug 1525966 - Reject Error object instead of string in DevTools Front:onPacket r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55829
2019-12-11 17:31:39 +00:00
shindli 0aa47af90e Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione eb68f8b548 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-10 23:07:21 +00:00
Kris Maglione ad3537fc50 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-10 23:07:13 +00:00
Noemi Erli 21eec8658f Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione 6fb2c35351 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-07 18:44:34 +00:00
Kris Maglione 88fbf261f8 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-07 19:11:58 +00:00
Daniel Varga 85f263a4c2 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione 487c4fe9c7 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741
2019-12-06 22:14:22 +00:00
Kris Maglione e59706f08a Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740
2019-12-06 22:14:14 +00:00
Julian Descottes 09fa59d203 Bug 1600809 - Wait after moving window in devtools tooltip tests to avoid failures on ubuntu1804 r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D55787
2019-12-06 06:59:28 +00:00
Nicolas Chevobbe d38e3fae98 Bug 1579090 - Support ObjectFronts in WebConsole. r=Honza.
Since we may now have ObjectFronts in console messages as
well as in evaluation results, we need to make the webconsole
consume those fronts.

And because we have ObjectFronts, we can now avoid using the
DebuggerClient to release the actors, and simply call front.release.
This simplifies how we track created object, since we only need
to release "root" objects, which will also cause all the sub-fronts
to be released as well. Sadly, this was causing some test failures
in mochitests because some objects were released while the connection
was closed, so we now emit an event when all the actors are released,
which we track in tests to wait until everything is over.

As a side effect, we need to change how we handle stubs for
our tests, since fronts have cycical references and can't
be serialized directly. In order to handle that, we serialize
all front as a plain object with a `_grip` property, containing
the object grip. In the stub file, we don't expose the grips
directly, but Maps that contain those stubs "rehydrated": when
a _grip object is encountered, it's turned back into a front.

Differential Revision: https://phabricator.services.mozilla.com/D54509
2019-12-04 09:03:53 +00:00
Daisuke Akatsuka b459e1d97a Bug 1306198: Show browser and os info on the device menu item. r=pbro,mtigley
Depends on D55251

Differential Revision: https://phabricator.services.mozilla.com/D55252
2019-12-03 21:10:28 +00:00
Razvan Caliman 55bc471479 Bug 1598317 - Refactor Changes panel context menu. r=pbro
Make `ChangesContextMenu` directly extend `Menu` instead of wrapping it so external objects and tests can listen to its events.

Reduce `ChangesContextMenu`'s knowledge about the outside world (like `ChangesView`) by providing it in the constructor with the callbacks necessary for each context menu item.

Differential Revision: https://phabricator.services.mozilla.com/D55448
2019-12-02 14:41:26 +00:00
Julian Descottes 686f5b8419 Bug 1598557 - Move all BrowserToolbox files to a dedicated folder r=ochameau
Depends on D54119

Differential Revision: https://phabricator.services.mozilla.com/D54265
2019-11-27 11:08:11 +00:00
Alexandre Poirot 1a62a9ba6e Bug 1598364 - Re-register DOMWindowCreated listeners when reloading browser.xhtml. r=jdescottes
In the context of the browser toolbox, the ParentProcessTarget Actor watches
all top level window's docshells. But as it registers DOMWindowCreated/pageshow/pagehide
listeners against the docshell's window (because there is no parent chromeEventListener),
it has to ensure re-registering these listeners on navigation.

Differential Revision: https://phabricator.services.mozilla.com/D54193
2019-11-22 10:18:22 +00:00
Julian Descottes 2ada16da45 Bug 1598259 - Remove support for MOZ_TOOLBOX_TEST_SCRIPT in ToolboxProcess.jsm r=ochameau
Depends on D54118

Differential Revision: https://phabricator.services.mozilla.com/D54119
2019-11-22 18:32:02 +00:00
Julian Descottes 8a028710f8 Bug 1598259 - Migrate existing BrowserToolbox tests to ToolboxTask r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D54118
2019-11-22 18:30:38 +00:00
Razvan Maries fd1c12749e Backed out 2 changesets (bug 1598259) for dt perma fails. CLOSED TREE
Backed out changeset 38140fd01a52 (bug 1598259)
Backed out changeset 70b22c90ea2e (bug 1598259)
2019-11-22 19:36:38 +02:00
Julian Descottes 8319ad0424 Bug 1598259 - Remove support for MOZ_TOOLBOX_TEST_SCRIPT in ToolboxProcess.jsm r=ochameau
Depends on D54118

Differential Revision: https://phabricator.services.mozilla.com/D54119
2019-11-22 07:54:10 +00:00
Julian Descottes 05e804d446 Bug 1598259 - Migrate existing BrowserToolbox tests to ToolboxTask r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D54118
2019-11-22 07:53:52 +00:00
Alexandre Poirot 6f07ebeae6 Bug 1590401 - Refactor Front.onFront+onFrontDestroyed into Front.watchFronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D53881
2019-11-20 17:13:01 +00:00
Cosmin Sabou d04c510db3 Backed out 11 changesets (bug 1582512) for causing valgrind bustages.
Backed out changeset 8b850fd66bf5 (bug 1582512)
Backed out changeset 07d3631e609a (bug 1582512)
Backed out changeset fa91b085eb59 (bug 1582512)
Backed out changeset 232d5735d404 (bug 1582512)
Backed out changeset 47045fa2ffd2 (bug 1582512)
Backed out changeset 40a0f6c6cd61 (bug 1582512)
Backed out changeset 5fb3e489c31f (bug 1582512)
Backed out changeset 379318a35b20 (bug 1582512)
Backed out changeset bf81985c33b7 (bug 1582512)
Backed out changeset 1e0dd57b8041 (bug 1582512)
Backed out changeset 2787043f1fab (bug 1582512)
2019-11-20 18:44:45 +02:00
Tom Ritter 2c645be706 Bug 1582512 - Disable the javascript filename load restriction on specific tests r=jdescottes
Certain tests load data: URIs, blob: URIs, or otherwise do unusual things
that mean we need to disable the restriction for them.

Differential Revision: https://phabricator.services.mozilla.com/D46501
2019-11-18 20:46:52 +00:00
Alexandre Poirot 2bda961085 Bug 1578242 - Make the inspector use the TargetList. r=gl,pbro
Differential Revision: https://phabricator.services.mozilla.com/D48859
2019-11-18 15:06:02 +00:00
Julian Descottes 9d7e73f79e Bug 1594885 - Basic scaffolding for whatsnew panel in DevTools r=jlast,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D52733
2019-11-14 08:11:07 +00:00
Gurzau Raul e1d7efa2af Backed out changeset 1fb9356c0a94 (bug 1594885) for devtools failures at browser_toolbox_tools_per_toolbox_registration.js on a CLOSED TREE. 2019-11-14 03:53:42 +02:00
Brian Grinstead b863966000 Bug 1595636 - Rename xul->xhtml for non-tests in DevTools r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D52711
2019-11-13 23:44:19 +00:00
Julian Descottes 4c6129e051 Bug 1594885 - Basic scaffolding for whatsnew panel in DevTools r=jlast,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D52733
2019-11-13 23:21:52 +00:00
Jason Laster b7a5813cd9 Bug 1583806 - Add a binary path override for the browser toolbox. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D51138
2019-11-04 17:26:12 +00:00
Julian Descottes 8d3699f60a Bug 1591140 - Allow chrome privileged documents to preventDefault contextmenu events regardless of dom.event.contextmenu.enabled r=gl,nika,mconley
@gl can you take a look at the DevTools test added here?
@nika @mconley I used this.browsingContext.docShell.isContent here to rule out chrome-privileged documents. Do you know if there is better way to check if the current document is chrome-privileged or not?

Differential Revision: https://phabricator.services.mozilla.com/D51320
2019-11-04 08:20:02 +00:00
Alexandre Poirot 1cffc9392c Bug 1471754 - Make the Toolbox use the TargetList. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D48858
2019-11-04 11:04:05 +00:00
Jason Laster 73b0669e09 Bug 1592755 - Remove _migrateProfileDir usage. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D51170
2019-10-31 10:56:13 +00:00
Julian Descottes 7f97ed5284 Bug 1592517 - Migrate devtools DOMHelpers.jsm from JSM to plain JS module r=ochameau
Depends on D51054

Summary of the changes here:
- move DOMHelpers.jsm to dom-helpers.js
- remove all unused methods
- converted to a static helper to avoid instanciating DOMHelpers objects for no reason
- updated call sites accordingly

Differential Revision: https://phabricator.services.mozilla.com/D51065
2019-10-30 11:25:01 +00:00
Julian Descottes 4c82a6ee65 Bug 1592513 - Move DOMHelpers.jsm from devtools/client/shared/ to devtools/shared/ r=rcaliman
Since I started using this helper in devtools/server/ (Node actor), the file needs to move outside of devtools/client

Differential Revision: https://phabricator.services.mozilla.com/D51053
2019-10-30 11:05:04 +00:00