Commit Graph

117 Commits

Author SHA1 Message Date
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
Julian Descottes
f41452912d Bug 1268466 - ruleview: create new rule <style> el in frame document;r=tromey
To create new rules, style elements are added to the content document.
For nodes located in an iframe, the style element should be added to the
ownerDocument of this particular node.

MozReview-Commit-ID: 7ynd7YU3WeL

--HG--
extra : rebase_source : 48e989e229b7972101c2761c881127244530273d
2016-04-30 16:41:54 +02:00
Carsten "Tomcat" Book
2666074aa0 merge mozilla-inbound to mozilla-central a=merge 2016-04-28 16:30:24 +02: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
J. Ryan Stinnett
0b07b90aa6 Bug 1263258 - Require space before paren for anonymous functions. r=pbro
MozReview-Commit-ID: 2F0j45Vxn2I
2016-04-27 09:06:15 -05:00
Julian Descottes
435717397c Bug 1266997 - fix test browser_rules_completion-new-property_multiline.js on winXP;r=pbro
MozReview-Commit-ID: FEpmTAPxb0a

--HG--
extra : rebase_source : e09afad472c24fa112615383f57b3e176cda5a42
2016-04-25 10:10:25 +02:00
Yoshi Huang
1f2c27b68e Bug 1263496 - Part 1: fix for @mozilla.org/nullprincipal;1 r=bholley
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=@mozilla.org/nullprincipal;1&redirect=true
2016-04-27 18:37:58 +08:00
Julian Descottes
8e94f2fd48 Bug 1245776 - part2: remove custom openInspector methods;r=gl
shared/test/head had custom methods to open the Computed & Rule view.
They did not register any test actor and could be called several times
in the same test.

In order to reuse the openInspector method from inspector/test/head, the
tests have been modified.
We are moving from
openRuleView() -> do rule view tests -> openComputedView() -> do computed view tests
to
openInspector() -> select rule view -> do rule view tests -> select computed view -> do computed view tests

A bit more verbose for the tests themselves, but this will be useful when
migrating the shared tests to using the testActor.

MozReview-Commit-ID: 94cOqhPICyI

--HG--
extra : rebase_source : f7892af19b78ecdbb759fb21d17920f0f6e0f4c6
2016-04-20 15:47:22 +02:00
Julian Descottes
fb695be31f Bug 1245776 - part1: include inspector/test/head in shared/test/head;r=gl
Include inspector/test/head in shared/test/head and remove the redundant functions.
Comparing with markup/test/head and computed/test/head, some functions were also
duplicated and have been moved up to inspector/test/head or shared-head.

Logic for opening the inspector will be moved in part2.

MozReview-Commit-ID: 5EIalpbf3cf

--HG--
extra : rebase_source : 83fced672cf2da515b32fa5f1f85b3b12a4ffe5c
2016-04-20 11:40:02 +02:00
Julian Descottes
44b0ec5883 Bug 1258114 - use invisible borders to drag devtools splitters on both sides;r=bgrins
Devtools splitters now have a clickable area on both sides of the splitter.
The previous layout provided a 3px clickable area (2px empty content + 1px
visible border).

The new layout uses invisible borders on both sides and a visible (clipped)
content. New draggable areas:
- side splitters : 1px left + 1px splitter + 4px right
- horizontal splitters : 2 px top + 1px splitter + 2px bottom

Variables are defined in splitters.css to adjust these settings.
Modified two test helpers opening context menus: the click should be
performed with a slight offset in order to avoid clicking on the splitter.

MozReview-Commit-ID: 94uFZoIBL7B

--HG--
extra : rebase_source : 55e6cb0f8f2ecbe1ae27ef9490925edfab7d62ce
extra : source : 4d5b0cdb72fe52f843c61a5df8f6b8ed35758be8
2016-04-15 12:36:17 +02:00
Carsten "Tomcat" Book
06ed529e31 Backed out changeset 4d5b0cdb72fe (bug 1258114) for m-oth test failures 2016-04-18 10:24:06 +02:00
Julian Descottes
93cda884fb Bug 1258114 - use invisible borders to drag devtools splitters on both sides;r=bgrins
Devtools splitters now have a clickable area on both sides of the splitter.
The previous layout provided a 3px clickable area (2px empty content + 1px
visible border).

The new layout uses invisible borders on both sides and a visible (clipped)
content. New draggable areas:
- side splitters : 1px left + 1px splitter + 4px right
- horizontal splitters : 2 px top + 1px splitter + 2px bottom

Variables are defined in splitters.css to adjust these settings.
Modified two test helpers opening context menus: the click should be
performed with a slight offset in order to avoid clicking on the splitter.

MozReview-Commit-ID: 94uFZoIBL7B

--HG--
extra : rebase_source : 8683e8700c83feae6bddc869cacda03b156a9f91
extra : amend_source : 10cdeed511c02a907e99b74295fe25a3ad623030
2016-04-15 12:36:17 +02:00
Tom Tromey
83256f9761 Bug 1241046 - Find inherited entry in modifySelector2. r=pbro
MozReview-Commit-ID: K0orZj2Revc

--HG--
extra : transplant_source : %2A%E2%AE%0FC%1E%CC%29a%ECq%98N%F4%C8%F0%7E%BB%A1%85
2016-01-22 13:12:58 -07:00
Tom Tromey
0d15501acc Bug 1235603 - Handle invalid authored CSS in rule view. r=pbro
MozReview-Commit-ID: 5j8dqND8DeR

--HG--
extra : transplant_source : %86%B0dLK%D6%DD%DF%EA%93U/%D9%7F%ED%95%8D%B3i%A6
2016-04-13 08:20:30 -06:00
Nicolas Chevobbe
722d6431d5 Bug 1263439 - Remove "blob:" from stylesheet URLs created with URL.createObjectURL; r=pbro
There was an error thrown in the stylesheet.js `dirname` function because of
`this.safeURL` being like "blob:XXX", and thus not being valid for `Services.io.newURI`.
Removing the "blob:" part of the safeUrl before calling the `dirname` function
resolves the bug.

MozReview-Commit-ID: 9uth6vyAR2u

--HG--
extra : transplant_source : %1F%14%BA%13%8A%FC9%22%E5%F4%F8%B7%E93%DF%24%88G7R
2016-04-10 15:02:48 +02:00
Carsten "Tomcat" Book
f66f4e65c7 Backed out changeset d6a124bce670 (bug 1263439) for eslint failures 2016-04-13 12:50:10 +02:00
Nicolas Chevobbe
1d446e754b Bug 1263439 - Remove "blob:" from stylesheet URLs created with URL.createObjectURL; r=pbro
There was an error thrown in the stylesheet.js `dirname` function because of
`this.safeURL` being like "blob:XXX", and thus not being valid for `Services.io.newURI`.
Removing the "blob:" part of the safeUrl before calling the `dirname` function
resolves the bug.

MozReview-Commit-ID: 9uth6vyAR2u

--HG--
extra : transplant_source : %82%09%7D%9F%0E%8F%B4%BA%A6%22%E3%B1%98%ADN%22%5B%00q%B2
2016-04-10 15:02:48 +02:00
Dave Townsend
fc4c4ab84a Bug 1257246: Update devtools for eslint 2. r=pbro
ESLint 2 now flags anonymous generator functions according to
generator-star-spacing. Most of the changes here are correcting that.

MozReview-Commit-ID: 9xg2Gmlaz94

--HG--
extra : rebase_source : e6db0fd0ef477cd4fd2196b1036783f0974c586b
extra : histedit_source : 03eea033884969cc2a340316377318b0487ebdf2
2016-04-05 11:31:19 -07:00
Patrick Brosset
01d7e9bf57 Bug 1261715 - Avoid promise rejections in browser_rules_add-rule_05.js; r=jryans
This test simulates a context click in the rule view and selects the
"add rule" item in order to add a new rule.
Adding a rule triggers a ruleview-changed event, and so this test should
start listening for this event before triggering the action, which it
did not do.

MozReview-Commit-ID: BPO8Fgwsq5M

--HG--
extra : rebase_source : e975e57148850c41cfae4d9748809d1f6672aa84
2016-04-07 11:35:48 +02:00
Julian Descottes
d40b2c8d17 Bug 1261317 - part2: prevent autocomplete on arrow keys in multiline editor;r=pbro
Check if the CSS inplace editor is currently using several lines
to display its value. When using several lines, prevent increment,
decrement and autocomplete features.

The autocomplete can still be triggered by typing a value at the end
of the input (or before a space). When the autocomplete popup is
opened, UP/DOWN still allow to cycle through the suggestions.

MozReview-Commit-ID: DapCdhjx444

--HG--
extra : rebase_source : e7c6e8a53d29b79174913c011e1ac07c39431238
2016-04-01 17:26:58 +02:00
Chris Manchester
f7a1b3fb60 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Tobias Schneider
6c7272d154 Bug 1209273 - Part 3: Make CSS autocompletion tests pass. r=gl 2016-04-01 22:37:49 -07:00
Julian Descottes
7f0d26fa31 Bug 1143742 - part5: fix eslint error in inspector ruleview test;r=bustage
MozReview-Commit-ID: 1W2xTQdlkaS

--HG--
extra : rebase_source : 86931078b22f249fc240b092340cd2696dc619eb
2016-04-01 12:12:21 +02:00
Julian Descottes
ed5dcd666f Bug 1143742 - part4: add textarea to valid targets when copying;r=gl
When opening the context menu (and displaying the "copy" menu entry)
or when receiving a copy event, we now check if the current target
is a textarea. (multiline inplace editor relies on textarea)

Modified existing test to check this new use case.

MozReview-Commit-ID: Cgm67JCdN4c

--HG--
extra : rebase_source : 4955f910e5428b92587b408ffd1b62cd668faf2a
2016-03-30 16:39:33 +02:00
Julian Descottes
93a3e46f97 Bug 1143742 - part2: multiline inplace-editor should support a maxWidth option;r=gl
The inplaceEditor now supports a maxWidth configuration option which can either
be a number or a method returning a number. This maxWidth will be applied to the
hidden element used in order to autosize the input.

MozReview-Commit-ID: JTiCQ3HK5bn

--HG--
extra : rebase_source : dcf7ba4a897cd77b43b333ec3b5633dc9043e51d
extra : source : a93558488cf7fc9f54165bd5f98055e8a3901dac
2016-03-31 00:59:16 +02:00
Julian Descottes
2748597a5d Bug 1143742 - part1: multiline inplace editor: cleanup existing tests;r=gl
In preparation for using a multiline editor for property values, tests
need to be updated :
- some tests used the "input" selector, which will no longer work with a
  textarea
- some tests are relying on EventUtils.sendChar to send keys such as
  "VK_RETURN". Doing so also applies the shift key modifier, which has
  a specific behavior with multiline editors

MozReview-Commit-ID: HkFxH3Go49E

--HG--
extra : rebase_source : 58ea640905b4acc2574c47b2bc87fcf0780db59b
2016-03-02 17:11:09 +01:00
Nicolas Chevobbe
3976954edf Bug 1259559 - Units cycling with shift+click persists value in Style editor. r=miker
Add an 'unit-change' event fired when shift+click on color and angle swatches.
Add a listener on this event in text-property-editor.js to call the same function
that's called when tooltip edit is commited to persist the new unit.
Edit some tests to adapt to this new behaviour and create some tests to make sure
the value obtained via shift+click are actually persisted.

MozReview-Commit-ID: CcF4oiBPEzT

--HG--
extra : transplant_source : %1B%40%A24%EDW.%C5%96%C8m%3C%1F4%DA%F78%D1%26%8B
2016-03-28 21:01:32 +02:00
Brian Grinstead
043c9cadc3 Bug 1260235 - Only accept ctrl+f in computed and rule view if it happened in the relevant container;r=gl
MozReview-Commit-ID: 4kMiWcqTra
2016-03-29 14:25:02 -07:00
Julian Descottes
a360bcdbef Bug 1168246 - part2: fix tests relying on CSS suggestions order;r=pbrosset
MozReview-Commit-ID: 9BEajbI665d

--HG--
extra : rebase_source : cbd8521b2356b976999f18ce301d8967b4ecac16
2016-03-27 18:24:43 +02:00
Patrick Brosset
b1f15ea5e4 Bug 1255787 - Do not assume sourceMap appears only in external stylesheets; r=gl
MozReview-Commit-ID: A92DdoAFDGT

--HG--
extra : rebase_source : 1b7b8d6391f502fd01d02bb62e87e18cbcf0798f
extra : histedit_source : 6516614380d5916f7f92c220aa0a21d3deaebcf8%2Ccfcf797921e7b90753d33ca9a48c8829ad5bbf84
2016-03-29 21:30:11 +02:00
Nicolas Chevobbe
c123351274 Bug 1250835 - Display swatch for angles in the rules panel. r=miker
Add a swatch before angle values in the rules panel and allow cycling
through angle units with shift+click (like we already do for color units).

MozReview-Commit-ID: CWhoUQTkP1G

--HG--
extra : transplant_source : %5B%E5%AD%22%D2%20uk%07%EE%A9%E4%91YS%B3R%C3%DF%21
2016-03-08 23:04:54 +01:00
Julian Descottes
f25a8e9101 Bug 1253785 - fix unhandled promise rejections: wait for 2nd ruleview-changed;r=pbrosset
As commented in the test, using createNewRuleViewProperty with "width:"
will actually trigger two ruleview-changed events :
- one when focusing the property-name input
- one when focusing the property value input (which is automatically done when hitting
  return in this case, since we only entered a property name)

MozReview-Commit-ID: GjJnwDr3ON6

--HG--
extra : rebase_source : d4f22915dfdd65d55b23a09f797402944870f017
2016-03-09 15:44:13 +01:00
Andrew Liu
02937e8dd8 Bug 1224492 - Modify devtools client inspector to disable commented properties when they are pasted into the rule editor. r=tromey 2016-03-10 05:29:00 -05:00
Ryan VanderMeulen
e41e37efae Bug 1250058 - Skip browser_inspector_initialization.js on Linux debug e10s as well. 2016-03-05 22:31:02 -05:00
Alexandre Poirot
fc8a7748f7 Bug 1247203 - Stop exporting useless symbols of of devtools/client/main. r=jryans 2016-03-04 07:51:11 -08:00
Patrick Brosset
3dc525e814 Bug 1252099 - Remove usage of getNode and content in markupview tests; r=ochameau
MozReview-Commit-ID: F58e1CcwHNs

--HG--
extra : rebase_source : 6492997a05363bc88e00d0726a60f7dfe1bb8125
2016-03-03 16:35:21 +01:00
Gabriel Luong
f102846020 Bug 1252640 - Fix overlapping borders in the ruleview-header r=pbro
MozReview-Commit-ID: JdQBKSQ96Rs
2016-03-03 12:55:14 -08:00
Wes Kocher
abdd8279a7 Backed out changeset 6fe81a6dbaa8 (bug 1252640) because browser_rules_pseudo_lock_options.js is still busted
MozReview-Commit-ID: ENmjcTCS30T
2016-03-03 12:43:43 -08:00
Gabriel Luong
bb988f228f Bug 1252640 - Fix overlapping borders in the ruleview-header r=pbro 2016-03-03 13:58:12 -05:00
Wes Kocher
a6ffd12fa3 Backed out changeset 48199a0c1e54 (bug 1252640) for browser_rules_pseudo_lock_options.js bustage
MozReview-Commit-ID: 9rIM5pH3kJZ
2016-03-03 10:40:12 -08:00
Gabriel Luong
aa8686e0d3 Bug 1252640 - Fix overlapping borders in the ruleview-header r=pbro 2016-03-03 09:54:41 -05:00
Carsten "Tomcat" Book
de8d151c26 merge mozilla-inbound to mozilla-central a=merge 2016-03-02 15:54:19 +01:00
Alexandre Poirot
7c4184c262 Bug 1252346 - Fixes missing Services definition or tweaked eslint to figure out where does it comes from. r=jryans 2016-03-01 14:00:28 -06:00
Ryan VanderMeulen
496caa4fef Bug 1250058 - Skip a couple leak-prone inspector tests on OSX e10s as well. 2016-02-29 18:14:56 -05:00
Patrick Brosset
6cb7252111 Bug 1247263 - Round 2 of fixing unhandled rejected promises in ruleview tests; r=tromey
MozReview-Commit-ID: 1sSlXBepsB0

--HG--
extra : rebase_source : 1d3d9690fd58fb6dcf64c11d24e9177f1dc34ee1
extra : histedit_source : 3e9bcf06d231a60d8c81fc2caf8f02733fb7d226%2C085361c13a6fd8dbd0bdf7bd201b2896b3179360
2016-02-27 21:03:23 +01:00
Patrick Brosset
4d0651c987 Bug 1249888 - try/catch SourceMapConsumer to avoid empty rule-view when source map is invalid; r=gl
--HG--
extra : rebase_source : 744840ba5bb668baf761de0ee1af33395a64aeb4
extra : histedit_source : 157aa5a266678390d2244c790fc44869c3a9f7b7%2C5ea5da38fe59c2612c8fcec8790350732837c9fb
2016-02-27 20:39:21 +01:00
Alexandre Poirot
d3b05e8c5a Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00