Граф коммитов

381 Коммитов

Автор SHA1 Сообщение Дата
J. Ryan Stinnett ae5197227a 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

--HG--
extra : rebase_source : ebb4f86da4407772704a9fc06b4083b39cf61290
2018-02-08 15:20:17 -06:00
J. Ryan Stinnett 2db77cb341 Bug 1428816 - Rename deviceListState to loadableState. r=ochameau
MozReview-Commit-ID: AWIP5njHV3M

--HG--
extra : rebase_source : 9456863fdbe024c9f351b4c24a8b45d6289b4f1c
2018-02-08 15:22:59 -06:00
J. Ryan Stinnett e7811b0211 Bug 1438696 - Stop Inspector from rebooting on RDM toggle. r=ochameau
Currently, if you open the Inspector on some page, then enter RDM, the Inspector
will "reboot" (reload all panels) because it believes the document has reloaded.

However, it's not really true in this case.  Instead, it's an artifact of the
pagehide / pageshow events that are triggered when swapping frames like RDM
does.  Bug 1438697 adds a chrome-only property that we then use here to
distinguish this case.

MozReview-Commit-ID: Ks42QayVnij

--HG--
extra : rebase_source : 91739a5db2774073e723b1daf43bc5242755fc43
2018-02-16 15:02:24 -06:00
Masayuki Nakano cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Mark Banner 21e6e270a4 Bug 1438489 - Enable ESLint rule mozilla/use-services for devtools/. r=jdescottes
MozReview-Commit-ID: FZscEA6Q3Kb

--HG--
extra : rebase_source : b1b8699288a3595e52bcff3c7684bfe095f41dd1
2018-02-15 12:00:17 +00:00
J. Ryan Stinnett 37ccb191b8 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

--HG--
extra : rebase_source : 12435e53d069d23adc22de4b1ba0259912ad6027
2018-02-13 15:29:53 -06:00
J. Ryan Stinnett 885b58468b 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

--HG--
extra : rebase_source : eec7a2c54638420b1a7adc27f25e1f0237eaa30e
2018-02-13 15:07:48 -06:00
Masayuki Nakano 8917ac460f Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug
Now, callers of EventUtils.synthesizeKey() don't need to specify
KeyboardEvent.code value anymore if they assume that active keyboard layout
is US keyboard layout.

Note that this patch changes the meaning of only test_bug551434.html.
Some callers in it don't match the key value and code value but that looks
like that they don't checking such odd keyboard events.  So, they must be
bug of the test.

MozReview-Commit-ID: Itxo7yZ9rkK

--HG--
extra : rebase_source : 856ef3715c924ca16e993ea57d92d1243b5cc6be
2018-02-09 19:17:26 +09:00
J. Ryan Stinnett 2dc061566f Bug 1418469 - Simplify device pixel ratio testing for RDM. r=ochameau
In RDM's test for device pixel ratio overrides, there was a race condition where
the document's pixel ratio might change at the same time as it reloads (because
we trigger reloads for certain device changes).  The step that listens for the
new pixel ratio to be applied was missing the case where after a reload, the
pixel ratio is already set to expected value, leading to intermittent hangs.

To resolve this issue and simplify things overall, we now explicitly wait for
reloads where we know they will happen first.  Then, we check the pixel ratio
state after that, using the expected value we want to find.

MozReview-Commit-ID: DZYFT4AzaJd

--HG--
extra : rebase_source : 58dce8839a1f9d9a0064e2114e3a4811a437d8b7
2018-02-12 17:56:56 -06:00
Mike Ratcliffe dd3348993e Bug 1416824 - Patch 1: React 16 Require statements and paths r=nchevobbe
MozReview-Commit-ID: 7BDgpYfLZLH

--HG--
extra : rebase_source : 664f6cc8a95fdf15cfb64f7cdfc18feec2f53339
2018-02-07 16:31:57 +00:00
Alexandre Poirot e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Andreea Pavel 2d6ebc39d2 Backed out 3 changesets (bug 1416824) for mochitest chrome failures at devtools/client/shared/components/test/mochitest/test_notification_box_01.html on a CLOSED TREE
Backed out changeset dc4675fd3257 (bug 1416824)
Backed out changeset b2aebf1d7ee7 (bug 1416824)
Backed out changeset f52006e2a1dc (bug 1416824)
2018-02-07 21:06:58 +02:00
Mike Ratcliffe 6566d3e1c2 Bug 1416824 - Patch 1: React 16 Require statements and paths r=nchevobbe
MozReview-Commit-ID: 7BDgpYfLZLH

--HG--
extra : rebase_source : 2984a5b02b57533c1f7e9c98fae6201b3687cfaf
2018-02-07 16:31:57 +00:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione b3cac601f6 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

--HG--
extra : rebase_source : 1c0a1448a06d5b65e548d9f5362d06cc6d865dbe
extra : amend_source : 7184593019f238b86fd1e261941d8e8286fa4006
2018-01-24 14:56:48 -08:00
J. Ryan Stinnett 102d79149a Bug 1429121 - Manual cleanup of RDM for async / await. r=ochameau
MozReview-Commit-ID: JMaMDw6D8iK

--HG--
extra : rebase_source : d9d83fc231e1323955662905e5f5ee1b8eb8f8be
2018-01-09 17:03:48 -06:00
J. Ryan Stinnett 892fc5c8b0 Bug 1429121 - Automated conversion of RDM to async / await. r=ochameau
MozReview-Commit-ID: BdzxQW6TbEK

--HG--
extra : rebase_source : b8b0b4bbc1ac7b56cf25c0b2fd38475aa869880f
2018-01-09 10:08:35 -06:00
J. Ryan Stinnett 6f6bc3bbbf Bug 1381463 - Reload to clear UA when exiting RDM. r=ochameau
When exiting RDM with a device applied, we clear the UA override, but we did not
force a refresh of the page.  This means that the customized UA was still
accessible via `navigator.userAgent` and the page might have a non-default
layout if it tests the UA value.

To ensure there's no chance of confusion after exiting RDM, force a reload if
clearing emulation values determines it is needed.

MozReview-Commit-ID: Fkji12Utmis

--HG--
extra : rebase_source : a7ae8851165fae7aec5875d10f51cbb703b3f870
2018-01-04 21:04:17 -06:00
Alexandre Poirot 6d25219f3c Bug 1425818 - Stop using CPOW in devtools/server/tests/browser/browser_canvasframe_helper_*.js. r=pbro
MozReview-Commit-ID: 70IEX3Q5iGa

--HG--
extra : rebase_source : 970990e5425eab8c5a1914fef86a4b539030b3f0
2017-12-18 02:21:41 -08:00
Florian Quèze 0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
abhinav 24a666806b Bug 1421663 - Allow changing of custom viewport size in RDM with arrow keys. r=jryans
MozReview-Commit-ID: AQwqkt9EPn3

--HG--
extra : rebase_source : 4447d5d9d06a16390ed4f61398f1012a031301b3
2017-12-06 00:31:57 +05:30
Bill McCloskey 9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Andreea Pavel 89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Brian Grinstead 72aa3b30aa Bug 1408949 - Remove unnecessary clearing of devtools.toolbox.splitconsoleEnabled;r=Honza
This is already cleared in shared-head.js

MozReview-Commit-ID: 7svp6ZiUqnE

--HG--
extra : rebase_source : 70788abbfc86a5838626fb5f1f17d03537c2830c
2017-12-01 10:36:22 -08:00
Michael Ratcliffe 8c8dc702e1 Bug 1419828 - Remove devtools references to React.addons.TestUtils r=nchevobbe
Changes:

- Added testUtils to React DOMs Proxy MonkeyPatch.
- Removed TestUtils where it is not needed.
- Added syntax identifiers to Markdown fences just because VSCode can do syntax highlighting in the markdown itself when you do that.
- In our require-helper.js files I have had to keep the name "react-addons-test-utils." This is because Enzyme uses the require paths to choose which adapters are needed (none are... yet)... we will need to use "react-addons-test-utils" instead of "react-dom/test-utils" as the path until we upgrade to React 16+.

MozReview-Commit-ID: H1tgzfp0MXl

--HG--
extra : rebase_source : cbdd59f6256703e7aba2dac76aece94c1101898e
2017-11-24 18:25:52 +00:00
Julian Descottes af2e5d5dd1 Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG

--HG--
extra : rebase_source : 7704264e84d96e03a0c789103ff466980913d4d2
2017-11-13 21:22:15 +01:00
Julian Descottes 7324ecc861 Bug 1416711 - Stop guarding consumer calls to DebuggerServer.init();r=ochameau
DebuggerServer.init() already bails out if it was previously initialized
so we could avoid guarding the calls to init() with it everywhere.

Registering an actor module several times is also a noop as the Server
keeps a map of all the already registered modules and will bail out if
the module is already known.

MozReview-Commit-ID: 4ONLlx9253i

--HG--
extra : rebase_source : a6fce209baf5e019b6a216761c01832a30332343
2017-11-13 21:04:43 +01:00
Julian Descottes 4cac7dcb25 Bug 1416711 - Migrate addBrowser/TabActors to registerActors;r=ochameau
DebuggerServer has old APIs addBrowserActors & addTabActors that can be
replaced by calls to registerActors.

MozReview-Commit-ID: KpYJpbSHM8I

--HG--
extra : rebase_source : c7f20edf503b944ef2582b5fe73bd6d899c0d1cc
2017-11-13 20:29:55 +01:00
Michael Ratcliffe b7c27e53b0 Bug 1418274 - Responsive Design Mode to ES6 Classes, prop-types and react-dom-factories r=jryans
MozReview-Commit-ID: 1QWLZwVlyVQ

--HG--
extra : rebase_source : a65f8944531dbad28241b2de46168ae745918e7c
2017-11-17 12:22:29 +00:00
Ryan Leake 280baffc4c Bug 1333254 - Adjust variations of 'device pixel ratio' spelling. r=jryans
MozReview-Commit-ID: 9Fuc3pbX6Ey


--HG--
rename : devtools/client/responsive.html/components/DprSelector.js => devtools/client/responsive.html/components/DevicePixelRatioSelector.js
2017-11-17 11:08:42 -06:00
abhinav 99bc432a12 Bug 1319597 - Move DPR text into the DPR menu options. r=jryans
MozReview-Commit-ID: 8gTzkWvVdfn

--HG--
extra : rebase_source : f40f1ca6e01a763b5cd1ea03a81e579557a19525
2017-11-07 23:11:50 +05:30
Nicolas Chevobbe 923cfeaa4e Bug 1383711 - Make addOneTimeListener return a Promise; r=ochameau.
Switch some calls to addOneTimeListener from callback-style to Promise.

MozReview-Commit-ID: F9AlSvK0MAH

--HG--
extra : rebase_source : 076522e89004f8a4634b4f7732800a5ec14ce633
2017-11-06 08:40:39 +01:00
J. Ryan Stinnett b4b3767a53 Bug 1414159 - Extra modal width for RDM custom devices. r=gl
As you add more than 7 or so custom devices, the modal will eventually wrap to
a 4th column.  Adding some more width allows that to happen without a horizontal
scroll bar.

This width looks natural without custom devices as well, and its not too large
for the most popular screen size (1366 x 768).

MozReview-Commit-ID: 5IErG8NX3xO

--HG--
extra : rebase_source : cbdb862597ef1774964bea135da6376e0cbb7650
2017-11-08 16:10:30 -06:00
J. Ryan Stinnett 555be6398c Bug 1415502 - Remove RDM browser-swap docs. r=jryans
These low level docs are getting out of date and causing confusion.  Further,
they are of limited value at this stage anyway.

MozReview-Commit-ID: FSoNniNZjtj

--HG--
extra : rebase_source : fa5e02a771adcae9b0e53bd18c4eb10ebb5315ef
2017-11-09 10:50:19 -06:00
J. Ryan Stinnett f88990e5d9 Bug 1394841 - Test WebExt messaging with RDM. r=kmag,ochameau
This test verifies that WebExt messaging works as expected for both the
background page scripts and content scripts when RDM is used.

MozReview-Commit-ID: 3fODg3nYLr7

--HG--
extra : rebase_source : ad0051f6c377f15dbe27cf6cac5c3fd07af6fac7
2017-11-01 17:40:16 -05:00
J. Ryan Stinnett 0b32106c92 Bug 1394841 - Add WebExt messaging to RDM tunnel. r=ochameau
WebExt messaging sends several new message types to content that should be
tunneled by RDM.

This change allows them to reach content as expected in RDM mode.

MozReview-Commit-ID: GKelgOGBUKI

--HG--
extra : rebase_source : 77288fc586efbaeb9b4c344a291c7c5f815e1a15
2017-11-01 17:36:58 -05:00
J. Ryan Stinnett 51ca00d13d Bug 1413765 - Skip RDM browser_permission_doorhanger.js for permafail. r=me
MozReview-Commit-ID: 3yxHaEjSMyO
2017-11-06 20:53:39 -06:00
J. Ryan Stinnett d968d058cd Bug 1413765 - Disable RDM browser_navigation.js test for intermittents. r=jryans
MozReview-Commit-ID: IAQdq3eFHnp

--HG--
extra : rebase_source : 9d18e3114a76a2773e38d50e2319be2def91b491
2017-11-06 17:32:12 -06:00
J. Ryan Stinnett b746489c0b 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

--HG--
extra : rebase_source : a48b314090a321aa13cf8ca436e2beefa3dcc392
2017-10-30 11:00:55 -05:00
J. Ryan Stinnett 943c4df618 Bug 1412359 - Clarify test event as device-association-removed. r=gl
MozReview-Commit-ID: 6GXTO4rtIQL

--HG--
extra : rebase_source : 0e2e1c4ceb62b40f7f25d14f319eb83e572ad49e
2017-10-27 18:52:31 -05:00
J. Ryan Stinnett 0e9148a538 Bug 1411090 - Clear local device cache when testing. r=gl
MozReview-Commit-ID: KFQwbcoM4Ur

--HG--
extra : rebase_source : 795622adf8d33395fc6abbb25d500f56ee956b24
2017-10-19 20:52:56 -05:00
Simon Van Accoleyen dedbda00a2 Bug 1406193 - Remove last remaining SocialAPI bits. r=dao
MozReview-Commit-ID: E5GKq2CYclF
2017-10-21 18:38:17 +02:00
J. Ryan Stinnett 84e8579a24 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

--HG--
extra : rebase_source : 1cebc140c8f68d9daab7f8a0916be68f209d0f36
2017-10-13 20:38:18 -05:00
J. Ryan Stinnett 31887d40f0 Bug 1407830 - Verify that RDM swaps take place. r=ochameau
It is possible for the frame loader swap within `gBrowser._swapBrowserDocShells`
to fail when various frame state is either not ready yet or doesn't match
between the two browsers you're trying to swap.  However, such errors are
currently caught and silenced in the browser, because they are apparently
expected in certain cases.  So, here we do our own check to verify that the swap
actually did in fact take place, making it much easier to track such errors when
they happen.

MozReview-Commit-ID: LwuCXJQRRVW

--HG--
extra : rebase_source : f2e523ec3a5fc14306881dd823190dfcfe7cdd7a
2017-10-13 20:19:49 -05:00
J. Ryan Stinnett c1c62750e7 Bug 1407830 - Add diagnostics to RDM swap. r=ochameau
Add some (disabled by default) logging to the RDM swap process to speed up
future investigations.

MozReview-Commit-ID: ICuH7i5Nsq5

--HG--
extra : rebase_source : 9d20a69965572020e7a98dbfe56bbcc57df0dad1
2017-10-13 20:07:24 -05:00
J. Ryan Stinnett 88c55f4a2c Bug 1342549 - Trim RDM DPR to ~3 decimal places. r=gl
MozReview-Commit-ID: 9xRV2OvOtuW

--HG--
extra : rebase_source : 784107362e89bfc3e19f3a5e6367e563d8b74f81
2017-10-05 22:30:03 -07:00
Miguel Useche da46f0c3cf Bug 1402391 - CamelCase all React component files in \devtools\client\responsive.html\src\components\. r=jdescottes
MozReview-Commit-ID: Am14gw4EugN

--HG--
rename : devtools/client/responsive.html/components/browser.js => devtools/client/responsive.html/components/Browser.js
rename : devtools/client/responsive.html/components/device-adder.js => devtools/client/responsive.html/components/DeviceAdder.js
rename : devtools/client/responsive.html/components/device-modal.js => devtools/client/responsive.html/components/DeviceModal.js
rename : devtools/client/responsive.html/components/device-selector.js => devtools/client/responsive.html/components/DeviceSelector.js
rename : devtools/client/responsive.html/components/dpr-selector.js => devtools/client/responsive.html/components/DprSelector.js
rename : devtools/client/responsive.html/components/global-toolbar.js => devtools/client/responsive.html/components/GlobalToolbar.js
rename : devtools/client/responsive.html/components/network-throttling-selector.js => devtools/client/responsive.html/components/NetworkThrottlingSelector.js
rename : devtools/client/responsive.html/components/resizable-viewport.js => devtools/client/responsive.html/components/ResizableViewport.js
rename : devtools/client/responsive.html/components/viewport.js => devtools/client/responsive.html/components/Viewport.js
rename : devtools/client/responsive.html/components/viewport-dimension.js => devtools/client/responsive.html/components/ViewportDimension.js
rename : devtools/client/responsive.html/components/viewport-toolbar.js => devtools/client/responsive.html/components/ViewportToolbar.js
rename : devtools/client/responsive.html/components/viewports.js => devtools/client/responsive.html/components/Viewports.js
extra : rebase_source : cc84e61c907200af8e99c5b59cb6d705270305c8
extra : amend_source : 5f0bc9ca7d1abb107d451d57d0c76291340f8fc8
2017-10-09 22:56:20 -04:00
Julian Descottes 84bf318644 Bug 1399886 - remove unnecessary invertable CSS classes on devtools icons;r=gl
Using fill instead of filter we don't need to define each icon as
invertable or not. If the icon is a SVG and supports fill="context-fill"
then it will be inverted/highlighted etc... as expected.

If not then it won't be impacted by DevTools themes.

MozReview-Commit-ID: CLFprKMuCt9

--HG--
extra : rebase_source : 391f3567c2bdf319dcfd0a3b0c87f0479f85eabd
2017-10-04 21:13:48 +02:00
Julian Descottes 6111b96191 Bug 1399886 - modify devtools SVG files to use fill=context-fill;r=gl
MozReview-Commit-ID: dxSMaCHjrQ

--HG--
extra : rebase_source : ac7c9cb9f5492d65de8fa6b56ad0d6ededaa6510
2017-10-04 16:57:11 +02:00
J. Ryan Stinnett e9e4b587cb Bug 1348960 - Expose openLinkIn for RDM tabs. r=ochameau
MozReview-Commit-ID: 2EzZfBsNIrf

--HG--
extra : rebase_source : 7d1a6700f89d3616c80da8384be0c3642cfa800c
2017-10-03 22:34:07 -07:00
J. Ryan Stinnett c1ae750289 Bug 1404088 - Hide RDM temporary tabs from WebExtensions. r=ochameau
RDM uses temporary tabs to move content around and into the tool's viewport.
This triggers events like `TabOpen` and `TabClose` for the temporary tab,
trigger unnecessary work, like alerting WebExtensions.

Avoid this noise for WebExtensions and others by absorbing these events.

Note that the _original_ browser tab is unaffected.  This only changes temporary
tabs RDM uses during the swapping process.

MozReview-Commit-ID: H8kBYBma6i9

--HG--
extra : rebase_source : 37150c7cb889ff64982f33f991a64fe50eacfd04
2017-09-29 17:14:32 -05:00
J. Ryan Stinnett 34fe967aaa Bug 1404088 - Add gBrowser to the browser property list. r=ochameau
MozReview-Commit-ID: fWPCkDe6Ve

--HG--
extra : rebase_source : ceb8afd71f735cc2f3776e3cba6deaa79fabaf70
2017-09-29 11:57:53 -05:00
J. Ryan Stinnett 63d0b7d4f1 Bug 1404088 - Standardize RDM's exposed browser properties. r=ochameau
MozReview-Commit-ID: KIykapQm5mP

--HG--
extra : rebase_source : f2250798916796c858fc981b9ebabac9f8d5f9cc
2017-09-28 18:47:24 -05:00
Nicolas Chevobbe 307f01eac7 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0

--HG--
extra : rebase_source : ebf75886fac79aaebfab16c03997f402e9f5a278
2017-09-29 15:24:14 +02:00
J. Ryan Stinnett abb935a5b5 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir

--HG--
extra : rebase_source : 12648e919de27465f768206a15200d4d3a2d92a5
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett 6bc727ecd0 Bug 1305777 - Move RDM GCLI commands to new RDM. r=ochameau
MozReview-Commit-ID: Eyz90kT6Tdx

--HG--
rename : devtools/client/responsivedesign/resize-commands.js => devtools/client/responsive.html/commands.js
extra : rebase_source : 0ddf85bbaf9a715f804169d206162c9217529d3d
2017-09-26 18:47:12 -05:00
J. Ryan Stinnett ecad77ef81 Bug 1305777 - Remove RDM manager switch and pref. r=ochameau
This removes the switching based on the RDM.html pref and the pref itself.

Some files in old RDM are updated for completeness, but they are about to be
removed anyway.

MozReview-Commit-ID: JnTC7ZF3UCC

--HG--
extra : rebase_source : 6a520a726fe77c560ecb71c5f633a9e2d7b956f7
2017-09-26 18:39:16 -05:00
J. Ryan Stinnett 8dcfa93bc6 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt

--HG--
rename : devtools/client/responsivedesign/responsivedesign-child.js => devtools/client/responsive.html/browser/content.js
extra : rebase_source : 893a37595a72c96e5c1051df330d2a1c5f9b612b
2017-09-26 18:24:32 -05:00
Sebastian Hengst 5d940bbf9d 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
--HG--
rename : devtools/client/responsive.html/browser/content.js => devtools/client/responsivedesign/responsivedesign-child.js
2017-09-29 10:45:04 +02:00
Sebastian Hengst 58cfe586be Backed out changeset 6ae05de7437d (bug 1305777) 2017-09-29 10:43:48 +02:00
Sebastian Hengst 65555c536a Backed out changeset 776ad30a20db (bug 1305777)
--HG--
rename : devtools/client/responsive.html/commands.js => devtools/client/responsivedesign/resize-commands.js
2017-09-29 10:43:42 +02:00
Sebastian Hengst dd8580f93c Backed out changeset ffb4e22a4347 (bug 1305777) 2017-09-29 10:43:19 +02:00
J. Ryan Stinnett c179bf3be8 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir

--HG--
extra : rebase_source : 3a1386c3bd0f529cb0a9d7c8317c8d89c6538b59
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett 7bdffe1656 Bug 1305777 - Move RDM GCLI commands to new RDM. r=ochameau
MozReview-Commit-ID: Eyz90kT6Tdx

--HG--
rename : devtools/client/responsivedesign/resize-commands.js => devtools/client/responsive.html/commands.js
extra : rebase_source : ece317b2bf06b7e1c83b8ddcbf5cbf125eeadbfa
2017-09-26 18:47:12 -05:00
J. Ryan Stinnett 41503ce759 Bug 1305777 - Remove RDM manager switch and pref. r=ochameau
This removes the switching based on the RDM.html pref and the pref itself.

Some files in old RDM are updated for completeness, but they are about to be
removed anyway.

MozReview-Commit-ID: JnTC7ZF3UCC

--HG--
extra : rebase_source : d591e04148d748c2659093295160adc6a3d2c445
2017-09-26 18:39:16 -05:00
J. Ryan Stinnett b20d8b7cc0 Bug 1305777 - Move RDM frame script to new RDM. r=ochameau
MozReview-Commit-ID: LJhKdurBVzt

--HG--
rename : devtools/client/responsivedesign/responsivedesign-child.js => devtools/client/responsive.html/browser/content.js
extra : rebase_source : 1a609cd26e85e90feb93b252b32168d8e3b2d9c1
2017-09-26 18:24:32 -05:00
abhinav f9cc124147 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
Sebastian Hengst 006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
Alexandre Poirot f2bfc94341 Bug 1399449 - Convert devtools/client/responsivedesign/responsivedesign.jsm to a commonjs module. r=jryans
MozReview-Commit-ID: Jl6OGUWnbHN

--HG--
rename : devtools/client/responsivedesign/responsivedesign.jsm => devtools/client/responsivedesign/responsivedesign.js
extra : rebase_source : 329c364fc4c256273b0d02a8119637aed428134c
2017-09-13 14:33:58 +02:00
Alexandre Poirot 297207d530 Bug 1399090 - Lazy load responsive design manager modules. r=jryans
MozReview-Commit-ID: IzldMjDwG8M

--HG--
rename : devtools/client/responsivedesign/responsivedesign.jsm => devtools/client/responsivedesign/responsivedesign-old.js
extra : rebase_source : 44b271fa330bd1bac71937d212d51658ddb64c71
2017-09-12 14:50:24 +02:00
Julian Descottes 49e3e1453f Bug 1399028 - photon update - devtools icon, tab and accordion colors;r=gl
Updated colors and styles for toolbox toolbar tabs as well as sidebar tabs.
For icon color changes created special filters that match the expected photon colors.
The normal, selected and checked states of icons in both dark and light theme are now
always set using filters.

MozReview-Commit-ID: 4MTAxHnyI7a
2017-09-11 23:56:33 +02:00
J. Ryan Stinnett 8ba7885187 Bug 1398297 - Reload RDM when disabling touch. r=gl
MozReview-Commit-ID: ILdfxs5SXfH

--HG--
extra : rebase_source : 3db49f661fe50d4544fd0a7a6c1bab2931030b04
2017-09-08 15:09:22 -05:00
Wes Kocher 6472928439 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 77Uz3uceUmk
2017-08-31 16:56:23 -07:00
Florian Quèze 48761699cf Bug 1391704 - Avoid flickering while moving tabs across windows, r=mconley. 2017-09-01 00:42:31 +02:00
Tom Tromey dffd9ec2a9 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7

--HG--
extra : rebase_source : bd5f46a0bdff992cc0334250a16557eb710af5de
2017-08-30 12:05:41 -06:00
J. Ryan Stinnett 9b493d4dd4 Bug 1387445 - Enable DevTools RDM tests on Linux debug. r=xidorn
MozReview-Commit-ID: L7A6nt3Fowp

--HG--
extra : rebase_source : b307f3fe003cd64fd1f9ec879ebabf694de17016
2017-08-29 19:15:26 -05:00
J. Ryan Stinnett 4953987a06 Bug 1394473 - Fix up target=_blank links in RDM. r=ochameau
Sometime during Firefox 56, the `dataTransfer` property was removed, so this
started to fail.  It was a bit strange anyway, since we have a principal on the
outer browser.

Adds a test to cover this use case.

MozReview-Commit-ID: 9UOCc77ZRxk

--HG--
extra : rebase_source : f743c7704ff8fc0e52b7facb11e0e9b6aca9670e
2017-08-28 18:25:16 -05:00
ZER0 ba9681c84a Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher db97e61fc7 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc

--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0 93e1efc17d Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
J. Ryan Stinnett 671f16eccd Bug 1386053 - Skip remaining DevTools Stylo failures. r=manishearth
MozReview-Commit-ID: TcexGI0JkG
2017-08-03 13:32:25 -05:00
Sebastian Hengst 205843f800 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Julian Descottes df95b72117 Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t

--HG--
extra : rebase_source : 05d41abb69a34f0f5b8241c26684ed53a88b6df5
2017-07-11 12:30:22 +02:00
J. Ryan Stinnett 8b86f1ea44 Bug 1381800 - Remove location from RDM components. r=pbro
MozReview-Commit-ID: Cs7608E1sIR
2017-07-18 21:35:57 -04:00
Christoph Kerschbaumer 2ad43ee9bd Bug 1364016 - Explicitly pass a triggeringPrincipal to openURI. r=gijs,baku 2017-07-05 21:58:21 +02:00
Nathan Froyd 27c58cf89f Bug 1372670 - part 3 - add spinEventLoopUntil to nsIThreadManager; r=erahm,florian 2017-06-21 12:59:28 -04:00
Matt R 1f9d9f8cb7 Bug 1368204 - convert uses of 'defer' to 'new Promise' in client/responsive.html; r=tromey
MozReview-Commit-ID: HnjT6j9yjW3

--HG--
extra : rebase_source : 7c1eedaaec2b5f9ac05517a3a0e2210cdbd80002
2017-05-27 17:32:06 +01:00
Ryan VanderMeulen 1734a80650 Merge m-c to inbound. a=merge 2017-05-23 11:15:49 -04:00
Mats Palmgren 297b9d70e1 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
MozReview-Commit-ID: IbwWM0FL6HF

--HG--
extra : source : bbb688fe1ba3f5201a190c6e25b693ef7272ea2d
2017-05-21 17:15:00 +08:00
Carsten "Tomcat" Book 00d4ea331d Backed out changeset bbb688fe1ba3 (bug 1365614) 2017-05-22 15:45:31 +02:00
Mats Palmgren e706869580 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz 2017-05-21 17:15:00 +08:00
Ben Kelly d0da707a64 Bug 1366783 Loosen responsive design mode test check for 300ms touch delay. r=jryans 2017-05-23 07:30:55 -07:00
Dão Gottwald 252945d708 Bug 1364661 - Remove _fillTrailingGap. r=florian
This was working around some old XUL layout weirdness, but nowadays this uses the same scroll frame implementation as HTML and tabStrip.scrollPosition + tabStrip.scrollClientSize > tabStrip.scrollSize cannot be true.

MozReview-Commit-ID: F5fOEpXn8ay

--HG--
extra : rebase_source : 5dcd0282e1054aad1c1a4946dd98dc33549bd2d6
2017-05-13 11:56:01 +02:00
Mark Banner 2bf9485071 Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM

--HG--
extra : rebase_source : e462e84bf8f2ffd893d1fd6b5ea14bbc093168dd
2017-05-08 10:29:47 +01:00
Sebastian Hengst 95a418ca5b Backed out changeset e0f9c56c15f0 (bug 1362947) for linting failures, e.g. at accessible/tests/mochitest/jsat/doc_content_text.html:15. r=backout 2017-05-11 10:15:55 +02:00
Mark Banner 256aeb441c Bug 1362947 - Upgrade eslint-plugin-html to 2.0.3 to pick up --fix support. r=jaws
MozReview-Commit-ID: 5fVG7akPnGM

--HG--
extra : rebase_source : f1b9eeb1b2048b551ee8c0a596e6395d0031cc4d
2017-05-08 10:29:47 +01:00
J. Ryan Stinnett db420f540d Bug 1319248 - Disable RDM tests for Windows. r=me
In bug 1356448, the RDM tests are causing trouble in Windows 32-bit platforms,
so let's disable them for all Windows runs.

The timing of these tests appears to be very different on Windows platforms,
even though the production functionality works correctly, so more investigation
is needed.

MozReview-Commit-ID: 3BBbladg5Pl
2017-04-28 19:19:48 -05:00