Commit Graph

195 Commits

Author SHA1 Message Date
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
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
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
hemant
64d45d0cb9 Bug 1417937 - Remove unnecessary LoadContextInfo.jsm r=standard8
MozReview-Commit-ID: EnY0uKD4UD1

--HG--
extra : rebase_source : c968b273a8a05fb211e0fb1e1601ac1b968ca045
2018-01-31 23:16:46 +05:30
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Gurzau Raul
6675c62a6e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-23 02:24:22 +02:00
Julian Descottes
46f8ae7efd Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : dc25347c977b7890231b7434622d171d217f7bc6
2018-01-20 00:24:41 +01:00
Narcis Beleuzu
e449275782 Backed out changeset 41262016e149 (bug 1431758) for build bustage. on a CLOSED TREE 2018-01-22 18:42:13 +02:00
Julian Descottes
4fa078bd65 Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : 74d73ecd50cc1e56a66c6e45d43b1ca48f136cf2
2018-01-20 00:24:41 +01:00
J. Ryan Stinnett
4e81bf75f6 Bug 1429254 - Expand long strings when fetching from network monitor. r=jdescottes
In bug 1306892, we started fetching stylesheets from the network monitor when
possible.  However, this only worked for short strings (< 10000 bytes).  For
long strings, we need to also look up the long string actor that holds the
actual text.

MozReview-Commit-ID: 2M0OAioZnX5

--HG--
rename : devtools/client/styleeditor/test/doc_uncached.css => devtools/client/styleeditor/test/doc_short_string.css
extra : rebase_source : e0babac9bc162222dc207e9fba3c88b3c22aabfa
2018-01-10 10:46:07 -06:00
Julian Descottes
9f4f847021 Bug 1397366 - restore source-editor commands controller for scratchpad & styleeditor menus;r=ochameau
MozReview-Commit-ID: Cfgws8fqgvp

--HG--
extra : rebase_source : 45f03264527acc9fe70a49931c08a76e97ee778a
2018-01-03 20:52:58 +01:00
J. Ryan Stinnett
07725c60cd Bug 1306892 - Update style editor fetch test info. r=jdescottes
MozReview-Commit-ID: Eo1yVHm3YSe

--HG--
rename : devtools/client/styleeditor/test/browser_styleeditor_fetch-from-cache.js => devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js
extra : rebase_source : 4d3651180f9a06a0f9b9f361e56e78aea380853b
2018-01-08 12:16:31 -06:00
J. Ryan Stinnett
22d7f8de39 Bug 1306892 - Fetch stylesheets from network monitor. r=tromey
If the toolbox is open when a stylesheet is loaded, the network monitor should
have recorded the response content.  When a tool asks for stylesheet text, try
asking the network monitor first before falling back to an extra fetch as a last
resort.

MozReview-Commit-ID: E2pQ04ARfQo

--HG--
extra : rebase_source : b10fb44e313ece5757961ca81a3bc0f76753ed8e
2018-01-05 18:44:25 -06:00
Ricky Chien
255b132d6a Bug 1426057 - Move chart style from skin/widgets.css StatisticsPanel.css r=Honza
MozReview-Commit-ID: B08TtEdZ9h

--HG--
extra : rebase_source : efdef2ac32111fe0fd40fc0f8c1d23c87e5b6214
2017-12-22 15:55:10 +08:00
Ricky Chien
cf0c6d5220 Bug 1418927 - requestHeaders and responseHeaders should be loaded lazily r=Honza,ochameau
MozReview-Commit-ID: 5ADM5AYdJNI

--HG--
extra : rebase_source : 05c1506489ef5af67cd9fd3911e2b3c3e4659e05
2017-12-01 18:40:36 +08:00
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
Alexandre Poirot
02e1065367 Bug 1408708 - Fetch stylesheet content via stylesheet window instead of top level content window. r=pbro
MozReview-Commit-ID: AKXQLNAwy8t
2017-12-07 08:22:43 -05: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
Gabriel Luong
b1c72a4e79 Bug 1420604 - Remove unused isDirty bit from the Inspector and Style Editor. r=jdescottes 2017-11-28 13:27:38 -05:00
Alexandre Poirot
42aca4f0c9 Bug 1404917 - Fetch response content only on-demand. r=Honza
Response content should only be fetched whenever it is strictly needed
as it is the response body. A possibly very large string.
So, netmonitor UI should only retrieve it when users select the Response Panel
or do any other action that require having access to it (like "Copy response"
context menu).

MozReview-Commit-ID: CtpJ8PKsCsm

--HG--
extra : rebase_source : 4540f641e511b2199436ad5c2edccda8aff37634
2017-10-26 09:03:40 -07:00
Noemi Erli
bfebc90a29 Backed out 3 changesets (bug 1404917)for failing clipboard in devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js r=backout on a CLOSED TREE
Backed out changeset 3e7a6e920c6b (bug 1404917)
Backed out changeset 7dcfe8d12d6f (bug 1404917)
Backed out changeset 3d8a6d24cec9 (bug 1404917)
2017-11-10 16:56:35 +02:00
Alexandre Poirot
55cb9f12e9 Bug 1404917 - Fetch response content only on-demand. r=Honza
Response content should only be fetched whenever it is strictly needed
as it is the response body. A possibly very large string.
So, netmonitor UI should only retrieve it when users select the Response Panel
or do any other action that require having access to it (like "Copy response"
context menu).

MozReview-Commit-ID: CtpJ8PKsCsm

--HG--
extra : rebase_source : f3d7aea2b752377891bef6ea466e140e93fe8b8b
2017-10-26 09:03:40 -07:00
Tom Tromey
c43bfd93a0 Bug 1179820 - Convert style editor to client-side source maps; r=gl
MozReview-Commit-ID: CV53VKKZz4A

--HG--
extra : rebase_source : d140eb449a1a3197ea7d9cc6484a9267e2bb64af
2017-09-29 07:36:30 -06:00
Tom Tromey
92ad510c94 Bug 1179820 - Log some exceptions caught in the style editor; r=gl
This has been handy for debugging, and it seems fine to simply leave it
in.

MozReview-Commit-ID: 6nm0RxPm4Zq

--HG--
extra : rebase_source : eef8b01de79272c877af1024cff27c0dba2ec672
2017-09-29 11:23:58 -06:00
J. Ryan Stinnett
b4ee78b255 Bug 1305777 - Clean up tests that supported both RDMs. r=ochameau
MozReview-Commit-ID: 4coCvC4KHtn

--HG--
extra : rebase_source : 818457e3a892cb3ef2270aa4b09c61d81ca90b50
2017-09-26 18:54:14 -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
Sebastian Hengst
58cfe586be Backed out changeset 6ae05de7437d (bug 1305777) 2017-09-29 10:43:48 +02:00
Sebastian Hengst
f0b3161268 Backed out changeset c311ac4b05b7 (bug 1305777) 2017-09-29 10:43:30 +02:00
J. Ryan Stinnett
be5a0aafab Bug 1305777 - Clean up tests that supported both RDMs. r=ochameau
MozReview-Commit-ID: 4coCvC4KHtn

--HG--
extra : rebase_source : fed45c96f83e14dbba35689aa364d7de7c90a8c5
2017-09-26 18:54:14 -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
Tom Tromey
79dd91860a Bug 1371849 - remove style editor's source-map pref; r=gl
This changes the style editor and inspector to use the same pref that
the other tools are using.  This pref is a bit of a misnomer for now,
because the inspector and style editor aren't actually using the
client-side service; but I think the name is not very important, and
unifying the prefs is worthwhile.

MozReview-Commit-ID: FlwCICnoaX4

--HG--
extra : rebase_source : 0b86c66b35a8e109a8657d74bfaa400d37efc738
2017-06-12 12:25:22 -06:00
Tom Tromey
fb5b36f794 Bug 1330383 - fetch original style sheet text using TYPE_OTHER; r=gl
Using TYPE_INTERNAL_STYLESHEET here is incorrect because we're not
necessarily fetching style sheets -- just some text.  This may run
afoul of X-Content-Type-Options.

MozReview-Commit-ID: HB7YfWwq6CI

--HG--
extra : rebase_source : 6c69fd4bd075d9d53026798d731edc3423f4474d
2017-09-13 13:36:50 -06:00
Tom Tromey
60120b71dc Bug 1346662 - do not revert original text after saving; r=gl
When saving an original style sheet, arrange not to reload the text
from the OriginalSourceActor afterward.  The actor will serve stale
text, but the editor knows better already.

MozReview-Commit-ID: BcMaSSB1uhA

--HG--
extra : rebase_source : 5023f67d17d1702dcd4b1c8fb13562e08d115b18
2017-09-13 12:33:32 -06:00
Patrick Brosset
0a0bccd63c Bug 1396182 - Wait for the styleditor animations to be done before running tests; r=ochameau
MozReview-Commit-ID: 2QiW1E5RroI

--HG--
extra : rebase_source : 8839611afb2d65d0b383da9f48da00364659476a
2017-09-11 10:34:06 +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
Tom Tromey
78f67a858a Bug 1388497 - apply source maps to CSS warnings in the console; r=bgrins
MozReview-Commit-ID: 8ObL0uwENrM

--HG--
extra : rebase_source : ae9376ca9df6da9db775c1148cfca0b867109628
2017-08-15 14:32:56 -06:00
J. Ryan Stinnett
18bbbd41b9 Bug 1397967 - Remove Style Editor support for ancient targets. r=gl
Style Editor has some ancient fronts and such to support pre-Firefox 29 targets.
This is well beyond what we attempt to support, so let's get rid of the extra
code.

MozReview-Commit-ID: 1OnGSYTyNsr

--HG--
extra : rebase_source : c60f129981a8c5e3d97de01d0d7f24cb858c0e22
2017-09-07 19:01:24 -05:00
Tom Tromey
ad5ebc78b2 Bug 1224558 - change style editor to notice stylesheet additions; r=gl
This changes the stylesheets actor to use the tab actor's "windows"
getter to get the list of new windows.  It also changes the actor to
emit events, and changes the style editor to add new editors based on
events.

MozReview-Commit-ID: 3TkQY6XHY1I

--HG--
extra : rebase_source : 76098b08c95c7d4e7ee6bb2bd9ebae97a0c4b7ab
2017-08-15 12:46:55 -06:00
Tim Nguyen
83fcd81dde Bug 1379099 - Replace the Style Editor spinner with a top down animation r=miker
MozReview-Commit-ID: 93LBp3t9bKb

--HG--
extra : rebase_source : 00ba98020640c3a1046028a8449154b6d348d845
2017-08-26 14:56:57 +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
KuoE0
fa58525e28 Bug 1384802 - Update the expectation of test cases. r=emilio,jryans
MozReview-Commit-ID: 6XtbkWWSFyr

--HG--
extra : rebase_source : 664431ccc8dba4cf3154bd26c2997f6ea110ba61
2017-08-15 10:21:13 +08:00
Wes Kocher
5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Andrew Halberstadt
d2109610fb Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : 8607b3964da207a6076c79b6f1d75b40503cdd7d
2017-08-10 14:48:21 -04:00