Commit Graph

10948 Commits

Author SHA1 Message Date
Brian Grinstead
00d813243a Bug 1469341 - Remove the XUL wrapper document for the Browser Console;r=nchevobbe
MozReview-Commit-ID: KCZ6u5byQuO

--HG--
extra : rebase_source : 2d1495576ca2c7a956a2327cff2f9fbc8bbb0010
2018-07-18 07:23:22 -07:00
Nicolas Chevobbe
2fef8acb19 Bug 1473923 - Autocomplete console commands; r=yulia.
MozReview-Commit-ID: LpbIzheFmeT

--HG--
extra : rebase_source : 2e40528ff43b76571ec59ce8af591cd71c828251
2018-07-13 08:54:23 +02:00
Julian Descottes
9ac50afe02 Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC

--HG--
extra : rebase_source : faeb2d7e4a207f8380082e0070599a130b32098f
2018-07-18 18:01:29 +02:00
Margareta Eliza Balazs
92460b7c21 Backed out changeset 627f2adec73b (bug 1476647) for causing failures in devtools/client/storage/test/browser_storage_overflow.js 2018-07-19 09:05:35 +03:00
Julian Descottes
01f86f2558 Bug 1449972 - part3: Add shadowdom support to getCssPath, getXPath;r=bgrins
MozReview-Commit-ID: 1NqIOSqY4Gg

--HG--
extra : rebase_source : fb937b4fa64b6db26df6742ac0e3229394da340d
2018-07-17 14:20:54 +02:00
Julian Descottes
799e9aa4fd Bug 1449972 - part2: Move getCssPath and getXPath to toolkit css-selector;r=bgrins
getCssPath and getXPath will need to reuse the same logic as findCssSelector
to handle shadowDOM support.

This patch moves the methods next to findCssSelector, in toolkit's css-selector.js
to avoid duplicating logic between devtools/ and toolkit/

The content of the methods is stricltly the same, except for the Node global
not available in css-selector.js. Instead we use `ele.ownerGlobal.Node` here.

MozReview-Commit-ID: J0KuORWLUoO

--HG--
extra : rebase_source : 26a1801670e5554577f0f77b62667527f7b497bb
2018-07-18 07:33:21 +02:00
Julian Descottes
21e5470305 Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC

--HG--
extra : rebase_source : 54909fafa6df368cb48951aec59f006630504951
2018-07-18 18:01:29 +02:00
Margareta Eliza Balazs
41141f916a Backed out 3 changesets (bug 1449972) for ES lint failure in /builds/worker/checkouts/gecko/devtools/shared/inspector/css-logic.js on a CLOSED TREE
Backed out changeset 952a605a3b21 (bug 1449972)
Backed out changeset c3379a87de69 (bug 1449972)
Backed out changeset 5f678f861c4d (bug 1449972)
2018-07-19 08:31:56 +03:00
Julian Descottes
ed0b0ef223 Bug 1449972 - part3: Add shadowdom support to getCssPath, getXPath;r=bgrins
MozReview-Commit-ID: 1NqIOSqY4Gg

--HG--
extra : rebase_source : 66425564ef9efec7ff7a599d80da3de6d1c64269
2018-07-17 14:20:54 +02:00
Julian Descottes
6ec50112df Bug 1449972 - part2: Move getCssPath and getXPath to toolkit css-selector;r=bgrins
getCssPath and getXPath will need to reuse the same logic as findCssSelector
to handle shadowDOM support.

This patch moves the methods next to findCssSelector, in toolkit's css-selector.js
to avoid duplicating logic between devtools/ and toolkit/

The content of the methods is stricltly the same, except for the Node global
not available in css-selector.js. Instead we use `ele.ownerGlobal.Node` here.

MozReview-Commit-ID: J0KuORWLUoO

--HG--
extra : rebase_source : d6fab834be4fb6ad9ba1cd73acf960cf0fe0d4d5
2018-07-18 07:33:21 +02:00
Mantaroh Yoshinaga
973be84445 Bug 1476502 - Remove dotted style focusring from TabBar. r=bgrins
This patch will remove the dotted style focusring from TabBar. We have same tab
bar in the toolbox, but this tab has removed this style already.
(For detail, see bug 1444793)

MozReview-Commit-ID: CyazZkvKR6H

--HG--
extra : rebase_source : 821e606f54bfceba124af9d9c2585296f2ebc40e
2018-07-18 14:02:04 +09:00
Cosmin Sabou
8781fe39fe Backed out changeset 7f8cd8745c66 (bug 1473923) for devtools failures on browser_jsterm_autocomplete_commands. CLOSED TREE 2018-07-18 22:32:24 +03:00
Nicolas Chevobbe
ef2525da47 Bug 1473923 - Autocomplete console commands; r=yulia.
MozReview-Commit-ID: LpbIzheFmeT

--HG--
extra : rebase_source : 72e6d56be5dda53fb841775ea7df67e488a7d3fe
2018-07-13 08:54:23 +02:00
Cosmin Sabou
099320d8ad Merge mozilla-central to autoland. a=merge 2018-07-18 20:21:59 +03:00
Cosmin Sabou
88199de427 Merge mozilla-inbound to mozilla-central. a=merge 2018-07-18 20:19:59 +03:00
Nicolas Chevobbe
02c427558a Bug 1475165 - Fix inspector tests; r=gl.
Adapt inspector test to the new order of the search results.
This was an easy task since we were already flipping the
expected results to make the test more readable (which makes
me think that this is the "natural" order).

MozReview-Commit-ID: DpxW2O1eOi4

--HG--
extra : rebase_source : 8d579c94bdaaee396a29b4674d4f9764bcadbb5d
extra : source : 96c82bb5fa591470483263aea55fa33a10192afc
2018-07-12 16:25:06 +02:00
Nicolas Chevobbe
d5d42a661f Bug 1475165 - Show inspector search results from top to bottom; r=gl.
For some reason, we were flipping the search result, which
was not ideal in the inspector. This patch changes this to
show results in the same order the server return them.

MozReview-Commit-ID: Ak9FnrrW8z5

--HG--
extra : rebase_source : 0846cda90ac45c70a9ee5cd49f64f1894863ec5c
2018-07-17 10:05:04 +02:00
Nicolas Chevobbe
efb1295368 Bug 1475165 - Adapt webconsole tests to new autocomplete behavior; r=Honza.
Some tests needed to be adapted to the new alpa-sorted
autocomplete popup.

MozReview-Commit-ID: 3GOAJqH0CvD

--HG--
extra : rebase_source : ca9bafa6e78f2a1609618e5c258db0358a006300
2018-07-17 08:37:33 +02:00
Nicolas Chevobbe
130eb0cf73 Bug 1475165 - Do not reverse completion results in webconsole; r=Honza.
The autocompletion results were flipped in order to have them in reverse
order since the popup was displayed at the top of the input.
We do not want to do that anymore because of two reasons:
- I couldn't find any example in the wild doing the same thing, thus
we were making the user switch their habit to use it
- Bug 1136299 will make it so that the popup could be displayed either
at the top or at the bottom of the caret. We shouldn't have different
sorting for those different cases as it would make the popup even
harder to use.

MozReview-Commit-ID: CAzsKIaeKgV

--HG--
extra : rebase_source : 967e43e5d86f7f35945ba5742c1a25823a2d0064
2018-07-13 17:06:49 +02:00
Nicolas Chevobbe
405cda88ac Bug 1475165 - Make autocomplete always select first item by default; r=Honza.
Previously, we were trying to select the item the closest
to the input used for the autocompletion. It was causing
some weird behaviour when the popup wasn't displayed at
the expected position.
Always selection the top-most item seems will avoid those
cases, bring us consistency across the toolbox as well as
with other tool having autocompletion (code editors, Chrome, …).
The autocomplete-popup test is modified to assert the new behavior.

MozReview-Commit-ID: DhNovX51KRO

--HG--
extra : rebase_source : cfb2ebaaed23ce5c51ef9d8f447f3fabe0a04a49
2018-07-13 16:52:37 +02:00
Margareta Eliza Balazs
42e6813f3f Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-18 12:42:29 +03:00
Margareta Eliza Balazs
fb3762edac Merge inbound to mozilla-central. a=merge 2018-07-18 12:33:29 +03:00
Tiberius Oros
d385db1af9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-18 00:57:55 +03:00
Tiberius Oros
d701ae940f Merge inbound to mozilla-central. a=merge 2018-07-18 00:55:33 +03:00
Paolo Amadini
56d700c398 Bug 1461793 - Remove the "popup-base" binding and import the "popup.css" file as a document stylesheet. r=bgrins
The new "tooltip.css" file allows styling the default tooltip, which is created as native anonymous content.

MozReview-Commit-ID: ADWsFTNPfhw

--HG--
rename : toolkit/themes/linux/global/popup.css => toolkit/themes/linux/global/tooltip.css
rename : toolkit/themes/osx/global/popup.css => toolkit/themes/osx/global/tooltip.css
rename : toolkit/themes/windows/global/popup.css => toolkit/themes/windows/global/tooltip.css
extra : rebase_source : bd79b86fb44ac0dc77d0d21fdc003105da6f43eb
extra : intermediate-source : a06a200098013d5dbc42c2431f845ca1dd8b0b76
extra : source : 4d511f7fc5b5c16fdfea91242dea6086cd57c8c3
2018-07-17 19:04:43 +01:00
Gabriel Luong
c75326a930 Bug 1474364 - Clear the stored flexbox highlighter shown before emitting the event. r=pbro 2018-07-17 12:36:47 -04:00
Cristina Coroiu
cdb074baf3 Bug 1468669 - disable devtools/client/debugger/test/mochitest/browser_dbg_server-conditional-bp-01.js for frequent failures on Linux r=jmaher 2018-07-17 08:38:00 +03:00
Jason Laster
ee6151e531 Bug 1476123 - Update Debugger Frontend v72. r=dwalsh
MozReview-Commit-ID: GFb5n8CDtLR
2018-07-17 11:27:59 -04:00
Logan F Smyth
8a743456fc Bug 1475677 - Do not return a promise from dbg.onXX functions to avoid resumption value error. r=jlast
MozReview-Commit-ID: 7Z3Oordhtsf

--HG--
extra : rebase_source : 4a0ce6e6e99f65c95abe68969938402b21dbe068
2018-07-13 13:25:56 -07:00
Sebastian Hengst
4eef1b3905 Bug 1476262 - update moz.build meta data for inspector components. r=pbro
MozReview-Commit-ID: 6uNUVJw9s8o

--HG--
extra : rebase_source : 07b03403dc7ee4ab16c56e4a22be34708d377a05
2018-07-17 15:25:07 +03:00
Dão Gottwald
36e378f88a Bug 1475537 - Clean up addTab parameter handling. r=mikedeboer
MozReview-Commit-ID: JF9hNLmd3bF

--HG--
extra : rebase_source : 3c1368c275719ec6d4812950154b6c266af4f98a
2018-07-17 13:54:23 +02:00
Julian Descottes
28776da332 Bug 1449968 - Add support for Inspect Element in Shadow DOM;r=bgrins
MozReview-Commit-ID: HhwyDMyZe1k

--HG--
rename : devtools/client/inspector/markup/test/browser_markup_shadowdom_pick_nested.js => devtools/client/inspector/markup/test/browser_markup_shadowdom_nested_pick_inspect.js
extra : rebase_source : 4276e3f88251075fd41d1e7f41a2f229be905f99
2018-07-05 18:48:24 +02:00
Brian Birtles
8ab6ee61ba Bug 1471814 - Add a preference for {Document,Element}.getAnimations(); r=bz,hiro
This is probably the last thing we will ship since it needs the most spec work.

MozReview-Commit-ID: LLmDBLCsCBJ

--HG--
extra : rebase_source : c06752c9201a9ede87e1ac200ab12577bf784ce6
2018-07-14 09:23:03 +09:00
Brian Birtles
fc657410ff Bug 1471814 - Add a preference for implicit keyframes; r=bz,hiro
This preference controls whether authors are allowed to specify animations
without a 0% or 100% keyframe.

We intend to ship this soon but this preference acts as a safeguard in case we
discover we need to disable it.

This feature is very convenient and commonly used so this patch ensures it is
always enabled for system content.

MozReview-Commit-ID: BHTsuS2xO61

--HG--
rename : dom/animation/test/mozilla/file_disable_animations_api_core.html => dom/animation/test/mozilla/file_disable_animations_api_implicit_keyframes.html
rename : dom/animation/test/mozilla/test_disable_animations_api_core.html => dom/animation/test/mozilla/test_disable_animations_api_implicit_keyframes.html
extra : rebase_source : 04fd93dd26a4765c14b0b22febdb0311b650ea59
2018-07-14 09:23:03 +09:00
Brian Birtles
5d13151cb9 Bug 1471814 - Add a preference for Web Animations timelines; r=bz,hiro
We don't intend to ship this in the near future until the integration with
AnimationWorklet is clear (although we might ship a read-only version).

That said, we use this feature extensively internally (e.g. in DevTools etc.) so
we enable this feature for system callers.

MozReview-Commit-ID: AhB7ZmU1Xzw

--HG--
extra : rebase_source : 630d7dc56b44a9261bb34aa5417cb9b7050efba4
2018-07-14 09:23:03 +09:00
Nicolas Chevobbe
d0c49b92d2 Bug 1243989 - Enable browser_webconsole_csp_ignore_reflected_xss_message.js in e10s and windows; r=bgrins
MozReview-Commit-ID: AOB362RyWY9

--HG--
extra : rebase_source : ff83449af9bfcf7bb963935191a6b4ae19a7b52b
2018-07-16 11:18:03 +02:00
Daisuke Akatsuka
890f5a905e Bug 1474972: Don't call scrollIntoView() when user select a node on animation inspector. r=gl
MozReview-Commit-ID: 8Qi5vTn129B

--HG--
extra : rebase_source : 4ebf6af1a35ded36abfc5ad3507d17458547a684
2018-07-17 12:39:31 +09:00
Belén Albeza
3889e0d450 Bug 1449954 - Slotted node reveal ux. r=bgrins
Merged the arrow icon and the "reveal" text link in a single icon.

MozReview-Commit-ID: ELANKmAKACs
2018-07-10 12:20:19 +02:00
Brian Grinstead
f94ac37cc8 Bug 1456852 - Programatically create the edit menu in the browser console input;r=nchevobbe
This allows us to open the context menu directly from webconsole.html when it's
running as a top level window. Ultimately, I'd like to not have to use special
handling in the console - all top-level windows should get the edit menu working
automatically for HTML inputs - but this lets us prove it out as a first consumer.

MozReview-Commit-ID: BYisQDtXWe4

--HG--
extra : rebase_source : 8000147713000a30af48f1da17d50356a4cd4a04
2018-07-17 11:55:49 -07:00
Razvan Caliman
8103ba1197 Bug 1475947 - (Part 2) Update font editor unit conversion to use getOwnerGlobalDimensions(). r=gl
MozReview-Commit-ID: A9efHXiMs46

--HG--
extra : rebase_source : 5de4e66f6ead40e02f08e6cf8fc742ed2955b120
2018-07-16 19:08:21 +02:00
Razvan Caliman
d9ab58bfa9 Bug 1475947 - (Part 1) implement getOwnerGlobalDimensions() on Node actor. r=gl
MozReview-Commit-ID: Ij59UBVlCBD

--HG--
extra : rebase_source : b4b078106f4abb5e16a1ba7e435e65f13082d163
2018-07-16 19:06:06 +02:00
Nicolas Chevobbe
74a2266627 Bug 1472080 - Make Enter always autocomplete the selected result; r=bgrins.
This patch ensure that we have a consistent behavior when
the autocomplete popup is open and the user hit Enter.
We remove the autocompletePopupNavigated property which
is now useless.
We also make sure that we always show the popup when we
have at least one result (previously we needed to have
2 results to make it visible). This is again for
consistency sake and making it more obvious for the
user what will happen when hitting Enter or Tab.
Tests are modified to reflect these new behaviors.

MozReview-Commit-ID: 8QgoeU6DNk6

--HG--
extra : rebase_source : 5f62365ffaa46e12997d81bb8fe71c79f8178eb7
2018-07-17 09:32:30 +02:00
Kris Maglione
c29a462c0b Bug 1474139: Follow-up: Fix test that relied on Timer.jsm being implicitly imported. r=bustage,test-only CLOSED TREE 2018-07-17 15:27:46 -07:00
Tiberius Oros
d6492ca47e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-18 00:59:21 +03:00
Gabriel Luong
8ed2afff22 Bug 1472566 - Add a color picker to the flexbox listings to change the flexbox highlighter colour. r=jdescottes 2018-07-17 15:29:21 -04:00
Nicolas Chevobbe
ab7d6e7707 Bug 1463674 - Run all jsterm test with both the old and the new version; r=bgrins.
This will allow us to avoid regression for both versions.
Also, the test were adapted to the codeMirror jsterm.

MozReview-Commit-ID: eZBvLv7JBH

--HG--
extra : rebase_source : 445a0a81607b85d2245fb81db6563b9023796932
2018-07-05 16:49:53 +02:00
Nicolas Chevobbe
2e04728654 Bug 1463674 - Add a missing test for hitting arrow keys when autocomplete popup is displayed; r=Honza.
When migrating the old code to codeMirror, I saw that two defined behaviors
were not tested:
- ArrowLeft when popup is displayed should hide the popup and the autocompletion test
- ArrowRight when popup is displayed should complete the input with the selected element.

This patch add a test for those two cases.

MozReview-Commit-ID: HZYtHssfB55

--HG--
extra : rebase_source : 77a333a7137b233f3280cddcfc81bc3008953530
2018-07-05 16:48:01 +02:00
Nicolas Chevobbe
6227906abb Bug 1463674 - Add new test helpers for JsTerm; r=bgrins.
Since we are dealing with 2 versions of this component, we
introduce new helpers that abtracts how we get or assert
some values.

MozReview-Commit-ID: 1XNPcmwwsBj

--HG--
extra : rebase_source : 5b916fe9ad953ce80c058be1ea2eb8894c625c8e
2018-07-05 16:52:38 +02:00
Nicolas Chevobbe
0f940f40b7 Bug 1463674 - Enable autocompletion popup in codeMirror JsTerm; r=bgrins.
This patch translates old key handlers to codeMirror ones.

MozReview-Commit-ID: FGJehgGaBGI

--HG--
extra : rebase_source : bf88130eb8e92b2bf29dac5024f0dc49f727e9c7
2018-07-05 16:22:45 +02:00
Nicolas Chevobbe
c09c80f824 Bug 1463674 - Refactor char and chevron width measurement; r=bgrins.
Create a separate function to measure the chevron width, and make
the function that measure the char width pure by only returning
the width.
The assignment to internal properties (_inputCharWidth, _chevronWidth),
is now done in componentDidMount which simplify reading this code.

MozReview-Commit-ID: FitY97Y03Sg

--HG--
extra : rebase_source : d35caaf19b14d9a5cfbddaf58d20bc6c7aeb4aaa
2018-07-05 16:40:03 +02:00