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

110 Коммитов

Автор SHA1 Сообщение Дата
Patrick Brosset c109f6e2ed Bug 1374587 - Avoid getting NodeActors for grids when we already know them and filter reflows; r=gl
Here we make updates on reflow slower (with a throttle) cause we don't
really need to update live.
We also filter all reflows that do not cause either the list of grids or
the current outline to change.
Finally, we also attach NodeActors to GridActor forms (when they are know)
in order to avoid one more round-trip to the server.

Globally, this makes performance of the grid panel far better on pages that
cause many reflows.

Note that this commit also fixes a debounce vs. throttle confusion that
existed in an inspector utils file. The throttle function there was actually
a debounce function, so it was renamed, and an actual throttle function
was added.

MozReview-Commit-ID: GeqgZR0o0E6

--HG--
extra : rebase_source : 6b9719379dcbd4479bded26014aa3742bd75208e
2017-06-27 12:02:53 -07:00
Sebastian Hengst ee5d5a5174 Backed out changeset 909ccc166a06 (bug 1374587) on suspicion of causing timeouts in browser_grids_number-of-css-grids-telemetry.js. r=backout 2017-06-23 18:55:38 +02:00
Patrick Brosset 9db019a850 Bug 1374587 - Avoid getting NodeActors for grids when we already know them and filter reflows; r=gl
Here we make updates on reflow slower (with a throttle) cause we don't
really need to update live.
We also filter all reflows that do not cause either the list of grids or
the current outline to change.
Finally, we also attach NodeActors to GridActor forms (when they are know)
in order to avoid one more round-trip to the server.

Globally, this makes performance of the grid panel far better on pages that
cause many reflows.

Note that this commit also fixes a debounce vs. throttle confusion that
existed in an inspector utils file. The throttle function there was actually
a debounce function, so it was renamed, and an actual throttle function
was added.

MozReview-Commit-ID: GeqgZR0o0E6

--HG--
extra : rebase_source : a2792a0ec4cad2034965d36648f0675ae4f52d86
2017-06-20 14:57:34 +02:00
Paolo Amadini 10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Luca Greco a977d84eda Bug 1300590 - Implement support for $0 and inspect bindings in devtools.inspectedWindow.eval. r=aswan,ochameau
MozReview-Commit-ID: CHuc57tfgzo

--HG--
rename : browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow.js => browser/components/extensions/test/browser/browser_ext_devtools_inspectedWindow_eval_bindings.js
extra : rebase_source : 0e207c6d422b0227ec867e08e05a6a323dc3664b
2017-02-15 14:54:50 +01:00
J. Ryan Stinnett fefcbc4f99 Bug 1354614 - Remove legacy performance front. r=gregtatum
The legacy performance path supports servers running Firefox 42 and earlier.
Now that Firefox OS is no longer supported, there's no reason to keep this
around.

MozReview-Commit-ID: K40e93VUjj9

--HG--
extra : rebase_source : ec2fbe68b7fe2f4d8e53b30d194dc026294b5f53
2017-04-07 13:14:26 -05:00
Patrick Brosset d64e4e25b7 Bug 1353010 - Remove the unused director-manager/registry API; r=ochameau
MozReview-Commit-ID: 3TZUs0MAhAi

--HG--
extra : rebase_source : a8fbdc1d5372ee60a77e5f31e297789b679dd740
2017-04-05 10:44:07 +02:00
Alisha b6906a58a1 Bug 1345112 - Fix invalid console.trace() calls in inspector front. r=jdescottes
--HG--
extra : rebase_source : 293a832e540efe966ed1a07f9dbe361f6c45399e
2017-03-11 05:39:00 -05:00
Boris Zbarsky 11a5929f8e Bug 1334865 part 2. Remove the unused (and broken) asyncDrawXULElement API. r=smaug 2017-02-01 18:04:06 -05:00
Alexandre Poirot f2902ed34c Bug 1320149 - Prevent loading gcli when opening a toolbox. r=jwalker,miker
MozReview-Commit-ID: KE209SRA15u

--HG--
extra : rebase_source : aa6f8bcc9918b1f192e31b01cf4ecd37b892a49d
2017-01-05 10:27:31 -08:00
Michelangelo De Simone 7baf165ae7 Bug 1313155 - Remove dom/settings and related code. r=Ehsan
MozReview-Commit-ID: Gi7frPFQ6yW

--HG--
extra : rebase_source : 69bb31fe3bc96ca460f0e35abb0b0f82d03defb6
2016-12-29 11:26:49 -08:00
Wes Kocher ca99354e00 Backed out changeset 5566e83980ed (bug 1313155) for mass build bustage a=backout CLOSED TREE
MozReview-Commit-ID: Co3f2Vkbf4y
2017-01-12 14:16:52 -08:00
Michelangelo De Simone 0b3a927918 Bug 1313155 - Remove dom/settings and related code. r=Ehsan
MozReview-Commit-ID: Gi7frPFQ6yW

--HG--
extra : rebase_source : 401a8a202b1d8ebfd719d460bff96c9280062ded
2016-12-29 11:26:49 -08:00
Sebastian Hengst cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Florian Quèze 55f78ce0fa Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
gtatum@mozilla.com 91e6ea18e7 Bug 1309065 - Be smarter about filling in the client-side css properties db; r=tromey
MozReview-Commit-ID: BOYwveTH1Hy

--HG--
rename : devtools/server/tests/mochitest/test_css-properties_01.html => devtools/server/tests/mochitest/test_css-properties.html
extra : rebase_source : 07118d9577635c57bcf1684a6e0be66937118944
2016-10-11 20:30:24 +00:00
Wes Kocher d1a5db810e Backed out changeset 2aef437d23b7 (bug 1309065) for failures in test_css-properties-db.js a=backout
--HG--
rename : devtools/server/tests/mochitest/test_css-properties.html => devtools/server/tests/mochitest/test_css-properties_01.html
2016-12-28 13:42:19 -08:00
gtatum@mozilla.com 3878d6e752 Bug 1309065 - Be smarter about filling in the client-side css properties db; r=tromey
MozReview-Commit-ID: BOYwveTH1Hy

--HG--
rename : devtools/server/tests/mochitest/test_css-properties_01.html => devtools/server/tests/mochitest/test_css-properties.html
extra : rebase_source : 11ceb980e2d1039b0120e761ee59e9760ee57b00
2016-10-11 20:30:24 +00:00
JerryShih a400a6428f Bug 1310681 - put css-color-4 color function supporting information into css property db. r=tromey
MozReview-Commit-ID: 8xRKGJ5wJkq

--HG--
extra : rebase_source : 565f7b41ae3797e5dc7727ab614023c32e438b27
2016-10-21 15:15:16 -04:00
Luca Greco 34df30a2de Bug 1315251 - Create a DevTools Remote Debugger Actor as a backend for the WebExtension DevTools API. r=ochameau
MozReview-Commit-ID: E6eNG8BgBwF

--HG--
extra : rebase_source : 84ca2206bfca41b0167f3de00a4874e811d41a47
2016-11-17 19:31:06 +01:00
Julian Descottes a025adfa4d Bug 1319015 - fix css-properties normalization when remote dbg old ff;r=pbro
MozReview-Commit-ID: L6lPypzjzNv

--HG--
extra : rebase_source : fd1d4c57dc2f282d87cd1776f5850a8200429283
2016-11-21 10:26:31 +01:00
Gabriel Luong 4095709c00 Bug 1308257 - Part 2: Implement LayoutActor and GridActor r=pbro, jryans 2016-11-08 20:51:13 +09:00
Phil Ringnalda 45c34d7e95 Merge m-c to autoland 2016-11-02 20:03:20 -07:00
Tom Tromey 1fc208e8d8 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74

--HG--
extra : rebase_source : 475b4a2de10d65cadd6198e49e5ff5cfb4e9b871
2016-10-25 21:30:18 -06:00
Wes Kocher 41f7647994 Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey 966cb8ff85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74

--HG--
extra : rebase_source : ced0ac04663356c2e2ce315d09b5cf0e27617b4e
2016-10-25 21:30:18 -06:00
Daisuke Akatsuka ef258002c0 Bug 1210795 - Part 1: Display animations' timing-functions in the animation-inspector. r=pbro
MozReview-Commit-ID: CO5tVZ31RrL

--HG--
extra : rebase_source : 735685b5130f146c57ed69e9820315b7b7247b6b
2016-10-25 17:35:56 +09:00
Alexandre Poirot 172379f71f Bug 1249119 - Fix inspector startup when opening it on a loading document r=jdescottes
MozReview-Commit-ID: 5d4K6VFLTgE

--HG--
extra : rebase_source : b52bf750668c162a9dc5d05314e87f4d252726e7
2016-10-19 05:25:26 -07:00
Greg Tatum b815cfe432 Bug 1224304 - Handle canceling the element picker better r=gl
This changes the behavior of the element picker so that when it is
cancelled the previously selected DOM node is re-scrolled into view.
Additionally the existing behavior of the keyboard shortcuts for the
element picker was broken when the devtools toolbox was docked. The main
content area was not being focused, so the keyboard shortcuts for the
element picker were not being used. When the toolbox is detached, the
focus event is still not fired, as it's not desirable to have the
content pop into view over the devtools.

Finally there is now an additional implementation of the Escape shortcut
when the devtools are focused. The console Escape shortcut is ignored
until the element picker has been disabled making disabling the element
picker consistent irrelevant of the context.

MozReview-Commit-ID: HxENmPBoTcD

--HG--
extra : rebase_source : 067b51d4c7324f2e59fc698dbd5bb01ad2b29205
2016-10-06 13:40:53 -05:00
Julian Descottes 1e5099a017 Bug 1308467 - fix fronts/css-properties.js when remote debugging old firefox;r=tromey
MozReview-Commit-ID: 365CiBV8uha

--HG--
extra : rebase_source : d8bb5765a8ac68978ee55c65c5d474c1358917ae
2016-10-07 15:53:30 +02:00
Greg Tatum b9cafbced6 Bug 1307009 - Remove caching optimization; r=tromey
This caching feature is no longer valid as the client-side database
will not necessarily be the same as the server since the DB is
only built on nightly.

MozReview-Commit-ID: 550EQmgO9O7

--HG--
extra : rebase_source : 8863a9b42a976c5b6a6b8d4a8e2481b50f2ffa86
2016-10-04 15:15:15 -05:00
Sebastian Hengst aaf2af359e Backed out changeset 4fa21c0bcb63 (bug 1307009) 2016-10-05 17:11:01 +02:00
Greg Tatum b1b987a9fc Bug 1307009 - Remove caching optimization; r=tromey
This caching feature is no longer valid as the client-side database
will not necessarily be the same as the server since the DB is
only built on nightly.

MozReview-Commit-ID: 550EQmgO9O7

--HG--
extra : rebase_source : 9d924ea3a4c33995ab5db1e854404f4f181ecd41
2016-10-04 15:15:15 -05:00
Greg Tatum 97bb72ff52 Bug 1291866 - Replace inIDOMUtils.cssPropertyIsValid; r=tromey
MozReview-Commit-ID: JqO4UiPHAPE

--HG--
extra : rebase_source : 5bc55dda26c2380b36cfd597c0eb78239bbeeedf
2016-09-16 08:46:51 -05:00
Tom Tromey 7f09233236 Bug 1265796 - add CSS subproperty info to CssProperties; r=gregtatum
MozReview-Commit-ID: JIDTwgnxAJE

--HG--
extra : rebase_source : 33e96edf30012806465ab19732ab298240e0cf91
2016-09-19 12:36:56 -06:00
Greg Tatum 1e5a5a50e2 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

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-color.js => devtools/shared/css/color.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-parsing-utils.js => devtools/shared/css/parsing-utils.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : 51d8d92db0ae91a7368b109aae9a509ba8012b3f
extra : histedit_source : ee3409615461cba0c656b32fee7f80d4b72a09d1
2016-09-14 10:00:27 -05:00
Sebastian Hengst d11146270a Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout
--HG--
rename : devtools/shared/css/color-db.js => devtools/shared/css-color-db.js
rename : devtools/shared/css/lexer.js => devtools/shared/css-lexer.js
rename : devtools/shared/css/properties-db.js => devtools/shared/css-properties-db.js
2016-09-13 17:43:44 +02:00
Greg Tatum da1990f19b 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

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : b73bbe7fcf8177a25b41ecdd6d6c760ed1472fb7
2016-08-29 11:02:34 -05:00
Tom Tromey 30f5d120ff Bug 1301078 - correctly disable pasted commented-out properties; r=pbro
MozReview-Commit-ID: 97ueaqvYVVN

--HG--
extra : rebase_source : 253428be10e9664693d0818deffbc983ef4c8af0
2016-09-07 11:08:12 -06:00
Gabriel Luong 2cd6e3dddb Bug 1308257 - Part 1: Move ReflowActor to reflow.js r=pbro
--HG--
rename : devtools/server/actors/layout.js => devtools/server/actors/reflow.js
rename : devtools/shared/fronts/layout.js => devtools/shared/fronts/reflow.js
rename : devtools/shared/specs/layout.js => devtools/shared/specs/reflow.js
2016-11-01 11:51:58 +09:00
Alexandre Poirot 0e07d87062 Bug 1298082 - Various cleanups to use helpers. r=jryans
MozReview-Commit-ID: EwtA2K00EaM

--HG--
extra : rebase_source : a97a380d413f1a84077ba7bb1250e49af3284825
2016-08-25 05:50:44 -07:00
Greg Tatum 4060bbdcb1 Bug 1289425 - Allow sourceeditor to fallback to client-side css properties; r=tromey
MozReview-Commit-ID: Khak8Av1v67

--HG--
extra : rebase_source : 6d117087a34320fd7bbb7ea540b218ac78018566
2016-08-12 15:01:42 -05:00
Greg Tatum cce5c3c6ef Bug 1289425 - Remove domUtils from the InplaceEditor; r=tromey
MozReview-Commit-ID: D9thpWSNwKC

--HG--
extra : rebase_source : b11d3b8bc1f4c3b4777386e93dc03cee07508f86
2016-08-05 11:40:51 -05:00
Greg Tatum a17cc41d63 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

--HG--
extra : rebase_source : 608df38114de31320594516ca776cc35ddb6ee8e
2016-08-04 15:16:16 -05:00
Julian Descottes 354cf4d6b8 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

--HG--
extra : rebase_source : 0a4e25ba76748e159e389a7b6d42f6cf82d412aa
extra : intermediate-source : 44b1e19c5f2fc03d54ecba9507c30df4caff343f
extra : source : 2eee0a90aa25cae44f5bd1fb5c4d60438a6ceb54
2016-08-26 15:01:52 +02:00
Patrick Brosset fc07e38ecd 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

--HG--
extra : rebase_source : f04bbf224ced7b93b4e5b0c42662731ecc58cb58
2016-08-24 10:29:49 +02:00
Eddy Bruel 9ccc615025 Bug 1295171 - Fix eslint errors from previous patch. r=me 2016-08-22 17:33:21 +02:00
Eddy Bruel f389d7ede3 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 1d6c2684eb Bug 1278625 - move SimpleStringFront to specs/string.js; r=ejpbruel
MozReview-Commit-ID: Ib11CZwL4pP

--HG--
extra : rebase_source : 85b35231efa1e987bd4742a7d9255fb19bfeb435
2016-08-16 11:01:33 -06:00