Commit Graph

12501 Commits

Author SHA1 Message Date
Belén Albeza
4e1ce7bb11 Bug 1494543 - Part 1: Refactor sidebar items into different components. r=jdescottes,daisuke
This is a refactor of the components used in the sidebar. TL;DR: sidebar items now use the composition approach outlined here https://reactjs.org/docs/composition-vs-inheritance.html

Before we had a container `Sidebar` component, which in turn had `SidebarItem` components inside. The issue was that depending on what item is inside, the information and UX displayed is different. Before this patch, we had an optional commponent, `DeviceSidebarItemAction` –which was featuring a "Connect" button, and was only rendered in the runtime sidebar items. However, we now need to display even more info, so continue to pass optional components to `SidebarItem` was tricky.

What this patch does is to preserve `SidebarItem` and treat is a generic container of more specific content. This is passed via the `children` prop, which React automatically maps to the DOM content that we pass to that component (this is the same concept as slots in Web Components / Vue). `SidebarItem` now only contains the logic to select items in the sidebar and render them in `<li>` elements. Two new components, `SidebarFixedItem` (for our "static" pages) and `SidebarDeviceItem` are now the ones instancing `SidebarItem` with their specific contents.

Differential Revision: https://phabricator.services.mozilla.com/D7704

--HG--
extra : moz-landing-system : lando
2018-10-16 09:35:25 +00:00
Alexandre Poirot
6cd123eae4 Bug 1494632 - Convert WorkerClient to protocol.js front. r=jdescottes
MozReview-Commit-ID: BbtEReeG4v9

Depends on D7462

Differential Revision: https://phabricator.services.mozilla.com/D7463

--HG--
extra : moz-landing-system : lando
2018-10-16 09:39:11 +00:00
Amy Chan
e4b80ceed6 Bug 1356536 - Add file type icons in network monitor. r=Honza
Added request type icons in File column of Network Monitor

Differential Revision: https://phabricator.services.mozilla.com/D7697

--HG--
extra : moz-landing-system : lando
2018-10-16 10:30:23 +00:00
Cosmin Sabou
ee928c38ca Backed out 3 changesets (bug 1494549) for OSX devtools failures. CLOSED TREE
Backed out changeset e9abf60db23b (bug 1494549)
Backed out changeset 3e89e661031c (bug 1494549)
Backed out changeset 0d7e2a4ad360 (bug 1494549)
2018-10-16 12:34:38 +03:00
Julian Descottes
04e75c921a Bug 1494549 - Wait until ADB started in USB status sidebar test;r=daisuke
Depends on D8335

Differential Revision: https://phabricator.services.mozilla.com/D8513

--HG--
extra : moz-landing-system : lando
2018-10-15 07:30:44 +00:00
Julian Descottes
367cd9399a Bug 1494549 - Add a mochitest test for status message;r=ladybenko
Depends on D8334.
In this changeset we also change the way we are reading the preferences
in adb-addon.js to avoid caching the value of the preference the first
time the module is loaded.

This allows the module to follow updates of said preferences without
having to restart Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D8335

--HG--
extra : moz-landing-system : lando
2018-10-12 07:20:22 +00:00
Julian Descottes
26732aa0db Bug 1494549 - Show USB devices status in sidebar;r=ladybenko
Maybe we want to land the simplest solution for now and discuss
quickly how to style the message to reduce confusion in a follow up?

Differential Revision: https://phabricator.services.mozilla.com/D8334

--HG--
extra : moz-landing-system : lando
2018-10-15 15:31:14 +00:00
Mantaroh Yoshinaga
856268ab66 Bug 1490358 - Hide menu popup when press the ctrl+t. r=birtles
If push the ctrl+t, browser will open the new tab. In this case,
the XUL popup panel doesn't hide automatically(autohide=false).
As the result of it, the popup menu will be displayed in the new tab
content. So this patch will hide the popup when receiving the ctr+t
shortcut in the MenuButton.

Differential Revision: https://phabricator.services.mozilla.com/D8809

--HG--
extra : moz-landing-system : lando
2018-10-16 07:13:04 +00:00
Mantaroh Yoshinaga
d5a153395f Bug 1485501 - Change the calculated viewport if anchor element is displayed at second screen. r=birtles
If we displayed the devtools across the second screen, the Screen.availLeft
might be not zero. I.e., Screen.availLeft point to second screen's left.
The HTMLTooltip does't consider this case, so this patch will change the
viewpor's left and right position if the left of anchor element is bigger than
screen.right.

Differential Revision: https://phabricator.services.mozilla.com/D8183

--HG--
extra : moz-landing-system : lando
2018-10-16 01:16:59 +00:00
Micah Tigley
58896ac3d6 Bug 1499052 - Enable both M1 and M2 milestones for the Flexbox inspector in DevEdidtion 64 (and keep it there). r=gl
Differential Revision: https://phabricator.services.mozilla.com/D8738

--HG--
extra : moz-landing-system : lando
2018-10-15 19:58:20 +00:00
Noemi Erli
a52231df87 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-16 01:22:27 +03:00
Noemi Erli
014b37a409 Merge inbound to mozilla-central. a=merge 2018-10-16 01:20:08 +03:00
Bogdan Tara
37c2b65d30 Backed out changeset ffb2909f660d (bug 1497312) for browser_flexbox_highlighter_color_picker_on_RETURN.js failures CLOSED TREE 2018-10-15 23:31:22 +03:00
Julien Wajsberg
c4847c5f16 Bug 1495473 - Properly propagate the error up to the client r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D7299

--HG--
extra : moz-landing-system : lando
2018-10-15 17:33:58 +00:00
Nicolas Chevobbe
bcd61b77db Bug 1425542 - Move inspectObjectActor away from jsterm; r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D8519

--HG--
extra : moz-landing-system : lando
2018-10-15 14:23:51 +00:00
Nicolas Chevobbe
95a682c9a9 Bug 1484989 - Prevent JsTerm to steal focus when reloading a page; r=bgrins.
JsTerm's focus function was called in clearOutput, which
we call when navigating to a new page (if Persist Logs is
not checked).
This means that we were forcing the JsTerm to be focused
each time the user navigated while having the console open.
This behavior, can be annoying, or at worst, if you're
debugging a focus issue in your content page, completely maddening.
The fix is striaghtforward: do not call focus in clearOutput.
A test is added to make sure we don't regress this.

Differential Revision: https://phabricator.services.mozilla.com/D8701

--HG--
extra : moz-landing-system : lando
2018-10-15 14:25:10 +00:00
Dorel Luca
451e26f0c6 Backed out changeset 8d7987ea4fb1 (bug 1490257) for causing android failures. CLOSED TREE 2018-10-15 14:39:00 +03:00
vinoth
7b887cfbbc Bug 1498885 - Assertion added in ContentSecurityPolicyPermitsJSAction() to not allow eval with SystemPrincipal r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D8683

--HG--
extra : moz-landing-system : lando
2018-10-15 08:02:04 +00:00
Alexandre Poirot
4b85a3b27f Bug 1485660 - Adapt DebuggerClient._pools to accept Front's and (now) Pool's. r=jdescottes
MozReview-Commit-ID: EWka8fMBcK5

Depends on D7462

Differential Revision: https://phabricator.services.mozilla.com/D8518

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:21 +00:00
Alexandre Poirot
235c66815f Bug 1485660 - Remove gcli leftover. r=jdescottes
MozReview-Commit-ID: FMuFBTseBIx

Depends on D7461

Differential Revision: https://phabricator.services.mozilla.com/D7462

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:19 +00:00
Alexandre Poirot
5303ca93db Bug 1485660 - Convert browser_db_listtabs-03.js to async and make it use TargetFront. r=jdescottes
MozReview-Commit-ID: KLqx50gwSXS

Depends on D7460

Differential Revision: https://phabricator.services.mozilla.com/D7461

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:17 +00:00
Alexandre Poirot
9c63f6e5ba Bug 1485660 - Special test fixes. r=jdescottes
* browser_addons_debug_webextension_popup: It looks like frame-update events are now fired earlier.
I had to move the listener to an earlier step in order to make it work.
* helper_disable_cache + toolbox.js: this test wasn't correctly listening for reconfigure request's end.
  Not clear how this test was passing before without high rate of intermittent...
* test_webextension-addon-debugging-connect.html: We can no longer listen for frame-update *before* the target object is created.
  (because we now need a TabTarget object or the TargetFront and not just the DebuggerClient)
* Fix reload request in shadereditor which may still be pending after test ends.

MozReview-Commit-ID: 49qvWSCn6nq

Depends on D8066

Differential Revision: https://phabricator.services.mozilla.com/D7460

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:15 +00:00
Alexandre Poirot
2bab2fef72 Bug 1485660 - Adapt TabClient API to protocol one. r=jdescottes
MozReview-Commit-ID: 1dC5opkgLcQ

Depends on D7459

Differential Revision: https://phabricator.services.mozilla.com/D8066

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:12 +00:00
Alexandre Poirot
bbd1bcdcbe Bug 1485660 - Switch from listening from DebuggerClient to TargetFront. r=jdescottes
* debugger-controller and events.js are special and require to support two cases because this is
the only production codepath that can have a TabTarget or a WorkerTarget.
Thus, leading to either TargetFront or WorkerClient on target.activeTab.
* webide.js doesn't need to listen for tabNavigated, this is redundant with tabListChanged.
* application's initializer. In case you are wondering this code can't be spawn against a WorkerTarget.
The application panel doesn't work in worker toolboxes.
* The code modified in target is in TabTarget, so we don't have to support the WorkerClient case, we always have a TargetFront here.
* I tried to update the doc file the best I can but this all feel outdated.

MozReview-Commit-ID: 2hGchebfIub

Depends on D7458

Differential Revision: https://phabricator.services.mozilla.com/D7459

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:10 +00:00
Alexandre Poirot
e7998a50ec Bug 1485660 - Convert TabClient to a front. r=jdescottes
TabClient appears to be a client for any actor that inherits from browsing context target actor.
So let it be a front for that.

MozReview-Commit-ID: KmpClxJ53N7

Depends on D7457

Differential Revision: https://phabricator.services.mozilla.com/D7458

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:07 +00:00
Alexandre Poirot
9c441aadb9 Bug 1485660 - Avoid exceptions when the connection is closed in middle of the actor's id retrieval. r=jdescottes
MozReview-Commit-ID: KvwkISz7OVe

Depends on D7456

Differential Revision: https://phabricator.services.mozilla.com/D7457

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:05 +00:00
Alexandre Poirot
1fd7cbd0a7 Bug 1485660 - Allows calling DebuggerClient.close twice in a row. r=jdescottes
MozReview-Commit-ID: uACM0VtJ5E

Differential Revision: https://phabricator.services.mozilla.com/D7456

--HG--
extra : moz-landing-system : lando
2018-10-15 08:36:03 +00:00
Jonathan Kingston
8bcd10a7ab Bug 1490257 - Add asserts and remove implied system triggering principal code r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D8368

--HG--
extra : moz-landing-system : lando
2018-10-15 06:29:45 +00:00
Dorel Luca
451b0f42f9 Backed out 2 changesets (bug 1494543) for causing Devtools failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE
Backed out changeset 744747bb295c (bug 1494543)
Backed out changeset 5a54f333b855 (bug 1494543)
2018-10-15 12:14:17 +03:00
Florens Verschelde
b355fe0cc4 Bug 1495693 - Declare devtools-textinput colors explicitly; r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8677

--HG--
extra : moz-landing-system : lando
2018-10-15 08:12:12 +00:00
Belén Albeza
96c978440f Bug 1494543 - Part 2: Add model + short runtime name to the sidebar item. r=jdescottes,daisuke
Added new getters to the ADB scanner so our runtime objects have now the information we need.

Note that the UX of the devices in this patch doesn't still match what we had in the mockups (icons don't match, and we also need a circle with a tick), but since we have another bug to handle the CSS in the Sidebar, we can always adapt it there. The information needed to display what is shown in the mockups should be passed in this patch –if I miss anything, give me a shout!

Differential Revision: https://phabricator.services.mozilla.com/D7705

--HG--
extra : moz-landing-system : lando
2018-10-11 12:01:59 +00:00
Florens Verschelde
deef5c4f62 Bug 1456307 - Use more accurate flexbox icon in inspector; r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D8662

--HG--
extra : moz-landing-system : lando
2018-10-15 07:52:52 +00:00
Belén Albeza
b77f33a3d8 Bug 1494543 - Part 1: Refactor sidebar items into different components. r=jdescottes,daisuke
This is a refactor of the components used in the sidebar. TL;DR: sidebar items now use the composition approach outlined here https://reactjs.org/docs/composition-vs-inheritance.html

Before we had a container `Sidebar` component, which in turn had `SidebarItem` components inside. The issue was that depending on what item is inside, the information and UX displayed is different. Before this patch, we had an optional commponent, `DeviceSidebarItemAction` –which was featuring a "Connect" button, and was only rendered in the runtime sidebar items. However, we now need to display even more info, so continue to pass optional components to `SidebarItem` was tricky.

What this patch does is to preserve `SidebarItem` and treat is a generic container of more specific content. This is passed via the `children` prop, which React automatically maps to the DOM content that we pass to that component (this is the same concept as slots in Web Components / Vue). `SidebarItem` now only contains the logic to select items in the sidebar and render them in `<li>` elements. Two new components, `SidebarFixedItem` (for our "static" pages) and `SidebarDeviceItem` are now the ones instancing `SidebarItem` with their specific contents.

Differential Revision: https://phabricator.services.mozilla.com/D7704

--HG--
extra : moz-landing-system : lando
2018-10-11 11:59:26 +00:00
Florens Verschelde
ccb44df343 Bug 1471163 - Remove devtools floating scrollbars and set scrollbar-color on Linux; r=jdescottes
Remove the floating scrollbar implementation used on Linux now that CSS scrollbar-color
landed for Linux. Also force scrollbar-color for the DevTools light theme on Linux, to
avoid visual conflicts with dark GTK themes.

Differential Revision: https://phabricator.services.mozilla.com/D7858

--HG--
extra : moz-landing-system : lando
2018-10-14 17:14:10 +00:00
Csoregi Natalia
adeba320b0 Merge inbound to mozilla-central. a=merge 2018-10-15 07:53:34 +03:00
Gabriel Luong
d3d023f557 Bug 1497905 - Avoid destroying the markup iframe on navigation. r=pbro 2018-10-14 22:26:05 -04:00
Mark Striemer
bfceed545a Bug 1490366 - Part 1: Move card styles to common from about:debugging r=dao
Differential Revision: https://phabricator.services.mozilla.com/D8101

--HG--
extra : moz-landing-system : lando
2018-10-14 19:20:02 +00:00
Patrick Brosset
25bfd6366a Bug 1498487 - Flex item outline design changes; r=gl
- Made the border for the final size thicker
- Made the delta area more transparent
- Removed the arrow-head pattern for the delta area
- Added a thin horizontal arrow instead
- Removed the background circle around the lock icon
- Added a non-blurry shadow area around it instead

The mockup also called for adding a new label for "grow".
I did not implement this yet, because this will require more
work that can be done in a separate bug. We also need to
decide what happens if there isn't enough room to display
it.

Differential Revision: https://phabricator.services.mozilla.com/D8520

--HG--
extra : moz-landing-system : lando
2018-10-14 19:24:38 +00:00
shindli
27d0f9d0d2 Backed out 5 changesets (bug 1488730, bug 1490366, bug 1488727) for bc failures in | toolkit/mozapps/extensions/test/browser/browser_details.js and browser/components/enterprisepolicies/tests/browser/browser_policy_disable_flash_plugin.js CLOSED TREE
Backed out changeset 9cd889824b1c (bug 1488730)
Backed out changeset 4d076c865471 (bug 1488727)
Backed out changeset 0b8bcd97f254 (bug 1490366)
Backed out changeset 448672780572 (bug 1490366)
Backed out changeset 7e0abd16a50b (bug 1490366)
2018-10-14 19:23:09 +03:00
Mark Striemer
c18b17b3d3 Bug 1490366 - Part 1: Move card styles to common from about:debugging r=dao
Differential Revision: https://phabricator.services.mozilla.com/D8101

--HG--
extra : moz-landing-system : lando
2018-10-14 15:13:31 +00:00
Gurzau Raul
e8d74109ee Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-15 01:21:36 +03:00
Gabriel Luong
40306dcbc5 Bug 1496572 - Fix intermittent devtools/client/inspector/test/browser_inspector_highlighter-eyedropper-xul.js by adding a new emitted event for the inspector toolbar update. r=pbro 2018-10-13 06:53:00 +03:00
Tiberius Oros
1956192203 Disable Bug 1453214 for frequent failures on windows and linux64 r=jmaher
--HG--
extra : rebase_source : fce55192880d48bfea1006d7f8961b6433b0f8d8
2018-10-13 03:19:00 +03:00
Diego Pino Garcia
4520a114b1 Bug 1498148 - Implement text-transform: full-size-kana. r=xidorn 2018-10-14 09:42:24 +11:00
Noemi Erli
e350ad46ad Backed out changeset a00b402fb8e8 (bug 1498148) for Linting failure in builds/worker/checkouts/gecko/tools/lint/wpt.yml CLOSED TREE 2018-10-14 00:12:12 +03:00
Diego Pino Garcia
d8fa9f97a3 Bug 1498148 - Implement text-transform: full-size-kana. r=xidorn 2018-10-13 05:03:00 +03:00
Olli Pettay
32f9fcc2d3 Bug 1498380 - devtools UI relies on old Gecko's <button> hit testing, r=pbro 2018-10-12 14:14:58 +03:00
Daisuke Akatsuka
4fb0e9fd75 Bug 1494847 - Part 4: Remove backward compatibility codes before version 62. r=pbro
Depends on D7687

Differential Revision: https://phabricator.services.mozilla.com/D8512

--HG--
extra : moz-landing-system : lando
2018-10-12 13:33:54 +00:00
Daisuke Akatsuka
2558c76250 Bug 1494847 - Part 3: Add test for negative playback rate. r=pbro
Depends on D7686

Differential Revision: https://phabricator.services.mozilla.com/D7687

--HG--
extra : moz-landing-system : lando
2018-10-12 07:01:40 +00:00
Daisuke Akatsuka
984d6868a8 Bug 1494847 - Part 2: Set proper currentTime for negative playback rate. r=pbro
Depends on D7685

Differential Revision: https://phabricator.services.mozilla.com/D7686

--HG--
extra : moz-landing-system : lando
2018-10-12 06:36:37 +00:00