Commit Graph
48 Commits
Author SHA1 Message Date
Staś Małolepszy 1d2c6b44d6 Bug 1568914 - Update Fluent to @fluent/bundle 0.14.0 r=zbraniecki,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39400
2019-07-30 13:21:59 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Belén Albeza 5de27e666a Bug 1554133 - Part 1: move about:debugging's l10n module to a shared folder r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D32735
2019-06-04 14:08:50 +00:00
Bogdan Tara a59a03377d Backed out 2 changesets (bug 1554133) for package related build bustages CLOSED TREE
Backed out changeset 72ae1ac933ac (bug 1554133)
Backed out changeset c48321582c78 (bug 1554133)
2019-06-04 17:05:53 +03:00
Belén Albeza 536b8c8e3a Bug 1554133 - Part 1: move about:debugging's l10n module to a shared folder r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D32735
2019-06-03 12:15:17 +00:00
Julian Descottes c9481e795f Bug 1552108 - Do not wait for runtimes in about:debugging init if ADB not started r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D31403
2019-05-16 13:23:40 +00:00
Julian Descottes 9222284cd6 Bug 1514787 - Remain on the same Runtime page when reloading about:debugging r=ladybenko,daisuke
The idea is to wait for ADB runtimes to be available before trying to render the initial route.
This way if we happen to find the runtime matching the current runtime, and if we still have a connected client for it, we can display the same runtime page.

Differential Revision: https://phabricator.services.mozilla.com/D28094
2019-04-29 19:32:16 +00:00
Belén Albeza b0a1d9b3fd Bug 1498469 - Part 1: Wait until adb process is ready to show the 'Usb enabled' message r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D27296
2019-04-23 11:44:44 +00:00
Julian Descottes de1ad121ae Bug 1505289 - Move unknown runtime logic to aboutdebugging r=Ola,ladybenko
The notion of unknown runtime is only relevant to aboutdebugging
As we will complexify this to handle unplugged devices, moving it to aboutdebugging seems reasonable.

Differential Revision: https://phabricator.services.mozilla.com/D25779
2019-04-15 22:23:01 +00:00
Julian Descottes eee1858853 Bug 1487581 - Remove aboutdebugging.notftl file;r=daisuke
Depends on D23878

Differential Revision: https://phabricator.services.mozilla.com/D23879
2019-03-20 18:08:18 +00:00
Julian Descottes c9150c9c67 Bug 1504173 - Record open, close and page_select events in new about:debugging;r=ladybenko,janerik,datareview=chutten
Data review document in bugzilla.

Differential Revision: https://phabricator.services.mozilla.com/D16330
2019-01-29 09:55:21 +00:00
Julian Descottes 4c980ae614 Bug 1511019 - Localize runtime name This Firefox in aboutdebugging state;r=Ola,ladybenko
This approach forces to have a new action here, but the alternative was to create
the store after initializing l10n.js, which breaks all the tests because our current helper
waitForRequestsSuccess is quite fragile.

Differential Revision: https://phabricator.services.mozilla.com/D16455
2019-01-16 16:55:37 +00:00
Ola Gasidlo f3b602cc6b Bug 1500353 - Update localization for document title r=ladybenko,jdescottes
- added localization module
- added test

Differential Revision: https://phabricator.services.mozilla.com/D14415
2019-01-11 13:29:56 +00:00
Julian Descottes d1192a32c5 Bug 1495382 - Check isMultiE10s from runtime info;r=daisuke,ladybenko
Depends on D15081

Differential Revision: https://phabricator.services.mozilla.com/D15399
2019-01-09 09:44:15 +00:00
Julian Descottes a85f52916e Bug 1516529 - Test that network runtime connections are also persisted;r=daisuke
Depends on D15409

Differential Revision: https://phabricator.services.mozilla.com/D15410
2019-01-04 12:44:57 +00:00
Julian Descottes 3c832594e4 Bug 1516529 - Restore connections for NetworkRuntimes;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D15409
2019-01-04 12:44:09 +00:00
Bel?n Albeza 665c13576a Bug 1488502 - Disable service workers debugging when in multi e10s. r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D14540
2018-12-19 13:14:51 +00:00
Julian Descottes 295192bca0 Bug 1492700 - Introduce adb singleton to register adb consumers;r=daisuke
Depends on D13476

Differential Revision: https://phabricator.services.mozilla.com/D13477
2018-12-06 14:57:03 +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
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
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 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 2848b0a6f8 Bug 1507071 - Explicitly uninstall valence and adbhelper when starting aboutdebugging and webide;r=ochameau
Depends on D11862

Differential Revision: https://phabricator.services.mozilla.com/D11890
2018-11-14 15:33:01 +00:00
Julian Descottes 20fc04c9ff Bug 1493698 - Add l10n localization helper for new about:debugging;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D10704
2018-11-06 18:38:02 +00:00
Alexandre Poirot 06659ed0a4 Bug 1500079 - Ensure that new about:debugging tests wait for initial load requests before proceeding with the tests. r=jdescottes
MozReview-Commit-ID: 9ClZ2lkdq01

Depends on D8868

Differential Revision: https://phabricator.services.mozilla.com/D9084
2018-10-29 16:10:46 +00:00
Zibi Braniecki 715693b1b7 Bug 1498960 - Update Fluent in Gecko to 0.9. r=stas
Differential Revision: https://phabricator.services.mozilla.com/D8689
2018-10-20 16:35:50 +00:00
Julian Descottes 419696b166 Bug 1494549 - Show USB devices status in sidebar;r=ladybenko
Maybe we want to land the simplest solution for now and discuss
quickly how to style the message to reduce confusion in a follow up?

Differential Revision: https://phabricator.services.mozilla.com/D8334
2018-10-17 11:10:05 +00:00
Margareta Eliza Balazs e3c9edad06 Backed out 3 changesets (bug 1494549) for multiple failures e.g.: devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_sidebar_usb_status.js CLOSED TREE
Backed out changeset 5729da1055e8 (bug 1494549)
Backed out changeset 7c62247314d7 (bug 1494549)
Backed out changeset bff7126ddd3f (bug 1494549)
2018-10-17 11:52:14 +03:00
Julian Descottes d467fa53d2 Bug 1494549 - Show USB devices status in sidebar;r=ladybenko
Maybe we want to land the simplest solution for now and discuss
quickly how to style the message to reduce confusion in a follow up?

Differential Revision: https://phabricator.services.mozilla.com/D8334
2018-10-17 07:19:25 +00:00
Cosmin Sabou 7a8566ed03 Backed out 3 changesets (bug 1494549) for OSX devtools failures. CLOSED TREE
Backed out changeset e9abf60db23b (bug 1494549)
Backed out changeset 3e89e661031c (bug 1494549)
Backed out changeset 0d7e2a4ad360 (bug 1494549)
2018-10-16 12:34:38 +03:00
Julian Descottes bd22a9975f Bug 1494549 - Show USB devices status in sidebar;r=ladybenko
Maybe we want to land the simplest solution for now and discuss
quickly how to style the message to reduce confusion in a follow up?

Differential Revision: https://phabricator.services.mozilla.com/D8334
2018-10-15 15:31:14 +00:00
Zibi Braniecki a968635d1d Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

Differential Revision: https://phabricator.services.mozilla.com/D6339
2018-09-21 15:30:37 +00:00
Daisuke Akatsuka 81f676aa29 Bug 1405235 - Part 1: Implement a mechanism to show USB devices. r=jdescottes
Depends on D5386

Differential Revision: https://phabricator.services.mozilla.com/D5647
2018-09-21 11:24:18 +00:00
Daisuke Akatsuka f193bf52fb Bug 1490950: Define aboutdebugging in script tag on html. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D6227
2018-09-19 22:07:01 +00:00
Julian Descottes b2d8576367 Bug 1483497 - Display debug targets for network locations;r=daisuke,ladybenko 2018-09-06 12:18:51 +02:00
Julian Descottes 75c032a875 Bug 1483497 - Rename connect/disconnect actions to watch/unwatch;r=daisuke,ladybenko 2018-09-06 11:06:52 +02:00
Julian Descottes 4a626094f2 Bug 1483497 - Store network runtimes in the state;r=daisuke,ladybenko 2018-08-30 19:05:55 +02:00
Julian Descottes e4f32ce929 Bug 1489219 - Cleanup all listeners on aboutdebugging unload;r=daisuke,ladybenko 2018-09-07 17:29:25 +02:00
Daisuke Akatsuka 6f3a8f4ea3 Bug 1477603 - Part 5: Save collapsibilities as prefs when destroing. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D4743

Depends on D4047
2018-08-31 16:17:47 +09:00
Brian Birtles dddccef08c Bug 1485901 - Don't add aboutdebugging locale source if it has already been added; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4745
2018-08-31 08:35:33 +00:00
Brian Birtles 3a7eba7f8f Bug 1485901 - Add localization plumbing for new about:debugging panels; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4503
2018-08-30 00:56:15 +00:00
Julian Descottes df5b8d9105 Bug 1482054 - Allow to add and remove network locations in Connect Page;r=daisuke
Tags: #secure-revision

Differential Revision: https://phabricator.services.mozilla.com/D3031
2018-08-09 18:47:57 +02:00
Daisuke Akatsuka ae55602fcf Bug 1477597 - Part 1: Implement a mechanism to dispatch tabs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2762
2018-08-06 13:00:36 +09:00
Julian Descottes d2baa90dfa Bug 1479416 - Add Connect sidebar item to aboutdebugging-new;r=daisuke
This patch adds:
- a new action actions/ui:selectPage
  - takes a page id in argument
  - returns type PAGE_SELECTED, with selected page id as 'page'
- a new reducer reducers/ui-state
  - on PAGE_SELECTED, updates the state by setting 'page' in 'selectedPage'

The state of the application after this patch looks as follows:
{
  ui: {
    selectedPage: String
  }
}

As we add more devices the way we identify the selected page might change
(maybe use an index instead of an id) but that is good enough for now.

The "dispatch" helper is forwarded to the App component via connect.
From that point, components are responsible for forwarding the dispatch
property to all components who need to dispatch actions.

Differential Revision: https://phabricator.services.mozilla.com/D2549
2018-08-03 07:23:33 +00:00
Julian Descottes eadeea86dd Bug 1479411 - Remove all actions and reducers from new about:debugging UI;r=daisuke
MozReview-Commit-ID: 6OjfdnfvlC5
2018-07-30 14:19:59 +02:00
Daisuke Akatsuka 1738654a57 Bug 1471795 - Part 4: Implement an action of when runtime was selected. r=jdescottes,ladybenko
MozReview-Commit-ID: JtYkAgjr3oT
2018-07-26 17:56:38 +09:00
Daisuke Akatsuka 45c3ad94e7 Bug 1471795 - Part 2: Introduce Runtime class. r=jdescottes
MozReview-Commit-ID: EajaVnn9kR3
2018-07-26 17:52:10 +09:00
Daisuke Akatsuka 20dcb866d6 Bug 1471795 - Part 1: Implement basis of 'This Firefox' page. r=jdescottes,ladybenko
In this patch, implement following basic things of 'ThisFirefox' page for new
about:debugging.

* Add a pref devtools.aboutdebbugging.enabled-new to enable new about:debbugging.
* Add a function which switches new/old about:debugging page by the pref.
* Add devtools/client/aboutdebugging-new directory for new about:debugging.
* Add basic html, css, JavaScript and React component.

MozReview-Commit-ID: 5DtV7rRcS0S
2018-07-26 17:52:10 +09:00