Commit Graph

337 Commits

Author SHA1 Message Date
Julian Descottes
b8735e8a36 Bug 1267401 - part1: Rename HTMLTooltip properties for backward comp with Tooltip;r=bgrins
Rename document -> doc for consistency and parent to panel
for test compatibility.

MozReview-Commit-ID: KHT7plLtNQc

--HG--
extra : rebase_source : 3860dcef5daac2d4b2c4475043e85b7548b255a9
extra : intermediate-source : af95214eecb280ed4ad858ce6b62a3fe5d3f6a7f
extra : source : 887cbcaf18e70bc12a51b8dbdb1e9fe4aee44385
2016-05-23 22:49:21 +02:00
Carsten "Tomcat" Book
cb4337c62c merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_oop.html => dom/presentation/tests/mochitest/file_presentation_non_receiver.html
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe_oop.html => dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe.html
rename : dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe_oop.html => dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html
2016-05-24 14:52:23 +02:00
Wes Kocher
619449ef38 Followup to hopefully fix browser_se_first-run.js after bug 1270994 landed rs=gijs
--HG--
extra : source : ca0d04ce03040d726cd96d112761e79317587c18
2016-05-23 13:57:49 -07:00
Tom Tromey
50ab4ddfdd Bug 1270994 - Fix ESLint errors in devtools/client/shared/*.js; r=jryans
MozReview-Commit-ID: 1od43gBnUq1
2016-05-19 08:35:45 -06:00
Ryan VanderMeulen
4069dcd34f Backed out 3 changesets (bug 1268450) for browser_keybindings_03.js timeouts.
Backed out changeset 466d5c96f439 (bug 1268450)
Backed out changeset 9d79d99a3e18 (bug 1268450)
Backed out changeset 9090f1b3c2e4 (bug 1268450)
2016-05-19 22:48:37 -04:00
Alexandre Poirot
9274a23b5b Bug 1268450 - Fix 'Plus' key shortcut support. r=jryans 2016-05-19 16:13:00 -04:00
Alexandre Poirot
f4727ff5fd Bug 1268450 - Accept loose digits for azerty keyboards. r=jryans 2016-05-19 16:13:00 -04:00
Alexandre Poirot
1915a59e3c Bug 1268450 - Convert toolbox key shortcut to stop using XUL. r=jryans 2016-05-19 16:13:00 -04:00
Tom Tromey
0d398a243a Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ

--HG--
rename : toolkit/modules/Task.jsm => devtools/shared/task.js
extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett
30b2b7ce44 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
Julian Descottes
53b4fe6b08 Bug 1273827 - Wait for reflow after showing HTMLTooltip in tests;r=ochameau
MozReview-Commit-ID: 1qKKXO8iRyD

--HG--
extra : rebase_source : 008930709478b00608d588d601f30445626ff259
2016-05-16 15:06:42 +02:00
Nicolas Chevobbe
a3ef58dc7b Bug 1271191 - Add support CSS #rgba and #rrggbbaa color syntax in the inspector. r=miker
Add support for both syntax in CssColor
Add support in value increment
Edit several tests to make sure we handle these syntaxes all across the inspector (display swatch,
color increment, unit switching, …).

MozReview-Commit-ID: FLw9va3i8H0

--HG--
extra : transplant_source : m%24%C9%E1%EFQ%18%C3%0C%8F%C6%DB%E8%E5%D2%7D%A8c%5Bl
2016-05-10 13:54:08 +02:00
Tim Nguyen
75f63a4458 Bug 1273653 - Fix ESLint errors in devtools/client/shared/(components|redux). r=tromey
MozReview-Commit-ID: 5hY0uII6wf8
2016-05-17 23:20:14 +02:00
Oriol
f89810963d Bug 1273235 - When inspecting a property, check if the descriptor is undefined before attempting to access its value r=ejpbruel 2016-05-17 12:04:23 -07:00
Alexandre Poirot
9f0ddbd261 Bug 1266828 - Convert ViewHelpers.jsm into a module. r=tromey
--HG--
rename : devtools/client/shared/widgets/ViewHelpers.jsm => devtools/client/shared/widgets/view-helpers.js
2016-05-16 03:13:30 -07:00
Phil Ringnalda
2be4cee4d3 Merge f-t to m-c, a=merge 2016-05-14 13:04:50 -07:00
L. David Baron
55b6b3268e Bug 1111440 - Replace rest of -moz-/Moz prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g

The diffs for the following files:
  layout/style/nsCSSPropAliasList.h
  layout/style/test/property_database.js
  layout/style/test/test_value_computation.html
were then manually removed from the patch.

MozReview-Commit-ID: 8fbYnlZcn9U
2016-05-14 00:00:18 -07:00
Jan Odvarko
c04a4573d7 Bug 1264671 - Browser test for NotificationBar. r=bgrins 2016-05-12 10:21:35 +02:00
Jan Odvarko
a8add0e185 Bug 1264671 - Mochitests for NotificationBar. r=bgrins 2016-05-10 13:59:35 +02:00
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