Commit Graph
2999 Commits
Author SHA1 Message Date
Emma Malysz 572c93ffbf Bug 1601113, replace URIs ending in vnd.mozilla.xul+xml with xhtml+xml r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D57148
2019-12-17 00:33:16 +00:00
Nicolas Chevobbe 486b8d6cd0 Bug 1566850 - Remove this.activeConsole in TargetMixin. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56693
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
Nicolas Chevobbe b43eb423f9 Bug 1603035 - Return a function from EventEmitter.on that removes the event listener when called. r=rcaliman.
This will be helpful when consumers don't want to
keep the target around.
A test is added to ensure this work as expected (and
was failing if the returned function does not call
EventEmitter.off).

Differential Revision: https://phabricator.services.mozilla.com/D56685
2019-12-13 13:55:23 +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 cb86a77af6 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-13 20:36:40 +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
Nicolas Chevobbe c45cffa7d6 Bug 1602769 - Remove unused DebuggerClient.connect onConnected param. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56564
2019-12-13 13:26:29 +00:00
Nicolas Chevobbe 3b5f03a0f6 Bug 1602709 - Remove unused DebuggerClient.close onClosed parameter. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56562
2019-12-13 13:11:45 +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
Julian Descottes b414f1fb2d Bug 1602371 - Remove csp and contentPrincipal getters in LocalTabTargetFront r=ochameau
Depends on D56327. Not reason to make target-mixin more complex for this workaround which already has access to the tab object.

Differential Revision: https://phabricator.services.mozilla.com/D56330
2019-12-13 10:00:25 +00:00
Julian Descottes 9cb75e4fd4 Bug 1602371 - Stop listening to tab unload in LocalTabTargetFront r=ochameau
It is not clear why tab unload should be listened to on the client, and only destroy the target front.
Tentatively removing to simplify the local tab target.

Differential Revision: https://phabricator.services.mozilla.com/D56327
2019-12-13 09:59:00 +00:00
Nicolas Chevobbe 4b18f4ea5a Bug 1566850 - Remove this.activeConsole in TargetMixin. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D56693
2019-12-13 09:16:32 +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
Nicolas Chevobbe e6ad9f17eb Bug 1603035 - Return a function from EventEmitter.on that removes the event listener when called. r=rcaliman.
This will be helpful when consumers don't want to
keep the target around.
A test is added to ensure this work as expected (and
was failing if the returned function does not call
EventEmitter.off).

Differential Revision: https://phabricator.services.mozilla.com/D56685
2019-12-13 09:08:11 +00:00
Nicolas Chevobbe 33cd4d5e27 Bug 1603126 - Fix Promise rejections in async-storage. r=jdescottes.
All the rejections were called with 2 arguments, when reject only
cares about the first one.
This patch makes all the reject called with the actual DOMException,
and adds console.error before all those rejections.

Differential Revision: https://phabricator.services.mozilla.com/D56859
2019-12-13 07:55:22 +00:00
Brian Hackett 46d73b286c Bug 1602489 - Basic eager evaluation support, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D56393
2019-12-12 21:48:03 +00:00
Razvan Caliman 71aa5a2dcf Bug 1599728 - Create ChangesFront/Actor pair for each target in inspector. r=jdescottes
Request a ChangesFront for each target as soon as is becomes available.

The on-demand approach in D54725 is abandoned because it introduces a client-server round trip on _every_ CSS mutation operation due to the need to ensure the ChangesActor is instantiated. By awaiting `changesFront.setup()` on every mutation, needless slowdown is introduced after the actor becomes available. Furthermore, the approach in D54725 spreads the knowledge about the ChangesFront in too many places in the codebase, something that will only get worse over time as the ChangesActor gains capabilities to track CSS changes from other sources or supports tracking DOM changes.

Differential Revision: https://phabricator.services.mozilla.com/D55945
2019-12-12 15:50:44 +00:00
Nazım Can Altınova c3dee415e6 Bug 1602800 - Move the function that gets BrowsingContext ID to a new file inside shared folder r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D56720
2019-12-12 13:53:31 +00:00
Alexandre Poirot bfc2aacf35 Bug 1594739 - Test workers listening via the TargetList API. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D55189
2019-12-12 12:33:45 +00:00
Alexandre Poirot 025d46a8b5 Bug 1602734 - Expose a boolean flag to know if a target being created or destroyed relates to a target being switched during navigation between processes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D56750
2019-12-12 10:56:54 +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
Logan Smyth 2b017e1cf1 Bug 1592430 - Basic support for async live stacks in the debugger server. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D56661
2019-12-12 06:19:03 +00:00
Sai Hemanth Beeraka 1ad34fed92 Bug 1566521 - Indicate that WS connection is closed. r=Honza,Harald
***
Revision changes: Rename div.p to dom.p

***
Localize connection closed message and add test

***
Display code and reason with connection closed message

***
Remove unnecessary brackets

Differential Revision: https://phabricator.services.mozilla.com/D56235
2019-12-12 08:03:06 +00:00
Julian Descottes 124c80e6c3 Bug 1565200 - Add frame connector relying on JsWindowActor instead of message manager r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D51130
2019-12-11 20:09:24 +00:00
Julian Descottes c38548f90c Bug 1525966 - Support string errors when detach fails in target fronts r=nchevobbe
Depends on D55829

In case other rejects are still using strings instead of error objects.

Differential Revision: https://phabricator.services.mozilla.com/D55830
2019-12-11 17:31:52 +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
Jeff Walden 5c07885dcf Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D56595
2019-12-11 06:17:44 +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 2bcb58b665 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-10 23:07:28 +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
Nicolas Chevobbe f8be45d015 Bug 1602700 - Add a comment in webconsole front destroy function to make it clearer how it behaves. r=jdescottes.
This only highlights the fact that the front will only
do the heavy work once, since we set the _client property
to null, and the function is guarded against the _client
truthiness.

Differential Revision: https://phabricator.services.mozilla.com/D56524
2019-12-10 13:32:15 +00:00
Mihai Alexandru Michis 14a27b4910 Backed out 2 changesets (bug 1525966) for causing devtools failures.
Backed out changeset 06ca873edb4c (bug 1525966)
Backed out changeset 8ff967efc6d6 (bug 1525966)

CLOSED TREE
2019-12-09 16:22:08 +02:00
Julian Descottes 4c0ad3b0d8 Bug 1525966 - Support string errors when detach fails in target fronts r=nchevobbe
Depends on D55829

In case other rejects are still using strings instead of error objects.

Differential Revision: https://phabricator.services.mozilla.com/D55830
2019-12-09 13:25:12 +00:00
Julian Descottes 32a7b38d6a Bug 1525966 - Reject Error object instead of string in DevTools Front:onPacket r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55829
2019-12-09 13:05:31 +00:00
Brian Hackett 0d3a085fff Bug 1596939 Part 2 - Support pausing new service workers for a specific origin, r=jdescottes.
Depends on D54292

Differential Revision: https://phabricator.services.mozilla.com/D54293
2019-12-07 18:18:03 +00:00
Brian Hackett 191000447d Bug 1595964 Part 2 - Expose evaluating worker in service worker registration front, r=jdescottes.
Depends on D54286

Differential Revision: https://phabricator.services.mozilla.com/D54288
2019-12-07 18:18:09 +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 86c47b65c7 Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-07 18:44:35 +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
Noemi Erli 8e5da62e12 Backed out 6 changesets (bug 1595964, bug 1596939) for causing failures in browser_application_panel_list-domain-workers.js
Backed out changeset 65c870147654 (bug 1595964)
Backed out changeset 74a982a9144a (bug 1596939)
Backed out changeset c21c15689e77 (bug 1596939)
Backed out changeset a6848f4d219d (bug 1596939)
Backed out changeset 4f538e6c6dcc (bug 1595964)
Backed out changeset d1c93f700b8c (bug 1595964)
2019-12-07 20:13:22 +02:00
Brian Hackett e20dc9fb84 Bug 1596939 Part 2 - Support pausing new service workers for a specific origin, r=jdescottes.
Depends on D54292

Differential Revision: https://phabricator.services.mozilla.com/D54293
2019-12-07 16:16:39 +00:00
Brian Hackett 879cb73695 Bug 1595964 Part 2 - Expose evaluating worker in service worker registration front, r=jdescottes.
Depends on D54286

Differential Revision: https://phabricator.services.mozilla.com/D54288
2019-12-07 16:13:07 +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 fec2318cde Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D53746
2019-12-06 22:15:29 +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
Brian Hackett 6d075df69b Bug 1596933 - Show both waiting and active workers in threads pane, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D54213
2019-12-06 18:08:18 +00:00
Nicolas Chevobbe f12a05d995 Bug 1601642 - Add a emitForTests methods to event-emitter.js. r=rcaliman.
This methods is then used in Netmonitor and Animation
panel, where we already had similar functions.

Differential Revision: https://phabricator.services.mozilla.com/D56167
2019-12-06 16:55:50 +00:00