Commit Graph

316 Commits

Author SHA1 Message Date
Jan Odvarko
da7fcda025 Bug 1264671 - HTML replacement for Notification Bar. r=bgrins 2016-05-12 10:11:26 +02:00
Tom Tromey
439e22f050 Bug 1266826 - Turn Templater.jsm into a .js. r=jryans
MozReview-Commit-ID: 4T4YiOiU0oZ

--HG--
rename : devtools/shared/gcli/Templater.jsm => devtools/shared/gcli/templater.js
extra : transplant_source : N%7B%B7%E9%91%F7%CC%87%22%D0%1E%7BZ%05%16%ED%A3q%99F
2016-05-12 09:06:38 -06:00
Alexandre Poirot
a3cd47760d Bug 1268441 - Fix support of all non-letter characters. r=bgrins 2016-05-12 03:07:56 -07:00
Alexandre Poirot
0e659215da Bug 1268441 - Make Shift modifier only strict for letter characters. r=bgrins 2016-05-12 03:07:56 -07:00
Alexandre Poirot
62793e8163 Bug 1268441 - Convert inspector key shortcut to stop using XUL. r=bgrins 2016-05-12 03:07:56 -07:00
Alexandre Poirot
0bd5f270a3 Bug 1264625 - Ensure using only invisible modules when opening the browser toolbox. r=jryans 2016-05-12 03:07:56 -07:00
Patrick Brosset
e57616990f Bug 1069829 - 2 - Don't use cssPropertyIsValid in the rule-view UI, get the info from the server instead; r=tromey
- StyleRuleActors now parse declarations and send them within the form
- Each declaration also contains isValid flag
- Parsing is still done client side for old backends (back compat)
- Declarations are sent with the form, so updated every time the rule changes
- Also made StyleRuleActors send the declarations array for element styles, and made canSetRuleText true for this, since we can simply set the style attribute

MozReview-Commit-ID: 2nI4bRyvwwi

--HG--
extra : rebase_source : 0ccfaeb0edb0b1a60a7c0d741295d61ad66ac57e
2016-04-29 09:30:02 +02:00
Alexandre Poirot
5e04fa16fa Bug 1260493 - Introduce a module to handle key shortcuts in devtools. r=bgrins 2016-05-10 01:40:51 -07:00
Nikhil Handa
bbae341c72 Bug 1014533: Moved spectrum.css to /client/themes/ from /client/shared/widgets and changed the respective references made to it. r=helenvholmes
MozReview-Commit-ID: 5R1KAmzQ6Ss

--HG--
rename : devtools/client/shared/widgets/spectrum.css => devtools/client/themes/spectrum.css
2016-05-09 19:56:24 +05:30
Julian Descottes
b873e263bd Bug 1259834 - Create basic HTML tooltip API;r=bgrins
First implementation of HTML based tooltip to be used in devtools
instead of XUL panels. API is similar to the current API of
Tooltip.js

MozReview-Commit-ID: 8njiKBubLSj

--HG--
extra : rebase_source : 930bf7aef48e6c16d7a560d261e2bfd06fe02a63
extra : source : 09874a1e6f2c942a1f9de827fedd14da7e67a6e5
2016-05-04 14:44:57 +02:00
J. Ryan Stinnett
e1b9ca77b0 Bug 1270619 - Add missing imports instead of using globals. r=pbro
MozReview-Commit-ID: 28Xn7N9FSZr
2016-05-09 13:35:09 -05:00
Julian Descottes
d5cacd95b1 Bug 1181717 - add tooltip=aHTMLTooltip to Tooltip.js iframes;r=pbro
MozReview-Commit-ID: 8A28hbquBHB

--HG--
extra : rebase_source : e7a9e190ede67b87f9a45174573bc97d2e93d1f3
2016-05-06 19:55:02 +02:00
Jennifer Fong
2f312892d5 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00
Tom Tromey
5248d37066 Bug 1270139 - don't use inIDOMUtils.colorToRGBA in devtools; r=pbro
Bug 1266842 missed a spot using colorToRGBA.  Changing this revealed
that the hsltorgb algorithm was a bit off; so this patch changes it to
be a js port of NS_HSL2RGB.

MozReview-Commit-ID: A94qE5K7b2L

--HG--
extra : transplant_source : G%02I%E5%FC%BA%CBr%BBP%08%97%D1%01%C7d%B1%27%87%CE
2016-05-04 08:51:57 -06:00
Julian Descottes
df759845bc Bug 1270462 - part2: tooltip toggle callback can resolve(false);r=bgrins,jsnajdr
Previously, the targetNodeCb used in TooltipToggle had an inconsistent API. If
returning synchronously, "false" would prevent the tooltip from appearing.
However, if using a promise, resolving "false" would still show the tooltip.
It was needed to reject the promise in this case to prevent the tooltip from
being displayed.

This commit makes TooltipToggle always expect a consistent return value from
this callback, whether it is synchronous, or using promises.
- true -> show the tooltip on the event target
- DOM node -> show the tooltip on the provided node
- false (or falsy value) -> do not show the tooltip

MozReview-Commit-ID: 7PIPwBJxjWO

--HG--
extra : rebase_source : 279bab30f631a3a65a93b52226c6980210abf2f1
2016-05-05 20:25:08 +02:00
Julian Descottes
87fe331949 Bug 1270462 - part1: extract devtools tooltip toggle logic to separate file;r=bgrins,jsnajdr
The code used to make the tooltip appear/disappear when hovering targets
has been extracted to a separate class that can be shared between the
current Tooltip.js implementation and the upcoming HTMLTooltip.

MozReview-Commit-ID: UYSjPFeMYK

--HG--
extra : rebase_source : 5dcca2d5887ffc98fec621092640073a0909c13f
2016-05-06 14:54:30 +02:00
James Long
e87387e53d Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
Tom Tromey
bf4a51cc20 Bug 1270203 - make css-angle eslint-clean; r=nchevobbe
MozReview-Commit-ID: IfCMc8ewLDu

--HG--
extra : transplant_source : %3F%DB%40%99I%5B%81%F4%99%9Bo%CC%3F%08%E5d%C8%11x%A7
2016-05-05 12:26:24 -06:00
Tom Tromey
c2190eef2a Bug 1270203 - move css-angle.js to devtools/client/shared; r=nchevobbe
MozReview-Commit-ID: BN3lF5xT61Z

--HG--
rename : devtools/shared/css-angle.js => devtools/client/shared/css-angle.js
rename : devtools/shared/tests/unit/test_cssAngle.js => devtools/client/shared/test/unit/test_cssAngle.js
extra : transplant_source : %EF%2Bl%B2%F1%1A%1D%A2%ADc%01%7E%8E%81%AB%0E%DB4Rk
2016-05-05 12:21:17 -06:00
Tom Tromey
b266a392fe Bug 1265787 - Add javascript CSS lexer to devtools. r=pbro
MozReview-Commit-ID: BgbACHTTMtX

--HG--
extra : transplant_source : %0B%F5%A3%AE%D8U%AB%5D%DF%D4%8A%90%21%22%0E%C6%BDW%06%88
2016-04-29 11:21:22 -06:00
Jan Odvarko
87d50e8521 Bug 1263404 - Fix condition in hasChildren. r=jryans 2016-05-04 14:56:43 +02:00
Lin Clark
3fd6712363 Bug 1264702 - [rep tests] Add tests for window rep. r=Honza 2016-05-03 10:59:00 -04:00
Lin Clark
52a43340ea Bug 1264692 - [rep tests] Add tests for object-with-url rep. r=Honza 2016-05-04 17:54:00 -04:00
Nick Fitzgerald
d61cdcd35e Bug 1269891 - Add more documentation comments to the Tree component; r=jlongster 2016-05-04 16:43:48 -07:00
Julian Descottes
25f8d97318 Bug 1260419 - part2: do not hide inplace editor autocomplete popup when scrolling;r=pbro
MozReview-Commit-ID: W5N9tFCyOM

--HG--
extra : rebase_source : 516307dbc3d6142e107a10e9c3fb44ee93acc551
extra : histedit_source : d735e4b810f9648572dee5265b220dc659025814
2016-05-04 16:39:29 +02:00
Julian Descottes
c00e9f4fa4 Bug 1260419 - part1: ruleview shows more CSS suggestions, with better sorting;r=pbro
Usability changes to the ruleview autocomplete:
- max suggestions is now capped to 500 to make sure as many suggestions as possible
  as possible are displayed
- vendor-prefixed properties are moved to the end of the list
- !important is no longer the first suggested item

MozReview-Commit-ID: AOfHyqS3n8s

--HG--
extra : rebase_source : 5a4842974672bebc7427a546b4e4014201147465
extra : histedit_source : 0c008a8e7aedb60c2df0774977e54074702d555d
2016-04-07 00:43:30 +02:00
Tom Tromey
08f3ad3f7b Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-05-04 08:02:03 -06:00
Tom Tromey
71073210e9 Bug 1268974 - make css-parsing-utils eslint-clean; r=pbro
MozReview-Commit-ID: 4iPN37XMbIy
2016-05-04 07:57:33 -06:00
Carsten "Tomcat" Book
0ca90753b9 Backed out changeset 0c860fab34ea (bug 1263404) for causing test failures in browser_jsonview_filter.js 2016-05-04 12:28:03 +02:00
Carsten "Tomcat" Book
b64ae72562 Backed out changeset f54c4f5fd0ed (bug 1265787) 2016-05-04 12:27:37 +02:00
Tom Tromey
4383c1a8b1 Bug 1265787 - add javascript CSS lexer to devtools; r=pbro
MozReview-Commit-ID: BgbACHTTMtX

--HG--
extra : transplant_source : %A3iN%27%23%04g%91%06%2CsB%24%ABA%E9%81%D2%EA%8C
2016-04-29 11:21:22 -06:00
Jan Odvarko
099c9858d7 Bug 1263404 - Fix condition in hasChildren; r=jryans 2016-05-03 19:57:21 +02:00
Alexandre Poirot
8cbb062041 Bug 1265599 - Fix gcli toolbox button status when toolbox goes on and off. r=jwalker 2016-05-03 09:06:30 -07:00
Tom Tromey
8a9f366080 Bug 1266842 - replace rgbToColorName, colorToRGBA, isValidCSSColor in devtools; r=pbro
MozReview-Commit-ID: G5Zly0HPJuv

--HG--
extra : rebase_source : 85e0afd02cd676a2a7e0855a0b4956b7b9a2ac36
2016-04-28 08:46:19 -06:00
Tom Tromey
3ab72b1e0f Bug 1266842 - move css-color.js to devtools/client/shared; r=pbro
MozReview-Commit-ID: 9zS1Y4Ape2u

--HG--
rename : devtools/shared/css-color.js => devtools/client/shared/css-color.js
rename : devtools/shared/tests/unit/test_cssColor.js => devtools/client/shared/test/unit/test_cssColor.js
extra : rebase_source : fb9efd824bd025af2208b9d860f44ec67ece3de2
2016-04-28 08:41:40 -06:00
Lin Clark
01bbefc9c1 Bug 1264700 - [rep tests] Add tests for undefined rep. r=Honza 2016-05-02 10:02:00 +02:00
Aryeh Gregor
49d7e81abf Bug 1264270 - Parser should output attributes in source order, not reversed; r=hsivonen,bgrins 2016-05-01 15:15:26 +03:00
Carsten "Tomcat" Book
bba206d411 Backed out changeset 797e8190073f (bug 1265876) for memory leaks in browser_markup_mutation_02.js 2016-04-28 08:13:42 +02:00
Tom Tromey
ed07ccffa3 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-04-21 11:20:14 -06:00
Tom Tromey
f13377234d Bug 1265772 - don't use Services.console or Console.jsm in devtools; r=bgrins
MozReview-Commit-ID: Ax4EwhRVE0R

--HG--
extra : amend_source : 11297b555f1175a0be506e3ab7e72592cd3c2cd2
2016-04-19 14:05:35 -06:00
Julian Descottes
82e45d4470 Bug 1178462 - Cancel inplace editor autocomplete on window blur;r=gl
MozReview-Commit-ID: BI9LHtUKta

--HG--
extra : rebase_source : 8321f9df764f5e2faddcaaae9597e0ac35e99020
2016-04-27 09:55:18 +02:00
Jarda Snajdr
ba42a6a32a Bug 1205123 - Part 2: TreeWidget.js - set 'empty' attribute to parent when last child is removed. r=mratcliffe 2016-04-25 04:31:00 +02:00
Patrick Brosset
3b25491eef Bug 1069829 - 1 - Remove a usage of domUtils.cssPropertyIsValid in inplace-editor; r=tromey
cssPropertyIsValid was used only to find a compatible css unit when a number
was being incremented/decremented.
Because units are unlikely to be different between debuggees, a local DOM
node was used to validate the tested unit by applying and getting style on
the DOM node.

MozReview-Commit-ID: K0ldOgNRalg

--HG--
extra : rebase_source : e2ab2e0ad8db892da5cb7349de968d88a6c65d6b
2016-04-15 10:42:31 +02:00
Kris Maglione
13c6073298 Bug 1238310: Follow-up: Fix some timing issues in tests. r=bustage
MozReview-Commit-ID: BjKiNO1T5yN

--HG--
extra : amend_source : ae884bd9cd629853d6d2998ef4e460bc46f67107
2016-04-23 23:56:28 -07:00
Jan Odvarko
5493538baa Bug 1201475 - Implement DOM Panel; r=linclark, bgrins, helenvholmes
MozReview-Commit-ID: IMYSW7ObOSh
2016-02-09 23:23:29 +01:00
Carsten "Tomcat" Book
9292556dcd Backed out changeset f80643f3c767 (bug 1201475) for test failures in dt1 tests on a CLOSED TREE
--HG--
extra : rebase_source : a9e9b15a33b443986220cc274134009a19013818
2016-04-21 14:26:57 +02:00
Jan Odvarko
ac09fb665e Bug 1264312 - DOM panel support for Firebug Theme; r=ntim
MozReview-Commit-ID: Cg2oSr4bbfP
2016-04-13 17:35:42 +02:00
Jan Odvarko
3dd29ed55b Bug 1201475 - Implement DOM Panel; r=linclark, bgrins, helenvholmes
MozReview-Commit-ID: rNpieyIVNt
2016-02-09 23:23:29 +01:00
Gabriel Luong
9979406b4a Bug 1266100 - [ESLint] Fix ESLint issues in devtools/client/shared/widgets/Spectrum.js r=tromey 2016-04-20 11:50:44 -04:00
Jarda Snajdr
385638bb66 Bug 1261785 - Part 2: use shared-head.js for storage inspector tests. r=mratcliffe 2016-04-19 01:44:00 +02:00