Commit Graph
75 Commits
Author SHA1 Message Date
Greg Tatum 3e6ab7973a Bug 1291866 - Replace inIDOMUtils.cssPropertyIsValid; r=tromey
MozReview-Commit-ID: JqO4UiPHAPE
2016-09-16 08:46:51 -05:00
Tom Tromey b240dae249 Bug 1265796 - add CSS subproperty info to CssProperties; r=gregtatum
MozReview-Commit-ID: JIDTwgnxAJE
2016-09-19 12:36:56 -06:00
Greg Tatum 0fc28c2ff3 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8
2016-09-14 10:00:27 -05:00
Sebastian Hengst 93c9c62451 Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout 2016-09-13 17:43:44 +02:00
Greg Tatum 36e0a1b1fa Bug 1290988 - Collect devtools/shared/css-* files into a folder; r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8
2016-08-29 11:02:34 -05:00
Tom Tromey 656c47ee51 Bug 1301078 - correctly disable pasted commented-out properties; r=pbro
MozReview-Commit-ID: 97ueaqvYVVN
2016-09-07 11:08:12 -06:00
Alexandre Poirot 5a92c204eb Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM
2016-08-25 05:50:44 -07:00
Greg Tatum 88c911b2cd Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
MozReview-Commit-ID: Khak8Av1v67
2016-08-12 15:01:42 -05:00
Greg Tatum 696677b27c Bug 1289425 - Remove domUtils from the InplaceEditor; r=tromey
MozReview-Commit-ID: D9thpWSNwKC
2016-08-05 11:40:51 -05:00
Greg Tatum 325bdacd3c Bug 1289425 - Add a getClientCssProperties method to the CssProperties; r=tromey
This creates an easy interface for getting the static css database, and
splits up the initCssProperties function into smaller re-usable parts.

MozReview-Commit-ID: G86bNy3KQDp
2016-08-04 15:16:16 -05:00
Julian Descottes ea152e80ca Bug 1295608 - Migrate devtools/shared to use l10n.js instead of Services.string;r=tromey
I explicitly did not migrate the localizations of the external properties file brand.properties.
This should be handled as part of Bug 1297733.

MozReview-Commit-ID: JXomOmr37xV
2016-08-26 15:01:52 +02:00
Patrick Brosset 8f123f570d Bug 1295008 - Hide the previous eyedropper when we request to show a new one; r=miker
The eyedropper can be shown in 2 distinct ways:
- the 'eyedropper' gcli command can be called (from the dev toolboar
  or from the browser devtools menu),
- or the inspector's 'pickColorFromPage' method can be called (from
  the inspector toolbar or from the color-picker in the ruleview).

Before this change, it was possible to show several eyedropper because
these 2 codepaths didn't know about each other.
Now, when executing the gcli command, the inspector's
'cancelPickColorFromPage' method is called to hide it first.
And, when the 'pickColorFromPage' method is called, the 'eyedropper --hide'
gcli command is called too.

This way, there's only one eyedropper shown.

There was also a problem where the gcli command would create a new
eyedropper everytime it was called. This was fixed too, by maintaining a
WeakMap of all eyedroppers opened so far.

MozReview-Commit-ID: F6fBP5R7ZTJ
2016-08-24 10:29:49 +02:00
1fb1f4df56 Bug 1295171 - Fix eslint errors from previous patch. r=me 2016-08-22 17:33:21 +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
Tom Tromey e23dc8b645 Bug 1278625 - move SimpleStringFront to specs/string.js; r=ejpbruel
MozReview-Commit-ID: Ib11CZwL4pP
2016-08-16 11:01:33 -06:00
Tom Tromey 0940713d29 Bug 1278625 - remove some lazy loading from devtools; r=jlongster
MozReview-Commit-ID: HwV7DFVJhAF
2016-08-05 08:46:37 -06:00
Benoit Chabod 0ce3a6cf55 Bug 1285566 - Create an EmulationActor and use per-tab API for touch simulator, r=jryans
MozReview-Commit-ID: 860epGLFO9
2016-08-16 21:56:14 -05:00
b0fa44c98a Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
c36403bbe5 Bug 1288423 - Decouple PerformanceEntriesActor from PerformanceEntriesFront. r=fitzgen 2016-08-10 17:35:31 +02:00
Greg Tatum 5ecf2bffa5 Bug 1275939 - replace domUtils.getCSSValuesForProperty in inplace-editor.js r=tromey
MozReview-Commit-ID: KtuAWnNsnaq
2016-08-01 09:34:00 +02:00
Carsten "Tomcat" Book c0a2b46b9b merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +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
4e5d04b399 Bug 1265727 - Decouple EventLoopLagFront from EventLoopActor. r=fitzgen 2016-07-21 12:52:30 +02:00
J. Ryan Stinnett 30933227ec Bug 1240907 - Flatten RemoteBrowserTabActor into BrowserTabActor. r=ochameau
The removes the legacy path for non-e10s that avoids the messageManager.  We now
use the messageManager for all cases, both e10s off and on.

Unsurprisingly, this revealed a variety of race conditions in various tests, so
they've been cleaned up as well.

MozReview-Commit-ID: EXEWehphLIY
2016-07-21 12:20:55 -05:00
Greg Tatum 17dea2ba8d Bug 1265785 - replace uses of inIDOMUtils.getCSSPseudoElementNames r=pbro 2016-07-12 06:45:00 +02:00
Nick Fitzgerald 29461839ae Bug 1261869 - Fix leaks in devtools; r=ejpbruel
There are two leaks addressed in this commit:

1. The thread actor's `_debuggerSourcesSeen` set was never cleared. This set
exists only as a performance optimization to speed up `_addSource` in cases
where we've already added the source. Unfortunately, this set wasn't getting
cleared when we cleared debuggees out and it ended up keeping the
`Debugger.Source`, its referent, and transitively its referent's global alive. I
figured it was simpler to make it a `WeakSet` than to add it as a special case
in `ThreadActor.prototype._clearDebuggees` and manage the lifetimes by hand. I
think this fits well with its intended use as an ephemeral performance
optimization.

2. Due to a logic error, we were not clearing debuggees in the memory actor's
`Debugger` instance on navigations. This isn't really a "proper" leak, in that
if you forced a GC, the old debuggees would go away as `Debugger` holds them
weakly, however if there was no GC between navigations, then you could still see
the old windows (and everything they "retained") as roots in the snapshot. This
issue is straightforward to fix once identified: ensure that `_clearDebuggees`
is actually called on navigation.

Finally, this commit adds a test that we don't leak Window objects when devtools
are open and we keep refreshing a tab. When it fails, it prints out the leaking
window's retaining paths.
2016-07-06 08:37:57 -07:00
Eddy Bruel 56865c36f7 Bug 1265727 - Decouple FramerateFront from FramerateActor;r=fitzgen 2016-07-04 17:50:30 +02:00
Eddy Bruel c92530c5cd Bug 1265727 - Decouple ProfilerFront from ProfilerActor;r=fitzgen 2016-07-01 15:27:41 +02:00
Wes Kocher 4eb7fa6fa7 Backed out changeset 7773873116e9 (bug 1265727) for xpcshell failures and eslint failures 2016-06-29 12:00:47 -07:00
Eddy Bruel feb7a3aed3 Bug 1265727 - Decouple ProfilerFront from ProfilerActor;r=fitzgen 2016-06-29 16:20:06 +02:00
Tom Tromey c8e6faf303 Bug 1273941 - replace uses of promise.defer in devtools/shared; r=jryans
MozReview-Commit-ID: 2n3uJ5QKsKL
2016-06-09 09:03:47 -06:00
Eddy Bruel 0f1901e0cf Bug 1265727 - Decouple PerformanceRecordingFront from PerformanceRecordingActor;r=fitzgen 2016-06-22 15:01:28 +02:00
Eddy Bruel 82a70eb5f7 Bug 1265727 - Decouple PerformanceFront from PerformanceActor;r=fitzgen 2016-06-22 13:16:21 +02:00
Patrick Brosset 22dfd32737 Bug 1268082 - Get the list of supported CSS types for each property from the server; r=tromey
Added the list of supported types to each css property returned by the
CssProperties actor.
As a fallback, the css-properties-db static file also contains this list.
Also, if connected to a server that has the CssProperties actor but not
the data about supported types, then the type data is retrieved from the
static db too.

MozReview-Commit-ID: J1o8JGODMiC
2016-06-15 08:58:36 +01:00
Nick Fitzgerald d1b4cd56b2 bug 1265723 - Decouple the MemoryFront from the MemoryActor; r=ejpbruel 2016-06-10 13:28:15 -07:00
Nick Fitzgerald b52886d1fe Bug 1279302 - Decouple the ReflowFront from the ReflowActor; r=ejpbruel 2016-06-10 13:28:15 -07:00
Wes Kocher 64d8c15825 Bug 1265720 - ESLint fix 2016-06-09 12:00:28 -07:00
Eddy Bruel 84f0397a71 Bug 1265720 - Decouple fronts from actors in gcli;r=jryans 2016-06-09 17:28:36 +02:00
Eddy Bruel 624adbf498 Bug 1265724 - Decouple TimelineFront from TimelineActor; r=ejpbruel 2016-06-08 15:51:55 +02:00
Nick Fitzgerald cbcd6d53e5 Bug 1278405 - Decouple the DirectorRegistryFront from the DirectorRegistryActor; r=ejpbruel 2016-06-07 07:53:22 -07:00
Nick Fitzgerald d9095a3f80 Bug 1278397 - Decouple the MessagePortFront, DirectorScriptFront, and DirectorManagerFront from the MessagePortActor, DirectorScriptActor, and DirectorManagerActor respectively; r=ejpbruel 2016-06-07 07:53:22 -07:00
Nick Fitzgerald ec3f800233 Bug 1265731 - Decouple DeviceFront from DeviceActor; r=ejpbruel 2016-06-07 07:53:21 -07:00
Nick Fitzgerald a4f285365d Bug 1278345 - Decouple the LongStringFront from the LongStringActor; r=ejpbruel 2016-06-07 07:53:21 -07:00
Eddy Bruel b1fe093bb4 Bug 1265728 - Decouple PromisesFront from PromisesActor; r=ejpbruel 2016-06-07 12:47:20 +02:00
Nick Fitzgerald bb663a0b35 Bug 1277985 - Decouple the CSSUsageFront from the CSSUsageActor; r=ejpbruel 2016-06-06 10:24:34 -07:00
Greg Tatum 4aebc40c28 Bug 1265790 - replace inIDOMUtils.isInheritedProperty r=pbro
MozReview-Commit-ID: 1c6OLfYMW0p
2016-06-02 13:07:00 +02:00
Nick Fitzgerald b9dff3a9a7 Bug 1277707 - Decouple the fronts from the actors in the shader editor; r=ejpbruel 2016-06-03 10:45:10 -07:00
Nick Fitzgerald 9792c25f51 Bug 1265719 - Decouple the CanvasFront and FrameSnapshotFront from the CanvasActor and FrameSnapshotActor respectively; r=ejpbruel 2016-06-03 10:45:10 -07:00
Nick Fitzgerald 31ebc542b4 Bug 1265732 - Decouple the AudioNodeFront and WebAudioFront from the AudioNodeActor and WebAudioActor respectively; r=ejpbruel 2016-06-03 10:45:10 -07:00
Nick Fitzgerald 6783a8670c Bug 1277673 - Decouple the ActorActorFront and ActorRegistryFront from the ActorActor and ActorRegistryActor respectively; r=ejpbruel 2016-06-03 10:45:10 -07:00