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
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
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
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
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
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
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
This has been handy for debugging, and it seems fine to simply leave it
in.
MozReview-Commit-ID: 6nm0RxPm4Zq
--HG--
extra : rebase_source : eef8b01de79272c877af1024cff27c0dba2ec672
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
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
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
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
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
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
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