Commit Graph
10793 Commits
Author SHA1 Message Date
Cosmin Sabou 438ab15b79 Merge mozilla-central to mozilla-inbound. 2018-11-28 06:12:39 +02:00
Jason Laster 2ecc9b767f Bug 1510430 - Update Debugger Frontend v104. r=dwalsh 2018-11-27 21:47:47 -05:00
Jason Laster 2902ccf38e Bug 1510048 - Player UI Updates. r=dwalsh
Tags:

Bug #: 1510048

Differential Revision: https://phabricator.services.mozilla.com/D13017
2018-11-27 21:46:20 -05:00
Alexandre Poirot b402ba2756 Bug 1509315 - Remove leftover from debugger head.js file. r=yulia
I also removed the get root form leftover.

MozReview-Commit-ID: DxPwG9a5YAG

Depends on D12731

Differential Revision: https://phabricator.services.mozilla.com/D12732
2018-11-27 21:48:01 +00:00
Alexandre Poirot 0205bcb97a Bug 1509315 - Use TargetFactory.forTab for creating targets in tests. r=yulia
There is 4 patterns here:
* Tests using attachThreadActorForUrl like event-listeners ones. I augmented this helper method to call TargetFactory.
* Tests using attachTargetActorForUrl like debugger-statement, dbg-navigation and target-scoped-actor. Uses TargetFactory directly.
* Tests using connectDebuggerClient like navigateEvents and spaw_actor_in_parent. Uses TargetFactory directly.
* All the others, where creating DebuggerClient on their own, and calling listTabs+attachTarget. They now use TargetFactory directly.

A note about webconsole-helpers, only consoleClient attribute was used from tests using this helper.
Also, in various tests I remove the call to client.destroy, that's because shared-head will
close all the tabs/toolboxes and it should lead to target/client destruction.
Finally, debugger-statement now request the thread actor via the client instead of manual request,
it should help the refactoring to a front!

MozReview-Commit-ID: 2ah4UmSjuoi

Depends on D12730

Differential Revision: https://phabricator.services.mozilla.com/D12731
2018-11-27 21:47:59 +00:00
Alexandre Poirot 2c7d0fee4e Bug 1509315 - Pass the full target form to all BrowsingContextTargetFront instances. r=yulia
For now, we only pass { actor } for all tab target fronts created via DebuggerClient.attachTarget,
whereas parent process target fronts were passing the full form from RootFront.getProcess.

MozReview-Commit-ID: 1H2NxFv8glY

Differential Revision: https://phabricator.services.mozilla.com/D12730
2018-11-27 21:47:52 +00:00
Alexandre Poirot 67bb5020f7 Bug 1506546 - Use protocol.js to fetch WebExtension target actor. r=yulia
We were dipatching the "connect" request manually, whereas we should be using
protocol.js specifications. It also help getting rid of another use of "form"
instead of "front"/activeTab in Target class.

MozReview-Commit-ID: IOH4mDprAVL

Depends on D12577

Differential Revision: https://phabricator.services.mozilla.com/D12578
2018-11-27 19:16:51 +00:00
Alexandre Poirot 3e32f9edd3 Bug 1506546 - Refactor about:debuggings. r=yulia,jdescottes
I did a dedicated patch for converting both about:debuggings as it is slightly more
complex as we have to tweak redux data, wrappers, mocks.
This patch also convert a manual "reload" request being done by about:debugging
and instead use protocol.js front to do it.
Also, I moved isLegacyTemporaryExtension to the front as it depends on accessing the form
and it should be better to keep form processing to the fronts, if possible.

MozReview-Commit-ID: 16qZkuCBp9b

Depends on D12576

Differential Revision: https://phabricator.services.mozilla.com/D12577
2018-11-27 19:17:11 +00:00
Alexandre Poirot 6d6a725f9b Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 19:17:48 +00:00
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
Alexandre Poirot 05559ce854 Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574
2018-11-27 19:18:28 +00:00
Alexandre Poirot 2417c51df4 Bug 1506546 - Refactor getAddonActorForId test helper. r=yulia
MozReview-Commit-ID: A7JxzO7rhhe

Differential Revision: https://phabricator.services.mozilla.com/D12573
2018-11-27 19:18:46 +00:00
Razvan Maries a15e46aa68 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-11-27 19:35:52 +02:00
Razvan Maries 159367c3fe Merge mozilla-inbound to mozilla-central a=merge 2018-11-27 19:32:31 +02:00
Julian Descottes 366719d337 Bug 1492700 - Stop sending adb-addon updates from Devices.jsm;r=daisuke
Depends on D12758

Differential Revision: https://phabricator.services.mozilla.com/D12759
2018-11-27 12:49:11 +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
Belén Albeza 835be60e3e Bug 1479746 - (part 3) Instructions to upgrade react-router-dom library. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D12743
2018-11-27 12:05:54 +00:00
Belén Albeza 01e18ace08 Bug 1479746 - (part 2) Add test for routes. r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D12316
2018-11-27 12:08:04 +00:00
Belén Albeza 849b1604bb Bug 1479746 - Add router-like feature to navigate via URL bar. r=jdescottes,daisuke
I'm sorry this is just one commit, I should have split it :( I will submit tests in another patch.

- Vendored [react-router-dom](https://www.npmjs.com/package/react-router-dom) library.
- Removed `getSelectedPageComponent` from `App` component and changed it to use React Router's `Route` components.
- Made the sidebar links to point to proper URL's. Thanks to this we don't need a lot of code/props we were passing to these items to select the proper page.

Some considerations over the implementation:

- React Router's `Switch` is used to wrap our routes, to ensure only one is rendered. Right now is not strictly necessary, but I think it helps to clarify that the routes are _not_ nested.
- We need to pass a `key` prop to the `RuntimePage` rendered in the route, so when we change the actual runtime shown, the page gets updated.
- The action `selectPage` gets called on `componentWillMount`, so it doesn't change state while rendering.
- When we reload the page and a device runtime is selected, we redirect to "This Firefox" page.

(Click on this GIF to see navigation 👇)
{F1100903}

I'm sorry this has taken this long, it has been a bit of a headache 🙏

Differential Revision: https://phabricator.services.mozilla.com/D12147
2018-11-27 12:03:12 +00:00
Alexandre Poirot be575263a9 Bug 1506546 - Use protocol.js to fetch WebExtension target actor. r=yulia
We were dipatching the "connect" request manually, whereas we should be using
protocol.js specifications. It also help getting rid of another use of "form"
instead of "front"/activeTab in Target class.

MozReview-Commit-ID: IOH4mDprAVL

Depends on D12577

Differential Revision: https://phabricator.services.mozilla.com/D12578
2018-11-27 11:23:26 +00:00
Alexandre Poirot b607a11eb5 Bug 1506546 - Refactor about:debuggings. r=yulia,jdescottes
I did a dedicated patch for converting both about:debuggings as it is slightly more
complex as we have to tweak redux data, wrappers, mocks.
This patch also convert a manual "reload" request being done by about:debugging
and instead use protocol.js front to do it.
Also, I moved isLegacyTemporaryExtension to the front as it depends on accessing the form
and it should be better to keep form processing to the fronts, if possible.

MozReview-Commit-ID: 16qZkuCBp9b

Depends on D12576

Differential Revision: https://phabricator.services.mozilla.com/D12577
2018-11-27 11:23:24 +00:00
Alexandre Poirot 215fe5609a Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 11:23:22 +00: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
Alexandre Poirot 8df5a146e5 Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574
2018-11-27 11:23:18 +00:00
Alexandre Poirot 9ead47e770 Bug 1506546 - Refactor getAddonActorForId test helper. r=yulia
MozReview-Commit-ID: A7JxzO7rhhe

Differential Revision: https://phabricator.services.mozilla.com/D12573
2018-11-27 11:23:11 +00:00
Julian Descottes b84b89e88e Bug 1497457 - Remove transportDetails from runtimeDetails;r=daisuke,ladybenko
Depends on D12095. Now that we pass a remoteId to open about:devtools-toolbox, we actually don't need transportDetails

Differential Revision: https://phabricator.services.mozilla.com/D12097
2018-11-27 10:23:24 +00:00
Julian Descottes d0d97d61ad Bug 1497457 - Clear clients stored in remote client manager after tests;r=daisuke,ladybenko
Depends on D12040. If we don't cleanup the clients after the test, some tests may leak.

Differential Revision: https://phabricator.services.mozilla.com/D12095
2018-11-27 10:22:40 +00:00
Julian Descottes 6398bfec53 Bug 1497457 - Reuse clients from remote client manager in about:devtools-toolbox;r=daisuke,ladybenko
Depends on D12039

Differential Revision: https://phabricator.services.mozilla.com/D12040
2018-11-27 10:22:31 +00:00
Julian Descottes 55c2f9171c Bug 1497457 - Test runtime is still connected after about:debugging reload;r=daisuke,ladybenko
Depends on D11993

Differential Revision: https://phabricator.services.mozilla.com/D12039
2018-11-27 10:17:55 +00:00
Julian Descottes 8960039ce5 Bug 1497457 - Introduce remote client manager to persist connected remote clients;r=daisuke,ladybenko
Depends on D11992

Differential Revision: https://phabricator.services.mozilla.com/D11993
2018-11-27 10:14:50 +00:00
Andreea Pavel 68910f88f0 Backed out changeset ad857edac6a5 (bug 1498163) for failing devtools/client/performance/test/browser_perf-telemetry-04.js on a CLOSED TREE 2018-11-27 11:05:28 +02:00
Razvan Caliman bb3e9ca2d0 Bug 1508293 - Update comment for TRACK_CHANGE event in Changes reducer; r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D12768
2018-11-26 15:55:36 +00:00
Jan-Erik Rediger 92e96563e7 Bug 1498163 - Migrate external callers to the new snapshot API r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D12890
2018-11-26 14:34:23 +00:00
Daniel Varga 2338233c05 Backed out 7 changesets (bug 1497457) for devtools failure at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_sidebar_usb_runtime_refresh.js on a CLOSED TREE
Backed out changeset d3b46f3a0306 (bug 1497457)
Backed out changeset bd490139b395 (bug 1497457)
Backed out changeset b2830500918c (bug 1497457)
Backed out changeset 9923755ee205 (bug 1497457)
Backed out changeset f2a39a18f2f6 (bug 1497457)
Backed out changeset 95365a2d7470 (bug 1497457)
Backed out changeset 0e93acc09952 (bug 1497457)
2018-11-27 00:59:34 +02:00
Julian Descottes 3030eab6a9 Bug 1497457 - Fix aboutdebugging systemaddons test after signature change; r=fix 2018-11-26 22:18:18 +01:00
Julian Descottes 1c27d85b74 Bug 1497457 - Remove transportDetails from runtimeDetails;r=daisuke,ladybenko
Depends on D12095. Now that we pass a remoteId to open about:devtools-toolbox, we actually don't need transportDetails

Differential Revision: https://phabricator.services.mozilla.com/D12097
2018-11-26 19:57:35 +00:00
Julian Descottes 5537812de2 Bug 1497457 - Clear clients stored in remote client manager after tests;r=daisuke,ladybenko
Depends on D12040. If we don't cleanup the clients after the test, some tests may leak.

Differential Revision: https://phabricator.services.mozilla.com/D12095
2018-11-26 19:57:02 +00:00
Julian Descottes 1377a1398b Bug 1497457 - Reuse clients from remote client manager in about:devtools-toolbox;r=daisuke,ladybenko
Depends on D12039

Differential Revision: https://phabricator.services.mozilla.com/D12040
2018-11-26 19:55:33 +00:00
Julian Descottes 7d098bfc50 Bug 1497457 - Test runtime is still connected after about:debugging reload;r=daisuke,ladybenko
Depends on D11993

Differential Revision: https://phabricator.services.mozilla.com/D12039
2018-11-26 19:54:15 +00:00
Julian Descottes 6f2105e279 Bug 1497457 - Introduce remote client manager to persist connected remote clients;r=daisuke,ladybenko
Depends on D11992

Differential Revision: https://phabricator.services.mozilla.com/D11993
2018-11-26 19:53:47 +00:00
Julian Descottes 6708e0ad1f Bug 1488499 - Hide system addons in aboutdebugging-new if showSystemAddons pref is false;r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D12462
2018-11-26 19:02:23 +00:00
Patrick Brosset ee1a1da86a Bug 1509070 - Add histogram to track the type of flex elements selected r=miker
Differential Revision: https://phabricator.services.mozilla.com/D12564
2018-11-26 16:39:23 +00:00
Julian Descottes c7929c7190 Bug 1501393 - Backed out changeset f21a33a5ef89, remove test-only code;r=pbro,gl
Sorry but 65 is coming to an end, we really need to address this before the
release is closed.

Differential Revision: https://phabricator.services.mozilla.com/D12869
2018-11-26 16:20:00 +00:00
Julian Descottes 824314b001 Bug 1509781 - Check if server supports changes actor to enable Changes panel;r=yulia,rcaliman
This will enable connecting to Firefox 63 (and 64? not sure in which release the changes actor
was introduced) from Nightly. Pinging yulia for review to check if there is a better way to handle such
backward compatible code when using the getFront API.

Differential Revision: https://phabricator.services.mozilla.com/D12872
2018-11-26 13:20:18 +00:00
Ola Gasidlo b6e9b093e5 Bug 1509301. Adding contact info to README.md r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D12894
2018-11-26 12:03:45 +00:00
Julian Descottes 58106527ea Bug 1507708 - Add default values for aboutdebugging wifi and network features;r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D12444
2018-11-23 16:51:12 +00:00
Nazım Can Altınova eb059f7d89 Bug 1476775 - Part 2: Change the profiler usage in devtools after API change r=julienw,gregtatum
Depends on D6267

Differential Revision: https://phabricator.services.mozilla.com/D6268
2018-11-23 16:10:08 +00:00
Razvan Caliman d21ce8366a Bug 1506751 - Re-assign listeners for Observable instances that monitor TargetActor windows on navigate. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D12560
2018-11-23 15:46:26 +00:00
Michael Ratcliffe 21c448c586 Bug 1509107 - Debugger icons missing from event bubble popup r=pbro
Updated to the new path and found a filter that gives us the exact colours we had previously in both light and dark mode.

Differential Revision: https://phabricator.services.mozilla.com/D12660
2018-11-23 15:25:29 +00:00
Narcis Beleuzu c1ff465f3a Backed out changeset 0fa44cb3f4b6 (bug 1506751) for xpcshell failures on reflow.js 2018-11-23 16:46:26 +02:00