Commit graph

54 commits

Author SHA1 Message Date
Gijs Kruitbosch
c41ccf9cc7 Bug 1810141 - switch consumers where there isn't an obvious URI object to use to fixupAndLoadURIString, r=mossop,geckoview-reviewers,extension-reviewers,settings-reviewers,mconley,owlish
This also updates layoutdebug.js, which in some ways pretends to be like a browser window but
is its own special snowflake. I kept the method naming conventions similar to the main
browser window.

Depends on D168394

Differential Revision: https://phabricator.services.mozilla.com/D168395
2023-02-13 23:50:40 +00:00
Cristina Horotan
5f4356e527 Backed out 9 changesets (bug 1810141) for several test failures on a CLOSED TREE
Backed out changeset 8781a0d1254d (bug 1810141)
Backed out changeset 131037295784 (bug 1810141)
Backed out changeset 3852fbe290f4 (bug 1810141)
Backed out changeset 118f131a524a (bug 1810141)
Backed out changeset ab5d76846e10 (bug 1810141)
Backed out changeset dce3aa683445 (bug 1810141)
Backed out changeset 4dc41d90dbb3 (bug 1810141)
Backed out changeset 50b57ba1a061 (bug 1810141)
Backed out changeset 569de94781e4 (bug 1810141)
2023-02-13 16:05:30 +02:00
Gijs Kruitbosch
bb42efb76d Bug 1810141 - switch consumers where there isn't an obvious URI object to use to fixupAndLoadURIString, r=mossop,geckoview-reviewers,extension-reviewers,settings-reviewers,mconley,owlish
This also updates layoutdebug.js, which in some ways pretends to be like a browser window but
is its own special snowflake. I kept the method naming conventions similar to the main
browser window.

Depends on D168394

Differential Revision: https://phabricator.services.mozilla.com/D168395
2023-02-13 12:55:25 +00:00
trickypr
80078e3ba1 Bug 1510561 - Part 16: Apply plugin:mozilla/valid-jsdoc to toolkit/components/extensions. r=geckoview-reviewers,extension-reviewers,zombie,owlish
Differential Revision: https://phabricator.services.mozilla.com/D161391
2022-11-19 11:41:48 +00:00
Alexandre Poirot
572118ed63 Bug 1700909 - [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes
Instead we should we querying Toolbox.commands.descriptorFront.

Differential Revision: https://phabricator.services.mozilla.com/D157942
2022-10-11 20:33:51 +00:00
Cristian Tuns
169dfc929e Backed out 5 changesets (bug 1700909) for causing mochitest failures CLOSED TREE
Backed out changeset a49f15f66ed4 (bug 1700909)
Backed out changeset 5a6b15eb1e12 (bug 1700909)
Backed out changeset 67b12d0e350b (bug 1700909)
Backed out changeset 4e6312ea547a (bug 1700909)
Backed out changeset c49eab385e1c (bug 1700909)
2022-10-10 10:38:03 -04:00
Alexandre Poirot
ad12d3c26b Bug 1700909 - [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes
Instead we should we querying Toolbox.commands.descriptorFront.

Differential Revision: https://phabricator.services.mozilla.com/D157942
2022-10-10 11:28:05 +00:00
Andreea Pavel
ce81b30f6f Backed out 5 changesets (bug 1700909) for failing browser_ext_addon_debugging_netmonitor.js on a CLOSED TREE
Backed out changeset 9bc3e4820f59 (bug 1700909)
Backed out changeset 998c0ec4f9d3 (bug 1700909)
Backed out changeset 6f6fe066fc38 (bug 1700909)
Backed out changeset e53aaf8ffe5b (bug 1700909)
Backed out changeset 3dbeffe25878 (bug 1700909)
2022-09-29 19:40:43 +03:00
Alexandre Poirot
a0a5dd10cc Bug 1700909 - [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes
Instead we should we querying Toolbox.commands.descriptorFront.

Differential Revision: https://phabricator.services.mozilla.com/D157942
2022-09-29 14:43:24 +00:00
Alexandre Poirot
6781eae59e Bug 1791832 - [devtools] Convert devtools/startup JSM to ES Modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157911
2022-09-26 10:48:05 +00:00
Luca Greco
2c7f95fb7c Bug 1722145 - extension devtools page and panels should not be enabled/disabled when unrelated optional permissions are granted/revoked. r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D120846
2021-07-27 13:56:36 +00:00
Alexandre Poirot
c8f91a99da Bug 1699493 - [devtools] Migrate WebExtInspectedWindow front to a command. r=nchevobbe,rpl
- implement the new "inspected-window" command
- move WebExtensionInspectedWindowFront implement to the command, making the front empty
- migrate tests to use the commands instead of front
- stop maintaining the current top level target in ExtensionParent.jsm, no longer have to use watchTargets
- stop creating a new descriptor on each new target
- instead only pull one new dedicated "commands" for WebExt (still in ExtensionParent.jsm)
- remove TabDescriptor isDevToolsExtensionContext as we no longer need anything special in the descriptor
- remove now unused methods on DevToolsShims (createWebExtensionInspectedWindowFront, createDescriptorForTabForWebExtension)
- remove the now unused TabDescriptorFactory.createDescriptorForTab's "forceCreationForWebextension" option, as CommandsFactory.forTab always instantiate a brand new commands
- migrate webext to use the command instead of front

Differential Revision: https://phabricator.services.mozilla.com/D108994
2021-04-01 10:31:43 +00:00
Julian Descottes
17537a14fb Bug 1694906 - [devtools] Wait for toolbox-ready instead of toolbox-created in ext-devtools.js r=rpl
Depends on D107052

toolbox-ready guarantees that the toolbox will have a valid target attached.

Differential Revision: https://phabricator.services.mozilla.com/D107099
2021-03-10 18:22:03 +00:00
Narcis Beleuzu
e783ef6d6e Backed out 5 changesets (bug 1694906) for dt failures on browser_target_list_frames.js . CLOSED TREE
Backed out changeset bd5cb6f8b41f (bug 1694906)
Backed out changeset c23343373584 (bug 1694906)
Backed out changeset 02428006de51 (bug 1694906)
Backed out changeset 284e000deded (bug 1694906)
Backed out changeset 3b5269fe0113 (bug 1694906)
2021-03-10 04:52:56 +02:00
Julian Descottes
64bebf7d61 Bug 1694906 - [devtools] Wait for toolbox-ready instead of toolbox-created in ext-devtools.js r=rpl
Depends on D107052

toolbox-ready guarantees that the toolbox will have a valid target attached.

Differential Revision: https://phabricator.services.mozilla.com/D107099
2021-03-09 20:50:43 +00:00
Alexandre Poirot
17df6d9066 Bug 1692874 - [devtools] Read isLocalTab from descriptor instead of target front. r=rpl,jdescottes
There is still some usages in isTargetSupported,
but that would requires refactoring this method into isDescriptorSupported
and be async as some isTargetSupported only works against target as it checks for traits on it.

Differential Revision: https://phabricator.services.mozilla.com/D105201
2021-02-18 18:36:48 +00:00
ankushduacodes
6f8bc11f0f Bug 1671579 - Granting the devtools optional permission should also enabled the extension devtools page from a toolbox perspective r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D98841
2020-12-09 17:35:58 +00:00
Shane Caraveo
c6bf5854a2 Bug 1606862 support devtools as an optional extension permission r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D71829
2020-04-30 18:39:23 +00:00
Daniel Varga
63b9840733 Backed out changeset 8a0b81f6263e (bug 1606862) for causing devtools failures at devtools/client/framework/test/browser_toolbox_toolbar_reorder_with_extension.js
CLOSED TREE
2020-04-30 06:05:20 +03:00
Shane Caraveo
257084d3fa Bug 1606862 support devtools as an optional extension permission r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D71829
2020-04-30 01:50:34 +00:00
Dorel Luca
964d69b146 Backed out changeset 74dce6390e5e (bug 1606862) for Xpcshell failures in extensions/test/xpcshell/test_ext_startup_perf.js. CLOSED TREE 2020-04-30 04:17:57 +03:00
Shane Caraveo
327dcc3d53 Bug 1606862 support devtools as an optional extension permission r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D71829
2020-04-29 23:28:27 +00:00
Daisuke Akatsuka
1c0e943acf Bug 1604211: Introduce target-switching mechanism for devtools inspectedWindow. r=rpl,ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66736
2020-04-24 04:35:51 +00:00
Oana Pop Rus
cefdcd7719 Backed out 19 changesets (bug 1615509) for node failures. CLOSED TREE
Backed out changeset c74ae992992f (bug 1615509)
Backed out changeset c6fabe2143a4 (bug 1615509)
Backed out changeset 29b2f9ef4188 (bug 1615509)
Backed out changeset 2df6831aea1a (bug 1615509)
Backed out changeset 85bd4b410435 (bug 1615509)
Backed out changeset d669aefdfeba (bug 1615509)
Backed out changeset 24d5cb462667 (bug 1615509)
Backed out changeset da84734dca0c (bug 1615509)
Backed out changeset d4a3ac741275 (bug 1615509)
Backed out changeset 96be8d39bc09 (bug 1615509)
Backed out changeset 326ea09ed737 (bug 1615509)
Backed out changeset 146ee88fba20 (bug 1615509)
Backed out changeset 488e03cb9723 (bug 1615509)
Backed out changeset 8bb8d8146868 (bug 1615509)
Backed out changeset 8284770b42b4 (bug 1615509)
Backed out changeset b5bd9789553e (bug 1615509)
Backed out changeset 0527c1bd1b61 (bug 1615509)
Backed out changeset 984007b00335 (bug 1615509)
Backed out changeset ee220b50d171 (bug 1615509)

--HG--
rename : devtools/client/inspector/compatibility/test/browser/browser_compatibility_event_selected-node-change.js => devtools/client/inspector/compatibility/test/browser/browser_compatibility_event_new-node.js
rename : devtools/client/inspector/compatibility/test/browser/browser_compatibility_event_document-reload.js => devtools/client/inspector/compatibility/test/browser/browser_compatibility_event_new-node_without-connection.js
2020-03-12 16:27:38 +02:00
Daisuke Akatsuka
c422dc3ca1 Bug 1615509: Show throbber while processing. r=mtigley,ladybenko
Depends on D64535

Differential Revision: https://phabricator.services.mozilla.com/D65284

--HG--
extra : moz-landing-system : lando
2020-03-12 13:54:03 +00:00
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Nicolas Chevobbe
af6f342fd0 Bug 1566850 - Remove target.activeConsole usage in devtools extension code. r=jdescottes,rpl.
Depends on D56692

Differential Revision: https://phabricator.services.mozilla.com/D57103

--HG--
extra : moz-landing-system : lando
2019-12-16 13:11:12 +00:00
Julian Descottes
625d25aee8 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

--HG--
extra : moz-landing-system : lando
2019-12-13 10:38:07 +00:00
Sylvestre Ledru
90fac8fa22 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 12:03:37 +00:00
Andreea Pavel
b698eeec56 Backed out changeset 3d59cb02b6ff (bug 1562642) for eslint failure on a CLOSED TREE 2019-07-10 14:44:29 +03:00
Sylvestre Ledru
fd95abf361 Bug 1562642 - Part 3 - Add missing MPL2 headers in browser & toolkit r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37217

--HG--
extra : moz-landing-system : lando
2019-07-10 11:15:25 +00:00
Victor Porof
1f830c96da Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042

--HG--
extra : source : d3afcafdce650a6f36cebbc126ee93b17f13cf52
2019-07-05 09:53:32 +02:00
Andrew Swan
a2a47acbcd Bug 1549192 Remove extension shutdownReason footgun r=kmag
Checking extension.shutdownReason for any purpose other than detecting
app shutdown is unreliable, since actions such as disabing, uninstalling,
etc. may happen ito an extension after it has shut down.  Remove the
temptation for api authors to write incorrect code by removing
extension.shutdownReason and replacing it with an isAppShutdown boolean
passed to shutdown handlers.

Differential Revision: https://phabricator.services.mozilla.com/D30605

--HG--
extra : rebase_source : 07ff7710757150d011fec6bc3ed134c6509e9a12
2019-05-09 19:46:38 -07:00
Alexandre Poirot
dddc73fb49 Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

Differential Revision: https://phabricator.services.mozilla.com/D15831

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:32 +00:00
Luca Greco
0bc32af010 Bug 1518486 - Disable extension devtools_page for private tabs when not allowed by users. r=mixedpuppy
This patch applies the following changes:

- make sure that the WebExtensions internals do not create any devtools_page related to a private tabs' toolbox
  if the extension is not allowed to access the private browsing windows

- define a new mochitest to verify the expended behaviors on the private windows when the extension is
  allowed and not allowed

Depends on D15948

Differential Revision: https://phabricator.services.mozilla.com/D15949

--HG--
extra : moz-landing-system : lando
2019-01-31 19:43:44 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Alexandre Poirot
36ade4321e Bug 1503628 - Rename TabTarget to Target. r=yulia
MozReview-Commit-ID: BpmiEm05QIF

Depends on D11015

Differential Revision: https://phabricator.services.mozilla.com/D11016

--HG--
extra : moz-landing-system : lando
2018-11-08 10:30:59 +00:00
Alexandre Poirot
d13f51a0cb Bug 1494281 - Fix possible race around devToolsTarget promise creation r=rpl
MozReview-Commit-ID: DlB05jFPtGL

Differential Revision: https://phabricator.services.mozilla.com/D6939

--HG--
extra : moz-landing-system : lando
2018-10-01 14:45:11 +00:00
Alexandre Poirot
fc8714580a Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

Differential Revision: https://phabricator.services.mozilla.com/D6161

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 09:52:57 -07:00
Alexandre Poirot
f421baa62a Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Summary: Depends On D4536

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

Differential Revision: https://phabricator.services.mozilla.com/D4537

MozReview-Commit-ID: E3AIMyFgL5m
2018-09-24 09:52:50 -07:00
shindli
51a3c01ced Backed out 9 changesets (bug 1485676) for failures in browser/tools/mozscreenshots/devtools/browser_devtools.js CLOSED TREE
Backed out changeset d358feec4ca1 (bug 1485676)
Backed out changeset ed554dbb062f (bug 1485676)
Backed out changeset 6e78058df94d (bug 1485676)
Backed out changeset 3a6f1b0e71f4 (bug 1485676)
Backed out changeset 16d2403aa787 (bug 1485676)
Backed out changeset 454eddf52157 (bug 1485676)
Backed out changeset 926f725f2183 (bug 1485676)
Backed out changeset fb03f174bd5f (bug 1485676)
Backed out changeset ceb93dd1799a (bug 1485676)
2018-09-24 15:27:27 +03:00
Alexandre Poirot
796f22b354 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

Differential Revision: https://phabricator.services.mozilla.com/D6161

MozReview-Commit-ID: KmFi1LIUBga
2018-09-24 01:25:02 -07:00
Alexandre Poirot
7b7f2b7ebd Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Summary: Depends On D4536

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

Differential Revision: https://phabricator.services.mozilla.com/D4537

MozReview-Commit-ID: E3AIMyFgL5m
2018-09-24 01:24:59 -07:00
Gurzau Raul
ad28ad0169 Backed out 9 changesets (bug 1485676) for failing at damp inspector/cold-open.js on a CLOSED TREE
Backed out changeset 4de2e71debfe (bug 1485676)
Backed out changeset e63025150c7a (bug 1485676)
Backed out changeset f9ef30ae3f7f (bug 1485676)
Backed out changeset a83636fab16a (bug 1485676)
Backed out changeset b1fd24929e09 (bug 1485676)
Backed out changeset acb27b915742 (bug 1485676)
Backed out changeset ba2157632772 (bug 1485676)
Backed out changeset d1d6b9bc2372 (bug 1485676)
Backed out changeset d7646ea8640b (bug 1485676)
2018-09-22 19:42:04 +03:00
Alexandre Poirot
8724260e30 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Summary:
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

Differential Revision: https://phabricator.services.mozilla.com/D6161

MozReview-Commit-ID: KmFi1LIUBga
2018-09-22 08:34:21 -07:00
Alexandre Poirot
5cd419ffca Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Summary: Depends On D4536

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1485676

Differential Revision: https://phabricator.services.mozilla.com/D4537

MozReview-Commit-ID: E3AIMyFgL5m
2018-09-22 08:34:19 -07:00
arthur.iakab
6877b6a75c Backed out 9 changesets (bug 1485676)for perma failures in devtools/client/canvasdebugger/test/browser_canvas-actor-test-01.js CLOSED TREE
Backed out changeset 9f5ec2aa7109 (bug 1485676)
Backed out changeset 0d530c1316a4 (bug 1485676)
Backed out changeset 03278e6fe685 (bug 1485676)
Backed out changeset 275463260056 (bug 1485676)
Backed out changeset 4c5a956b33f7 (bug 1485676)
Backed out changeset d8fe80bb0e3c (bug 1485676)
Backed out changeset 56240996921f (bug 1485676)
Backed out changeset ec0a322f5cc9 (bug 1485676)
Backed out changeset f0f4f9407970 (bug 1485676)
2018-09-21 12:48:48 +03:00
Alexandre Poirot
c023333832 Bug 1485676 - Rename TabTarget.makeRemote to TabTarget.attach. r=jdescottes
Now that all the "remoting" of this method has been moved to TargetFactory.createTargetForTab,
we should rename this method to what it does now. It mostly call attach requests
of the target actor and its child console actor.
It also "connect" the webextension target actor, but I would like to eventually move that
outside of TabTarget.attach, like makeRemote.

Depends On D4078

Differential Revision: https://phabricator.services.mozilla.com/D6161

--HG--
extra : moz-landing-system : lando
2018-09-21 08:08:11 +00:00
Alexandre Poirot
2ec27d0a50 Bug 1485676 - Adapt gDevTools.createTargetForTab to new TabTarget class. r=yulia
Depends On D4536

Differential Revision: https://phabricator.services.mozilla.com/D4537

--HG--
extra : moz-landing-system : lando
2018-09-21 08:11:53 +00:00
Luca Greco
e8af81013a Bug 1451795 - Move lazy devtools initialization helper into a static method of the ExtensionAPI. r=aswan
MozReview-Commit-ID: KOxQcgsKXoB

--HG--
extra : rebase_source : 7290b3c437b6f3cdce9b1cb49065823b691d1c41
2018-04-11 18:36:05 +02:00