Commit Graph

477 Commits

Author SHA1 Message Date
Michael Layzell
0f9ea8b283 Bug 1170531 - Disable clipboard menu commands correctly in non-(X)HTML documents; r=ehsan 2015-06-30 08:18:04 -04:00
Gabriel Luong
d3ea311566 Bug 1176054 - Fixed vertical of the pseudo class checkbox labels on Linux and Windows r=bgrins 2015-06-26 13:39:18 -07:00
Tim Nguyen
a098ea005e Bug 1165122 - Show Add New Rule button by default. r=bgrins 2015-06-25 16:00:29 -07:00
Gabriel Luong
44c8b16ca6 Backed out changeset aa1f2a978a64 2015-06-25 16:04:40 -07:00
Tim Nguyen
cf3d165b3d Bug 1165122 - Show Add New Rule button by default. r=bgrins 2015-06-25 16:00:29 -07:00
Gabriel Luong
25fdca5e38 Bug 1166959 - Allow the selector editor to advance the focus with tab, shift-tab and enter r=pbrosset 2015-06-25 15:51:52 -07:00
Gabriel Luong
410a2bf7c6 Bug 1175661 - Adding a new rule should use classList instead of splitting the className r=pbrosset 2015-06-18 09:06:56 -07:00
Patrick Brosset
e76d21130d Bug 1174407 - Collapse pseudo-elements section in rule-view by default; r=miker
This changes the default value for the devtools.inspector.show_pseudo_elements pref
to false so that the pseudo-elements section in the rule-view is collapsed by
default.
This section may now contain a lot more rules, especially when showing browser styles
and so it's better to have it collapsed by default.

This required to fix 2 tests that assumed the section was expanded by default.
browser_ruleview_pseudo-element_01.js was also cleaned up a bit to be more compliant
with our eslint rules.

--HG--
extra : rebase_source : 7b096a33d5f485760b2a6138cee0618f81e55e84
extra : histedit_source : e581601164303609176a7519192eb8ec925a9f5d
2015-06-18 10:10:53 +02:00
Gabriel Luong
df467ff0d5 Bug 1173005 - Fixed margin with the pseduoclass panel and left align the pseduoclass options. r=bgrins 2015-06-14 02:16:00 -04:00
Gabriel Luong
978033514e Bug 1172788 - Add tooltip for pseudo class toggle button in the rule view r=bgrins
--HG--
extra : commitid : 6uuIB5Xonry
2015-06-13 13:00:53 -07:00
Jarda Snajdr
f06270e506 Bug 1159922 - In rule view, update the computed values of a property after editing. r=pbro 2015-06-11 12:18:53 +02:00
Tim Nguyen
43c042a6e5 Bug 1173298 - Disable add rule button for non-element nodes and anonymous elements. r=bgrins
--HG--
extra : rebase_source : f623f72d4258fd41339241072ab70ce76f3a1abd
2015-06-10 11:42:00 +02:00
Gabriel Luong ext:(%2C%20Vikneshwar%20%3Clviknesh%40gmail.com%3E)
dbd3261916 Bug 1024693 - [rule view] Copy CSS declarations r=pbrosset 2015-06-10 15:08:27 -07:00
Tom Tromey
83666142fb Bug 1158288 - Show color swatch in drop-shadow function. r=pbrosset 2015-06-08 12:26:00 -04:00
Tom Tromey
f863d43adc Bug 1158288 - Minimal changes for eslint. r=pbrosset 2015-06-08 12:26:00 -04:00
Tim Nguyen
a0c7abbf78 Bug 1165032 - Make 'Add new rule' button add a new rule for currently emulated pseudo class locks. r=bgrins 2015-06-08 12:25:00 -04:00
Jennifer Fong
f1c41ff68f Bug 1163183 - Show HTML5 Forms pseudo elements in the rule view. r=bgrins 2015-06-05 14:48:00 -04:00
Gabriel Luong
574bcb9751 Bug 987365 - Add pseudo-class lock options to rule view r=bgrins 2015-04-23 21:35:00 -07:00
Kyle Zentner
95a87c9836 Bug 1170173 - Parse CSS 'contain' property. r=dholbert
--HG--
extra : rebase_source : 73e15a3049f7e69fdecd7b45157df25fca949b0c
2015-06-04 16:38:00 +02:00
Gabriel Luong
b6cdabf0fd Bug 1040199 - Adding a new rule for a node should handle invalid characters in the element's selector. r=pbrosset 2015-06-01 11:38:00 -04:00
Carsten "Tomcat" Book
0bc9390f36 Backed out changeset 08eaa27485c1 (bug 1166774) for linux e10s dt failures 2015-06-02 15:52:31 +02:00
Alexandre Poirot
785c0a55a5 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset 2015-06-01 18:21:46 +02:00
Patrick Brosset
8c2aaa42cf Bug 1166189 - ESLint configuration files for devtools; r=tromey
Adds a global .eslintrc file for all source files in /browser/devtools.
This file defines a set of global variables that are commonly used in
/browser/devtools code.
The files that import modules with Cu.import will need to define their
own globals as /* globals ... */ comments.
This file also defines the configuration for all the rules we want to
use.

This also adds a set of .eslintrc files, one per test directory in
/browser/devtools. Each of these files extend from one of 2 parent config
files: .eslintrc.xpcshell or .eslintrc.mochitest.
The parent config define the set of globals these types of tests have
access to (test runner functions, assertion functions, etc.).

Finally, this also adds .eslintrc files in /toolkit/devtools for code and
tests, which just extend from their counterparts in /browser/devtools.

--HG--
extra : rebase_source : d7b6f639634b64dc084d0835a5fb36c9720a87e7
2015-05-28 09:30:03 +02:00
Gabriel Luong
ab02bbc252 Bug 1139058 - Part 2: Unit test for adding unmatched rules to the rule view r=pbrosset 2015-05-27 17:36:20 -07:00
Gabriel Luong
fda3f71cf7 Bug 1139058 - Part 1: Allow unmatched rules to be added to the rule view r=pbrosset 2015-05-27 17:36:17 -07:00
Alexandre Poirot
4b3d1e9adf Bug 1167181 - Fix pending getOriginalLocation requests while running browser_computedview_matched-selectors_01.js. r=pbrosset 2015-05-25 22:51:45 +02:00
Phil Ringnalda
fba56c45f3 Back out b85bc83d5a15 (bug 1166774) for frequent failures in browser_ruleview_colorpicker-edit-gradient.js 2015-05-26 21:04:21 -07:00
Alexandre Poirot
8f996c93d5 Bug 1166774 - Wait for rule-view modifications before proceeding to next tests. r=pbrosset 2015-05-25 20:14:01 +02:00
Alexandre Poirot
d92d593f6d Bug 1167174 - Assert that custom highlighter do show the highlighter before proceeding. r=pbrosset 2015-05-25 18:54:08 +02:00
Julian Descottes
8db81fb95a Bug 965199 - "Copy Image Data-URL" in computed & rule views. r=pbrosset
This feature is about the inspector's rule view & computed view.
The context menu for an image URL (e.g. value of background-image property)
will contain a new entry : "Copy Image Data-URL". Clicking on it will fill the
clipboard with the image encoded as a data url.

The mechanism to hide/show the entry is inspired from the "Copy Color" menu
entry. When the context menu is displayed, check if the target is contained in
a node of type "image", using the getNodeInfo method available on both views.

If the image data cannot be retrieved for a given URL, the clipboard is filled
with an error message.

Modified rule-view getNodeInfo method in order to exclude from image nodes the
'source' links (such as 'style.css', displayed on the right of the rule-view).

Added a new mochitest that tests the feature on an element using a base64
background image.
2015-05-24 01:41:09 +02:00
Alexandre Poirot
b5cd5dd34f Bug 1167181 - Wait for computed view to be fully loaded in tests before proceeding to next one. r=pbrosset 2015-05-25 01:09:47 +02:00
J. Ryan Stinnett
a4136bcb21 Bug 1067325 - DevTools test fixes for view source in tab. r=pbrosset 2015-05-23 18:17:50 -05:00
Phil Ringnalda
d98af6849d Merge f-t to m-c, a=merge
--HG--
rename : browser/devtools/performance/modules/io.js => browser/devtools/performance/modules/logic/io.js
2015-05-23 14:28:07 -07:00
Patrick Brosset
6b0f771384 Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans
--HG--
extra : rebase_source : 95a9daf992adf418831ed362c07ac3402e0c5f5f
extra : histedit_source : 4e2d9d6fadc0da7bb7b29bad6dffd7576df6f16a
2015-05-22 20:50:01 +02:00
Gabriel Luong
fc8eec3ca8 Bug 1166344 - [rule view] Store and get the parsed property value displayed in the computed list when filtering styles in the computed list. r=bgrins 2015-05-21 14:47:00 -04:00
J. Ryan Stinnett
cf6686ca14 Backed out changeset a5e245f216b7 on CLOSED TREE (bug 1067325)
--HG--
extra : histedit_source : 96b040b151c109c4843ba62e352509a0ab76714a
2015-05-22 07:01:59 -05:00
J. Ryan Stinnett
cf719c969d Bug 1067325 - DevTools test fixes for view source in tab. r=pbrosset 2015-05-22 05:16:24 -05:00
Gabriel Luong
e39ce9480f Bug 1043835 - Add Rule on an element with multiple classes should include all the classes. r=pbrosset 2015-05-20 14:36:00 +02:00
John Pavlicek
9fb76a86b8 Bug 1164906 - Use EventUtils.sendString instead of looping and calling EventUtils.sendChar in DevTools tests. r=mratcliffe 2015-05-19 14:32:00 -04:00
Gabriel Luong
62545c1e78 Bug 1165380 - [rule view] Filter rules should also highlight stylesheet names. r=bgrins 2015-05-19 13:33:00 -04:00
Tom Tromey
d9710fe9c5 Bug 1154809 - rename and clarify last CSS regexp in rule-view.js; r=pbrosset 2015-05-19 08:55:59 -07:00
Tom Tromey
c82c12171e Bug 1154809 - remove dead css-parsing code; r=pbrosset 2015-05-19 08:55:57 -07:00
Alexandre Poirot
bcdcfd3253 Bug 1161072 - Prevent "no such actor" exception from style inspector during toolbox shutdown. r=pbrosset 2015-05-18 20:15:35 +02:00
Ryan VanderMeulen
33aa7cc49f Backed out 7 changesets (bug 1154809) for xpcshell failures.
Backed out changeset 056f69eee8db (bug 1154809)
Backed out changeset 13f93d585e42 (bug 1154809)
Backed out changeset 1e967727087e (bug 1154809)
Backed out changeset 1f3809022d39 (bug 1154809)
Backed out changeset 7e730e9cb6b3 (bug 1154809)
Backed out changeset 139959618516 (bug 1154809)
Backed out changeset ea59187953f6 (bug 1154809)
2015-05-17 19:54:49 -04:00
Tim Nguyen
64f650e19f Bug 1136101 - Add an "Add rule" button in the rules view toolbar. r=bgrins, ui-r=shorlander 2015-05-16 02:10:00 -04:00
Tom Tromey
412abec581 Bug 1154809 - Rename and clarify last CSS regexp in rule-view.js. r=pbrosset
--HG--
extra : rebase_source : fc11cc70ad7efd590732302791d380ea8748c51c
extra : histedit_source : 9892fd09dd39fcc5a82d76f286e3fb8c808a3aef
2015-05-14 05:35:00 -04:00
Tom Tromey
7fec4dca21 Bug 1154809 - Remove dead css-parsing code. r=pbrosset
--HG--
extra : rebase_source : 5de56b0d53f5e76d4bba51369b0f5d35d280d89e
extra : histedit_source : 447dd118274dd40388369c762f820bfbd5222484
2015-05-14 05:35:00 -04:00
Birunthan Mohanathas
3ffa8d565d Bug 1166840 - Remove unused document argument in uses of nsIClipboardHelper.copyString. r=ehsan 2015-05-21 21:49:30 +01:00
Tom Tromey
58078b80e7 Bug 1153305 - change css-tokenizer.js to use CSSLexer r=pbrosset
--HG--
extra : amend_source : 076c3f65cbbd635d39000f05e1ed6c34fc5ccd52
2015-05-13 11:37:51 -07:00
Tom Tromey
beb546cc3e Bug 930680 - allow inserting ";" in values in style inspector; r=pbrosset 2015-05-13 11:37:18 -07:00