Commit Graph
71 Commits
Author SHA1 Message Date
Thomas Nguyen ee02fbe71a Bug 1554947 - Update saveURL to use referrerInfo class instead of referrer and referrerr policy r=Gijs,snorp
Differential Revision: https://phabricator.services.mozilla.com/D33939
2019-07-16 17:59:28 +00:00
Micah Tigley 650c084d72 Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-08 21:35:42 +00:00
Bogdan Tara cae644d5ae Backed out changeset f4ea30c29aa7 (bug 1556533) for browser_orientationchange_event.js failures CLOSED TREE 2019-06-07 04:54:14 +03:00
Micah Tigley fe18dc1d5c Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-07 00:00:55 +00:00
Bogdan Tara bf5e2495a2 Backed out changeset 91643c6f9a42 (bug 1556533) for es lint failure CLOSED TREE 2019-06-07 00:22:18 +03:00
Micah Tigley e4d1e3eb06 Bug 1556533 - Fix RDM simulating orientationchange event when the page is refreshed. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D33734
2019-06-06 19:18:16 +00:00
Micah Tigley 1e019458d6 Bug 1357774 - Part 2: Add the ability to update orientation state of a simulated device in RDM r=gl
This patch gives the RDM UI the ability to update the screen orientation based on the orientation of the simulated device screen. It fixes the following issues:

  - Initializing the orientation state of the selected device when RDM is opened.
  - Updating orientation state when the rotate button in the RDM toolbar is pressed.
  - Updating the orientation state when a new device is selected.

There are three actions creators that are responsible for notifying the ResponsiveUI manager, `changeDevice`, `restoreDeviceState`, and `rotateViewport`. In particular:



  - `restoreDeviceState` is dispatched when the Responsive UI has finished initializing. If a previous RDM session had a device selected, then this action creator will also dispatch the `changeDevice` action to update the RDM UI to reflect the currently selected device.
  - `changeDevice` is dispatched when a device is selected.
  - `rotateViewport` is dispatched when the rotate button is clicked in the RDM toolbar.

When either of these actions is dispatched, we post a "viewport-orientation-change" message to the window that notifies the manager to update the screen orientation accordingly.

Finally, when RDM is closed, we need to ensure the original physical screen orientation is restored. We do this by calling the `setRDMPaneOrientation` on the docShell's document in the content frame script.

Differential Revision: https://phabricator.services.mozilla.com/D30440
2019-05-22 20:07:13 +00:00
Micah Tigley ed5d1984b6 Bug 1509255 - Simulate 'orientationchange' event when RDM viewport is rotated. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D29308
2019-05-03 16:32:22 +00:00
Coroiu Cristina 760e201707 Backed out changeset 20874bfade8e (bug 1509255) for xpcshell failures at devtools/client/responsive.html/test/unit/test_rotate_viewport.js 2019-05-03 18:07:43 +03:00
Micah Tigley aa8774871a Bug 1509255 - Simulate 'orientationchange' event when RDM viewport is rotated. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D29308
2019-05-03 14:00:37 +00:00
Micah Tigley b1b03ca9a6 Bug 1536808 - Add ability to edit devices r=gl
Differential Revision: https://phabricator.services.mozilla.com/D22180
2019-04-10 17:37:33 +00:00
Gabriel Luong b656a50b55 Bug 1503902 - Avoid resizing RDM when restoring the device state and simply use the stored pref width and height. r=rcaliman 2018-11-15 12:59:49 -05:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Gabriel Luong dcda75acbf Bug 1248619 - Part 2: Restore the previous device state in RDM. r=rcaliman 2018-10-09 14:53:29 -04:00
Bogdan Tara c9a287c885 Backed out 2 changesets (bug 1248619) for devtools/client/responsive.html/test/unit/test_change_device.js failures
Backed out changeset fb2a9e0b7538 (bug 1248619)
Backed out changeset ae15dbcedd8a (bug 1248619)
2018-10-09 22:43:50 +03:00
Gabriel Luong 06ef44d8f3 Bug 1248619 - Part 2: Restore the previous device state in RDM. r=rcaliman 2018-10-09 14:53:29 -04:00
Gabriel Luong 08d62a71f7 Bug 1248619 - Part 1: Refactor and restore the reload condition settings in RDM. r=rcaliman 2018-09-24 13:04:03 -04:00
Gabriel Luong 053972912f Bug 1297431 - Add a custom user agent input in responsive design mode. r=rcaliman 2018-09-12 22:44:23 -04:00
Gabriel Luong 3c1e459365 Bug 1488114 - Refactor the reducers in RDM. r=rcaliman 2018-09-04 10:47:41 -04:00
Narcis Beleuzu 2d68169fc3 Backed out changeset 7ffb06278c4c (bug 1488114) for xpcshell failures on test_change_pixel_ratio.js. CLOSED TREE 2018-09-04 19:24:12 +03:00
Gabriel Luong c04f5aee7d Bug 1488114 - Refactor the reducers in RDM. r=rcaliman 2018-09-04 10:47:41 -04:00
Gabriel Luong 047dcb1fbb Bug 1467572 - Part 17: Implement left alignment of viewports. r=rcaliman 2018-08-15 17:27:55 -04:00
Gabriel Luong 8a04f6330d Bug 1467572 - Part 9: Use native context menu instead of select elements in the reload condition menu of RDM. r=Honza
- Converts the reload condition <select> to use native context menu
- Converts the showMenu util to be reusable by both RDM and the Network Monitor
- Renames getToplevelWindow to getTopLevelWindow
- Renames the reload condition menu to be a setting menu in RDM according to the designs
- Uses the new photon setting icon in RDM
2018-08-15 17:27:41 -04:00
Csoregi Natalia df9db8ee3d Backed out 19 changesets (bug 1467572) for devtools failures on browser_net_telemetry_throttle_changed.js. CLOSED TREE
Backed out changeset 39123899178c (bug 1467572)
Backed out changeset 62fcbe25665c (bug 1467572)
Backed out changeset 5ef6c1c42747 (bug 1467572)
Backed out changeset e295be61276e (bug 1467572)
Backed out changeset 41d85a6f8a2a (bug 1467572)
Backed out changeset 4e6b95a6c506 (bug 1467572)
Backed out changeset 36d459a24020 (bug 1467572)
Backed out changeset abb52c2c68ab (bug 1467572)
Backed out changeset 470b9ce4ba0f (bug 1467572)
Backed out changeset 37609995dc8f (bug 1467572)
Backed out changeset 636bf5ce96f7 (bug 1467572)
Backed out changeset 5880a55d2ee8 (bug 1467572)
Backed out changeset 0f19f84bb2ed (bug 1467572)
Backed out changeset e83526778ccd (bug 1467572)
Backed out changeset c42448ca6e4a (bug 1467572)
Backed out changeset 934fb24dad26 (bug 1467572)
Backed out changeset 6102b9ef805b (bug 1467572)
Backed out changeset 7aaea1245d27 (bug 1467572)
Backed out changeset 7793f8a2b14f (bug 1467572)
2018-08-16 03:43:41 +03:00
Gabriel Luong de1dbb6606 Bug 1467572 - Part 17: Implement left alignment of viewports. r=rcaliman 2018-08-15 17:27:55 -04:00
Gabriel Luong 443afc34b9 Bug 1467572 - Part 9: Use native context menu instead of select elements in the reload condition menu of RDM. r=Honza
- Converts the reload condition <select> to use native context menu
- Converts the showMenu util to be reusable by both RDM and the Network Monitor
- Renames getToplevelWindow to getTopLevelWindow
- Renames the reload condition menu to be a setting menu in RDM according to the designs
- Uses the new photon setting icon in RDM
2018-08-15 17:27:41 -04:00
J. Ryan Stinnett b51df0a45f Bug 1306975 - Support containers in RDM. r=gl
This adds support for container tabs / contextual identity in Responsive Design
Mode.  Tabs in non-default contexts can now be opened in RDM just like regular
tabs.

MozReview-Commit-ID: BofTgrowjGV
2018-02-23 17:33:55 -06:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Jan Odvarko 3d7ed908f8 Bug 1349559 - Introduce UI for network throttling in the Net panel; r=jryans
MozReview-Commit-ID: Ad0ABzf0YuY
2018-05-01 11:07:18 +02:00
Ciure Andrei 6ad6be1da6 Backed out changeset daac5f4217b6 (bug 1349559) for failing devtools/client/responsive.html/test/unit/test_change_network_throttling.js CLOSED TREE 2018-05-01 09:58:59 +03:00
Jan Odvarko 65dcf95fd2 Bug 1349559 - Introduce UI for network throttling in the Net panel; r=jryans
MozReview-Commit-ID: 8CvBHckNSpZ
2018-05-01 07:42:52 +02:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
J. Ryan Stinnett 827f994b52 Bug 1428816 - Add RDM UI to control whether we reload. r=ochameau
This adds a menu to the RDM global toolbar to allow the user to control whether
the page reloads in response to various state changes.

This also changes the default behavior to _not_ reload, so that we avoid losing
changes that might have been made in DevTools.

MozReview-Commit-ID: 86h5cB5dify
2018-02-08 15:20:17 -06:00
arthur.iakab 0aee7a567a Backed out 3 changesets (bug 1428816) for Browser Chrome failures on browser/base/content/test/static/browser_misused_characters_in_strings.js on a CLOSED TREE
Backed out changeset 31e12673218b (bug 1428816)
Backed out changeset a6e7a7b21cf3 (bug 1428816)
Backed out changeset 0d00eabc8b83 (bug 1428816)
2018-02-22 19:26:58 +02:00
J. Ryan Stinnett f272cc495d Bug 1428816 - Add RDM UI to control whether we reload. r=ochameau
This adds a menu to the RDM global toolbar to allow the user to control whether
the page reloads in response to various state changes.

This also changes the default behavior to _not_ reload, so that we avoid losing
changes that might have been made in DevTools.

MozReview-Commit-ID: 86h5cB5dify
2018-02-08 15:20:17 -06:00
J. Ryan Stinnett 2b0adfdfca Bug 1429121 - Manual cleanup of RDM for async / await. r=ochameau
MozReview-Commit-ID: JMaMDw6D8iK
2018-01-09 17:03:48 -06:00
J. Ryan Stinnett ecee41e6e9 Bug 1429121 - Automated conversion of RDM to async / await. r=ochameau
MozReview-Commit-ID: BdzxQW6TbEK
2018-01-09 10:08:35 -06:00
Ryan Leake ef911035ae Bug 1333254 - Adjust variations of 'device pixel ratio' spelling. r=jryans
MozReview-Commit-ID: 9Fuc3pbX6Ey
2017-11-17 11:08:42 -06:00
abhinav 8a1175ad06 Bug 1379687 - Fix for device selection menu not remembering custom devices with unicode characters. r=jryans
MozReview-Commit-ID: DTEmfg23INc
2017-09-27 10:33:32 -05:00
J. Ryan Stinnett 1604814567 Bug 1353045 - Remove SDK usage from RDM. r=pbro
MozReview-Commit-ID: I2dodBb9NHh
2017-04-06 21:42:21 -05:00
J. Ryan Stinnett 1f81faff72 Bug 1338604 - Tell manager when custom devices are removed. r=gl
The action creator for removing custom devices calls the one for remove device
association directly, which skips the step of also messaging the manager.

I've made the simplest change to fix just this issue, which moves the message
sending into the action creator for this one case.  Bug 1332754 will apply the
same approach to other messages (they aren't causing issues yet since they are
not called from other action creators in the same way).

MozReview-Commit-ID: AICcT2vG1wl
2017-02-10 14:51:26 -06:00
J. Ryan Stinnett 9feb55bdf0 Bug 1321675 - Add / remove custom devices in RDM. r=gl
MozReview-Commit-ID: E84zxk9n1AL
2017-02-03 17:09:01 -06:00
J. Ryan Stinnett 7bc8eb23cb Bug 1321675 - Rename removeDevice to removeDeviceAssoc. r=gl
MozReview-Commit-ID: 1UMUfX23zUb
2017-02-03 17:23:49 -06:00
J. Ryan Stinnett 414a61e09e Bug 1321675 - Add form to device modal for adding devices. r=gl
MozReview-Commit-ID: 2CejxW5VuqK
2017-01-30 18:26:12 -06:00
J. Ryan Stinnett 6fd0214526 Bug 1319950 - Only clear properties on resize if device is active. r=gl
If a device is active, remove it on resize.  If not, leave device properties
alone, so that things like touch simulation stay enabled when resizing without
a device.

MozReview-Commit-ID: Hvo6AdTJRBJ
2017-01-20 17:08:48 -06:00
J. Ryan Stinnett 3854af5904 Bug 1319950 - Use consistent naming with viewport properties. r=gl
Use "change" instead of "update" terminology with viewport properties.
Remove redundant "viewport" word from viewport changes.

MozReview-Commit-ID: HSFLiZyTVYy
2017-01-19 16:56:39 -06:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Towkir Ahmed 4ff1b3567a Bug 1325553 - Sound of "take screenshot" button respects relevant preference now; r=ntim 2016-12-28 08:45:00 +01:00
J. Ryan Stinnett 50b866e9f7 Bug 1321631 - Delay loading RDM camera audio until used. r=ochameau
MozReview-Commit-ID: LWHS1xFRvdd
2016-10-31 14:22:29 -05:00