Commit Graph
58 Commits
Author SHA1 Message Date
Tom Tromey 2472b4e90e Bug 1403610 - update to source-map 0.6.1; r=bgrins
Import the source-map 0.6.1 bundle.

MozReview-Commit-ID: AkVLlBJRD1l
2017-09-27 09:39:44 -06:00
Tom Tromey e7420f5ceb 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
2017-09-13 13:36:50 -06:00
Tom Tromey 7d2e54a89e Bug 1388497 - apply source maps to CSS warnings in the console; r=bgrins
MozReview-Commit-ID: 8ObL0uwENrM
2017-08-15 14:32:56 -06:00
Alexandre Poirot 8bd5ef0c15 Bug 1396619 - Lazy load actor codebase related to the inspector. r=zer0
MozReview-Commit-ID: GCY1mqjoOkc
2017-09-04 17:46:26 +02:00
Tom Tromey d18e870b5c 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
2017-08-15 12:46:55 -06:00
Tom Tromey e7bbf81f65 Bug 1388855 - Simplify source map URL extraction in stylesheet actor; r=gl
MozReview-Commit-ID: 3WeNugNx7M
2017-08-09 13:47:23 -06:00
Julian Descottes 2530599593 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0
2017-08-18 17:05:04 +02:00
Julian Descottes 92eb851e00 Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64
2017-08-16 15:11:21 +02:00
Alexandre Poirot 3d76320218 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART2: Substitutes promise.defer usages with defer
$ sed -i 's/promise.defer/defer/gI' $(egrep -lir "promise.defer\(\)" devtools)
  Reset modification to the following files as they are using deprecated syncable promises as we don't want to touch them.
  http://searchfox.org/mozilla-central/search?q=deprecated-sync-thenables&case=true&regexp=false&path=
$ git checkout devtools/client/debugger/test/mochitest/
$ git checkout devtools/shared/client/main.js
$ git checkout devtools/client/debugger/
$ git checkout devtools/server/main.js

MozReview-Commit-ID: DGN5ae68wtn
2017-08-08 15:24:04 +02:00
Alexandre Poirot 1f1a801a56 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART1: Import devtools/shared/defer
$ sed -i '/require("promise")/a const defer = require("devtools/shared/defer");' $(egrep -lir "promise.defer\(\)" $(egrep -rl "require\(\"promise\"\)" devtools))
But ignore debugger as it still uses sync promises and would better be handled manually
$ git checkout devtools/client/debugger/
MozReview-Commit-ID: 7FvhNxULB2x
2017-08-08 15:33:56 +02:00
J. Ryan Stinnett cc38702d42 Bug 1384789 - Check ancestor URLs to avoid sheet cycles. r=bgrins
With Stylo, an import rule from a cycle _will_ have a `styleSheet` object, so we
need to also check the sheet's ancestors to see if the URL is unique.

MozReview-Commit-ID: B33REaSGGYU
2017-07-27 17:23:22 -05:00
Tom Tromey 318f1af58b Bug 1306887 - use SourceMap response header in style sheet actor; r=gl
If a SourceMap response header was saved on a style sheet, use it in the
style sheet actor.

MozReview-Commit-ID: GRLCdRCaP5Q
2017-06-29 10:04:52 -07:00
Fabien Casters 8ca3b6f116 Bug 1331802 - Fix remaining ESLint issues in devtools/server/actors/ r=tromey
MozReview-Commit-ID: 3dqvmCywg3s
2017-05-03 23:26:19 +02:00
Matteo Ferretti 199353dcee Bug 1359028 - added encodeURIComponent and fixed css class typo; r=pbro
The patch of bug 1353005 removed by mistake a leading dot in a css class, and
the `encodeURIComponent` calls (so the # in the color definition was considered
the hash part in the url).
Also, it appears autoland rejected the last commit from Bug 1353005, so this
patch includes those changes as well.

MozReview-Commit-ID: 2aVW3hYHhSr
2017-04-25 16:35:08 +02:00
Florian Quèze 63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Florian Quèze 361ec85a2e Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Julian Descottes 979f2c379f Bug 1322013 - Use system principal to fetch moz-extension stylesheets;r=gl
MozReview-Commit-ID: 8n15QUzbEUJ
2016-12-26 11:16:24 +01:00
J. Ryan Stinnett ca28966f00 Bug 1315391 - Rename all disconnect methods to destroy in actors. r=ochameau
Ever since protocol.js was added as a way to create DevTools actors, we've had
lots of confusion about the correct way to implement actor destruction.  If your
actor's _parent_ was the legacy kind, you had to use `disconnect`.  If it was
protocol.js, you had to use `destroy`.

There is no reason for this madness, which makes reasoning about destruction
quite hard.  Here we rename `disconnect` to `destroy` so there is only one name
for every destruction path.

MozReview-Commit-ID: C1Yw9NfUUR2
2016-11-11 18:24:58 -06:00
Tom Tromey f6aabee50a Bug 1301854 - detect BOM when determining resource encoding; r=pbro
MozReview-Commit-ID: 6akivZSRwVN
2016-09-16 13:02:33 -06:00
Julian Descottes fd1d811c09 Bug 1291321 - Use system principal to download file:// stylesheets;r=gl
MozReview-Commit-ID: Fd8RoPGbZjz
2016-09-02 15:38:48 +02:00
fbdb0dae94 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
b0fa44c98a Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Tim Huang 1fa3f10bb6 Bug 1287607 - Making the stylesheets editor using the system principal to load CSS files from 'chrome://' URL. r=gl 2016-07-19 17:39:00 +02:00
Tim Huang 82979ebbae Bug 1282660 - Part 1 : Make the devtools uses nodePrincipal instead of the system principal when fetching stylesheets. r=gl 2016-07-13 02:37:00 +02:00
Rex Lee a981b10008 Bug 1261133 - Use pseudoClass for style editor transition. r=dbaron, r=pbro
MozReview-Commit-ID: Ck5JTXRR0mp
2016-05-23 19:55:54 +08:00
Tom Tromey a1c55e31b0 Bug 1225254 - split css-logic.js into server and shared files; r=pbro
MozReview-Commit-ID: BTFVQJcVI5d
2016-06-24 08:26:21 -06:00
J. Ryan Stinnett 169c44d5f6 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05:00
Julian Descottes 04c7b09780 Bug 1202458 - part3: rename ShortLongString to SimpleStringFront;r=pbro
The current name ShortLongString doesn't reflect the current usage of
this class. When looking at the few clients of this class, the reason
for using it is that the string is already accessible on the client
and does not need to be fetched from the server, while still keeping
the same interface as the LongStringFront.

MozReview-Commit-ID: 7MdgH8GzC7q
2016-05-31 16:51:27 +02:00
Carsten "Tomcat" Book 740a6e2789 Backed out changeset e74192b1a9c8 (bug 1202458) 2016-06-02 16:29:47 +02:00
Julian Descottes 75cc226f5f Bug 1202458 - part3: rename ShortLongString to SimpleStringFront;r=pbro
The current name ShortLongString doesn't reflect the current usage of
this class. When looking at the few clients of this class, the reason
for using it is that the string is already accessible on the client
and does not need to be fetched from the server, while still keeping
the same interface as the LongStringFront.

MozReview-Commit-ID: 7MdgH8GzC7q
2016-05-31 16:51:27 +02:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Eddy Bruel 0ea1ecb6b6 Bug 1265722 - Decouple InspectorFront from InspectorActor;r=jryans 2016-05-17 14:34:40 +02:00
Sebastian Hengst 5973518cc6 Backed out changeset 92b07e6e84bf (bug 1265722) for failing test_animation_actor-lifetime.html because of undefined function InspectorFront. r=backout 2016-05-17 13:50:21 +02:00
Eddy Bruel e79d4fc43a Bug 1265722 - Decouple InspectorFront from InspectorActor;r=jryans 2016-05-17 11:14:31 +02:00
Jennifer Fong bb0e5b8001 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00
Eddy Bruel d4474c4fe9 Bug 1268461 - Decouple StyleSheetsFront from StyleSheetsActor;r=jryans 2016-05-06 08:09:20 +02:00
Eddy Bruel db18f42caf Bug 1268461 - Decouple StyleSheetFront from StyleSheetActor;r=jryans 2016-05-06 08:07:51 +02:00
Eddy Bruel 88853833d4 Bug 1268461 - Decouple MediaRuleFront from MediaRuleActor;r=jryans 2016-05-04 16:46:41 +02:00
Eddy Bruel 9c478d90df Bug 1268461 - Decouple OriginalSourceFront from OriginalSourceActor;r=jryans 2016-05-03 18:31:00 +02:00
Carsten "Tomcat" Book 3b5a32005f Backed out changeset e58df849e249 (bug 1268461) for bustage 2016-05-03 13:37:29 +02:00
Eddy Bruel a982e4ed1f Bug 1268461 - Decouple OriginalSourceFront from OriginalSourceActor;r=jryans 2016-05-03 13:14:52 +02:00
Eddy Bruel efb647e838 Bug 1268461 - Change the order in which the stylesheet actors are defined;r=jryans 2016-05-03 11:46:58 +02:00
Nicolas Chevobbe eda0fe2199 Bug 1263439 - Remove "blob:" from stylesheet URLs created with URL.createObjectURL; r=pbro
There was an error thrown in the stylesheet.js `dirname` function because of
`this.safeURL` being like "blob:XXX", and thus not being valid for `Services.io.newURI`.
Removing the "blob:" part of the safeUrl before calling the `dirname` function
resolves the bug.

MozReview-Commit-ID: 9uth6vyAR2u
2016-04-10 15:02:48 +02:00
Carsten "Tomcat" Book 883df8160a Backed out changeset d6a124bce670 (bug 1263439) for eslint failures 2016-04-13 12:50:10 +02:00
Nicolas Chevobbe 95a25b37a5 Bug 1263439 - Remove "blob:" from stylesheet URLs created with URL.createObjectURL; r=pbro
There was an error thrown in the stylesheet.js `dirname` function because of
`this.safeURL` being like "blob:XXX", and thus not being valid for `Services.io.newURI`.
Removing the "blob:" part of the safeUrl before calling the `dirname` function
resolves the bug.

MozReview-Commit-ID: 9uth6vyAR2u
2016-04-10 15:02:48 +02:00
Patrick Brosset d7ac6f8ded Bug 1255787 - Do not assume sourceMap appears only in external stylesheets; r=gl
MozReview-Commit-ID: A92DdoAFDGT
2016-03-29 21:30:11 +02:00
Patrick Brosset f57d7a42eb Bug 1249888 - try/catch SourceMapConsumer to avoid empty rule-view when source map is invalid; r=gl 2016-02-27 20:39:21 +01:00
Gabriel Luong c63ff3b56b Bug 1237441 - Move styleinspector directory into the shared inspector directory r=pbro 2016-01-12 09:52:12 -08:00
Wes Kocher 9329572311 Backed out changeset 29f184e43309 (bug 1237441) for eventual build bustage 2016-01-12 09:20:43 -08:00