Commit Graph
88 Commits
Author SHA1 Message Date
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 ed6877f891 Bug 1442348 - Add key to RDM toggle menu to avoid React warning. r=jryans
MozReview-Commit-ID: ILhdsdjRLBw
2018-03-01 12:30:39 -06: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
J. Ryan Stinnett 50e16228d9 Bug 1428816 - Rename deviceListState to loadableState. r=ochameau
MozReview-Commit-ID: AWIP5njHV3M
2018-02-08 15:22:59 -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 5c56536243 Bug 1428816 - Rename deviceListState to loadableState. r=ochameau
MozReview-Commit-ID: AWIP5njHV3M
2018-02-08 15:22:59 -06:00
J. Ryan Stinnett 60ccef9e2c Bug 1434155 - Remove extra container around RDM browser. r=gl
We can now remove the extra `.browser-container` element around the frame.  It
was only here as a way to invoke React's `innerHTML` for real content.

MozReview-Commit-ID: 1wnv7SJmjTd
2018-02-13 15:29:53 -06:00
J. Ryan Stinnett 65f010a12a Bug 1434155 - Create RDM viewport as iframe component. r=gl
Now that we have React 16 (which includes support for custom attributes instead
of a fixed whitelist), we can create the browser frame in the "usual" way, as
opposed to this `innerHTML` workaround.

MozReview-Commit-ID: GwZVNIqF1QC
2018-02-13 15:07:48 -06:00
Kris Maglione 9e04067677 Bug 1432966: Sanitize HTML fragments created for chrome-privileged documents. r=bz f=gijs
This is a short-term solution to our inability to apply CSP to
chrome-privileged documents.

Ideally, we should be preventing all inline script execution in
chrome-privileged documents, since the reprecussions of XSS in chrome
documents are much worse than in content documents. Unfortunately, that's not
possible in the near term because a) we don't support CSP in system principal
documents at all, and b) we rely heavily on inline JS in our static XUL.

This stop-gap solution at least prevents some of the most common vectors of
XSS attack, by automatically sanitizing any HTML fragment created for a
chrome-privileged document.

MozReview-Commit-ID: 5w17celRFr
2018-01-24 14:56:48 -08: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
abhinav d1ceed2d3e Bug 1421663 - Allow changing of custom viewport size in RDM with arrow keys. r=jryans
MozReview-Commit-ID: AQwqkt9EPn3
2017-12-06 00:31:57 +05:30
Michael Ratcliffe 2b956d69ea Bug 1418274 - Responsive Design Mode to ES6 Classes, prop-types and react-dom-factories r=jryans
MozReview-Commit-ID: 1QWLZwVlyVQ
2017-11-17 12:22:29 +00: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 eab30d8439 Bug 1319597 - Move DPR text into the DPR menu options. r=jryans
MozReview-Commit-ID: 8gTzkWvVdfn
2017-11-07 23:11:50 +05:30
J. Ryan Stinnett c0e4a35b99 Bug 1412359 - Filter to matching device on remove. r=gl
The local device removal path used by RDM had a bug in its `findIndex` call
which caused it to always return `true` for the first device.

Effectively this meant that each separate device removal button always removed
the first device!  This would lead to all sorts of user confusion and UI
divergence.

Here we clean this up by allowing the caller (RDM in this case) to specify via a
callback which device is intended for removal.

MozReview-Commit-ID: 22VwEDZAXOa
2017-10-30 11:00:55 -05:00
J. Ryan Stinnett e6cfa9b3cc Bug 1407830 - Wait for browser during RDM startup. r=ochameau
Before the browser is mounted, listen for `remote-browser-shown` so that we know
when the browser is fully ready.  Without waiting for an event such as this, we
don't know whether all frame state for the browser is fully initialized (since
some happens async after the element is added), and swapping browsers can fail
if this state is not ready.

MozReview-Commit-ID: Ltd7mjdt7ox
2017-10-13 20:38:18 -05:00
Miguel Useche acc9a7c1ab Bug 1402391 - CamelCase all React component files in \devtools\client\responsive.html\src\components\. r=jdescottes
MozReview-Commit-ID: Am14gw4EugN
2017-10-09 22:56:20 -04:00
J. Ryan Stinnett 29ad3830d7 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt
2017-09-26 18:24:32 -05:00
Sebastian Hengst 88453318f1 Backed out changeset 5a0227d048e8 (bug 1305777) for failing devtools' devtools/client/styleeditor/test/browser_styleeditor_media_sidebar_links.js on Windows 7 debug without e10s. r=backout 2017-09-29 10:45:04 +02:00
J. Ryan Stinnett 22e62556a6 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt
2017-09-26 18:24:32 -05:00
J. Ryan Stinnett a0d5af8e95 Bug 1381800 - Remove location from RDM components. r=pbro
MozReview-Commit-ID: Cs7608E1sIR
2017-07-18 21:35:57 -04: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
Tim Nguyen 88f4f845d8 Bug 1341045 - Use checked class instead of introducing active class. r=jryans
MozReview-Commit-ID: 6fC7hVRSvjh
2017-02-25 15:42:26 +00:00
J. Ryan Stinnett 072a538af1 Bug 1338599 - Default custom devices to enabled in RDM. r=gl
MozReview-Commit-ID: HAkhcKZhLVt
2017-03-01 17:57:24 -06:00
J. Ryan Stinnett e450b03956 Bug 1321675 - Move device adder below devices. r=gl
This gets closer to Helen's mockup.  The spacing is a bit tight.  When adjusting
the modal size, I used the most popular DevTools screen resolution (1366 x 768)
as a reference.

MozReview-Commit-ID: 4EjJKKhuxpA
2017-02-07 16:57:03 -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 9cd7e01f8f Bug 1321675 - Show device details in tooltip. r=gl
MozReview-Commit-ID: LxxaoBBQCUU
2017-02-02 17:38:57 -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
J. Ryan Stinnett 86e623c22e Bug 1319950 - Wrap dPR state in object for consistency. r=gl
MozReview-Commit-ID: ERiDO14wGUz
2017-01-09 19:29:53 -06:00
Gabriel Luong 230810ace9 Bug 1319619 - Move RDM dimension controls above the viewport. r=jryans 2017-01-09 16:39:27 -05:00
djmdev c4a90bde66 Bug 1325567 - Added tooltip to rotate viewport button. r=jryans 2017-01-05 01:59:08 +05:30
Towkir Ahmed f15f4f551b Bug 1325570 - The checkboxes from modal can now be checked/unchecked using the left click only; r=jryans
MozReview-Commit-ID: LPRzXjp7q6v
2017-01-04 09:34:37 -06:00
Jared Wein 21fc75d491 Bug 1326479 - Fix 'indent' eslint errors now that eslint scans multiline array and object definitions. r=Gijs
MozReview-Commit-ID: 99mWjxu8PPn
2017-01-03 10:07:50 -05:00
Bob Owen 432572b6f3 Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-24 15:08:30 +00:00
Sebastian Hengst d9dbaf74fb Backed out changeset 5b26ae9afaea (bug 1147911) 2016-11-23 18:33:10 +01:00
Bob Owen a7d454bdcc Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-23 13:36:57 +00:00
Sebastian Hengst 16ad987153 Backed out changeset 5cffb4645bc0 (bug 1147911) 2016-11-18 00:58:52 +01:00
Bob Owen 6dc9342a41 Bug 1147911 Part 2: Add a remote type property and use it to drive the process switching in frontend code. r=gijs, r=jryans, r=mikedeboer 2016-11-17 15:48:52 +00:00
Matteo Ferretti ae8d32c927 Bug 1276971 - Adding UI to display and change the current DPI / DPR setting; r=gl,jryans
MozReview-Commit-ID: Dnb6OLhOvOK
2016-11-05 13:45:10 +01:00
J. Ryan Stinnett 08ff09dec5 Bug 1306816 - Fix intermittent failure in RDM device change test. r=gl
MozReview-Commit-ID: 4pwNX4oyMyg
2016-10-25 21:16:41 -05:00
J. Ryan Stinnett 1acc749efb Bug 1283453 - Add network throttling UI to RDM. r=gl
MozReview-Commit-ID: 9MYLXuhlT2F
2016-10-13 09:25:22 -05:00
Matteo Ferretti 23614cda77 Bug 1254385 - Apply dPR from selected device; r=jryans
- dPR and media queries are now reflecting the selected device's dppx
- added unit test

MozReview-Commit-ID: 9634mleTwkS
2016-08-31 09:58:26 +02:00
Tim Nguyen da8d0b13ed Bug 1254386 - Add user agent emulation to new RDM. r=jryans
MozReview-Commit-ID: EBWBJV20KLV
2016-08-23 01:51:17 -07:00
James Long 24266d6355 Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04:00
Benoit Chabod d01d8eebcf Bug 1288380 - Add a tooltip for the touch simulation button, r=jryans 2016-07-21 09:15:00 +02:00
Tom Tromey 1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00