Commit Graph
67 Commits
Author SHA1 Message Date
Sylvestre Ledru 074b376055 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-28 10:21:10 +00:00
Alexandru Marc 630e6cf0e8 Revert "Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe" for causing devtools failures
This reverts commit ed535dace9.
2026-03-17 12:46:01 +00:00
Sylvestre Ledru ed535dace9 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-17 12:03:34 +00:00
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Gijs Kruitbosch 780b4fb75f Bug 1967204 - remove devtools eslint-env browser annotations, r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D266835
2025-10-01 09:59:33 +00:00
Alexandra Borovova 1df91fa83c Bug 1974167 - [devtools] Use "setOrientationOverride" method instead "setRDMPaneOrientation" for screen orientation emulation. r=devtools-reviewers,jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D263098
2025-09-05 12:01:51 +00:00
Holger Benl 3db8859b24 Bug 1968898 - [devtools] Revert viewport size inputs to their previous value on Escape. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D252117
2025-06-03 07:44:48 +00:00
Holger Benl 898b376c1b Bug 1968675 - [devtools] Apply the user agent when the input loses focus. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D251371
2025-06-02 16:41:42 +00:00
Holger Benl bf6b6467d1 Bug 1968677 - [devtools] Revert user agent input to its previous value on Escape. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D251370
2025-06-02 16:41:39 +00:00
Alexandre Poirot e1f9301f4e Bug 1953578 - [devtools] Migrate all usage of react-prop-types CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D241594
2025-03-19 13:30:51 +00:00
Alexandre Poirot 26260731f1 Bug 1953578 - [devtools] Migrate all usage of react CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,profiler-reviewers,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D241593
2025-03-19 13:30:51 +00:00
Alexandre Poirot adf0495bc3 Bug 1894628 - [devtools] Expose a list of user agent presets. r=devtools-reviewers,nchevobbe
To allow easily switching only the user agent between various types of browsers.
That, without having to create a new device.

Differential Revision: https://phabricator.services.mozilla.com/D238790
2025-03-11 23:52:40 +00:00
Julian Descottes bdb5a1d4f2 Bug 1770932 - [devtools] Show profile details in the network throttling menu items r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D147183
2025-01-15 11:05:24 +00:00
Abhijeet Chawla(ff2400t) 1a0df4e3b8 Bug 1810438 Stop using UNSAFE_componentWillReceiveProps in devtools/client/responsive/components/ViewportDimension.js r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D229897
2024-11-25 19:47:28 +00:00
Abhijeet Chawla(ff2400t) 88cb3b0125 Bug 1810439 - Stop using UNSAFE_componentWillReceiveProps in devtools/client/responsive/components/UserAgentInput.js r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D229895
2024-11-25 19:47:03 +00:00
Nicolas Chevobbe b735c460f7 Bug 1894949 - [devtools] Don't reset dpr/UA/Touch Simulation when resizing viewport. r=devtools-reviewers,jdescottes.
We used to reset the dpr, user agent and touch simulation when resizing the viewport,
which could be annoying if you selected a given device to "load" a given profile
(e.g. a specific UA + touch simulation), but want a bit more room to work.
We don't do anything yet so all those would be persisted when the user resizes.
Tests are updated accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D216171
2024-07-12 17:02:23 +00:00
Alexandre Poirot 2d75c3cd48 Bug 1867483 - [devtools] Stop async redux/react code after RDM is closed. r=devtools-reviewers,nchevobbe
Unmounting the top level React component will help avoid trigerring React updates
when async thunk actions keep dispatching new actions after the tool is closed.
This was leading to various exceptions in many React components.

Also avoid a race condition where `responsiveFront` could be undefined when closing
RDM while it is still initializing.

Finally, ensure registering the `ResponsiveUI` immediately in `activeTabs` to prevent
race condition in openIfNeeded.

Adding some test coverage for such race condition, but can't enable this on verify.
In chaos mode, there is too many exceptions at the test teardown.
Ideally, RDM should:
* only close the RDP client and let the server restore the default value on its own.
  i.e. we shouldn't do any request on closing.
* RDM close requests should wait for previous initialization request to be done.
  This would avoid zillion of possible exceptions because initialization is very async
  and each step may throw because of things are already being destroyed.
  But this wouldn't address race condition when the tab is closed.
  So RDM should probably try to have a more resilient initialization sequence as well.

Differential Revision: https://phabricator.services.mozilla.com/D197581
2024-01-11 09:46:12 +00:00
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Alexandre Poirot 59fe57c052 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot a9b2865c4e Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/responsive. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158378
2022-09-30 15:17:38 +00:00
Alexandre Poirot 0f32f335e3 Bug 1789201 - [devtools] Expose Services as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,julienw,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.Services.)/d" $(git grep -l 'require("Services")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .Services./d" $(git grep -l 'loader.lazyRequireGetter(this, "Services"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js
+ manual eslint fixes
+ removal of devtools-services in the debugger, except for jest tests

Differential Revision: https://phabricator.services.mozilla.com/D156401
2022-09-09 07:22:51 +00:00
Mark Banner 3387a89bc7 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Tetsuharu Ohzeki 555c13b886 Bug 1508688 - Add UNSAFE_ prefix to React deprecated lifecycle methods in devtools/client/responsive/. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149482
2022-06-16 10:03:11 +00:00
Nicolas Chevobbe 6a5f4bcbb5 Bug 1769973 - [devtools] Localize Device headers in Settings modal. r=bomsy.
We already have translation strings in `device.properties`, so we can use them.
String for `custom` type was missing, so we add it.
Assertions are added in test to check that we do have the expected labels in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D146784
2022-05-20 12:54:38 +00:00
Ricky Stewart 31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara 612312a64c Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart 065d2eb893 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 43baed3c18 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Micah Tigley 826a216584 Bug 1585092 - Remove Browser component r=gl
Depends on D83153

Differential Revision: https://phabricator.services.mozilla.com/D83154
2020-07-10 18:32:15 +00:00
Micah Tigley 6086b56c8d Bug 1585094 - Remove ResizableViewport component r=gl
Depends on D83152

Differential Revision: https://phabricator.services.mozilla.com/D83153
2020-07-11 01:35:25 +00:00
Micah Tigley 8d46ae259e Bug 1585095 - Remove the Viewports component r=gl
Differential Revision: https://phabricator.services.mozilla.com/D83152
2020-07-10 19:15:38 +00:00
Micah Tigley a7d1ef5644 Bug 1585096 - Cleanup code path separation in RDM's React components. r=gl
Depends on D82557

Differential Revision: https://phabricator.services.mozilla.com/D82558
2020-07-09 20:20:39 +00:00
Daisuke Akatsuka 686dea89a5 Bug 1620098: Avoid calling onUpdateDeviceModal twice when closing the device modal. r=mtigley
Depends on D67984

Differential Revision: https://phabricator.services.mozilla.com/D68141
2020-05-07 02:45:15 +00:00
Daisuke Akatsuka 601c9c68fd Bug 1620098: Remove unnecessary processing in RDM. r=mtigley
Depends on D67983

Differential Revision: https://phabricator.services.mozilla.com/D67984
2020-05-07 02:45:05 +00:00
Cosmin Sabou 9b221e8b34 Backed out 3 changesets (bug 1620098) for devtools jtest failures. CLOSED TREE
Backed out changeset a3a8244860bc (bug 1620098)
Backed out changeset 2996bd22bd97 (bug 1620098)
Backed out changeset 6b397048940f (bug 1620098)
2020-05-07 05:40:50 +03:00
Daisuke Akatsuka 8fa48b0ae4 Bug 1620098: Avoid calling onUpdateDeviceModal twice when closing the device modal. r=mtigley
Depends on D67984

Differential Revision: https://phabricator.services.mozilla.com/D68141
2020-04-29 14:52:38 +00:00
Daisuke Akatsuka 317e82552f Bug 1620098: Remove unnecessary processing in RDM. r=mtigley
Depends on D67983

Differential Revision: https://phabricator.services.mozilla.com/D67984
2020-04-29 14:52:37 +00:00
marylicious d37781cf0b Bug 1620932 Fix React warning in devtools/client/responsive/components/Browser.js r=gl
Differential Revision: https://phabricator.services.mozilla.com/D66859
2020-03-14 14:54:18 +00:00
Micah Tigley 9d3f776f55 Bug 1621306 - Enable the devtools.responsive.browserUI.enabled pref in Nightly only r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D66246
2020-03-11 11:41:48 +00:00
Micah Tigley f19ae80211 Bug 1619476 - Prevent submitting device form on an invalidation r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D65574
2020-03-05 18:43:25 +00:00
Micah Tigley 06c769a101 Bug 1604726 - Use a ResizeObserver to responsively size the toolbar. r=bgrins
The RDM toolbar currently scrolls with the page when there is overflow in `.browserStack`. This is because the browser viewport can be set to a size larger than browser window. The solution here sets makes the toolbar `position: fixed` and utilizes the `ResizeObserver` to adjust the size of the device modal/selector to take up the size of the browser stack.

Differential Revision: https://phabricator.services.mozilla.com/D63245
2020-02-26 14:46:58 +00:00
Daisuke Akatsuka 011e0d86d5 Bug 1610594: Use HTML menu component instead of xul menu. r=mtigley,jdescottes
Before now, we used XUL elements as the menu for device selection on RDM.
We introduced the icon on the XUL menuitem in bug 1306198, but the UI on Ubuntu
became weird looking. In order to fix this, we could think to modify Linux
gadget, but we replace to HTML menu components we are using in DevTools with
considering deXUL as well.

Differential Revision: https://phabricator.services.mozilla.com/D61149
2020-02-12 01:33:55 +00:00
Csoregi Natalia 0a03c7c4dc Backed out 3 changesets (bug 1610594) for failures on e.g. browser_device_selector_items.js. CLOSED TREE
Backed out changeset a9a2395b667f (bug 1610594)
Backed out changeset c3f7182fd57f (bug 1610594)
Backed out changeset 3ec353a434f9 (bug 1610594)
2020-02-06 04:26:59 +02:00
Daisuke Akatsuka 7f9b296ea2 Bug 1610594: Use HTML menu component instead of xul menu. r=mtigley,jdescottes
Before now, we used XUL elements as the menu for device selection on RDM.
We introduced the icon on the XUL menuitem in bug 1306198, but the UI on Ubuntu
became weird looking. In order to fix this, we could think to modify Linux
gadget, but we replace to HTML menu components we are using in DevTools with
considering deXUL as well.

Differential Revision: https://phabricator.services.mozilla.com/D61149
2020-02-05 23:44:51 +00:00
Julian Descottes 150349d1c5 Bug 1596686 - Use absolute paths for require calls r=gl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243
2019-12-27 12:23:47 +00:00
Razvan Maries 0f5ce38e4c Backed out changeset 14698fa06ab8 (bug 1596686) for causing perma fails on browser_json_refresh.js. 2019-12-27 14:01:24 +02:00
Julian Descottes 3fa1b45876 Bug 1596686 - Use absolute paths for require calls r=gl
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243
2019-12-27 09:09:51 +00:00
Micah Tigley c25fdf16d4 Bug 1595800 - Part 4: Update RDM to use setRDMPaneOrientation from BrowsingContext r=bradwerth
Depends on D55002

Differential Revision: https://phabricator.services.mozilla.com/D55017
2019-12-04 14:58:20 +00:00