Commit Graph
419 Commits
Author SHA1 Message Date
Daisuke Akatsuka 91f80ae117 Bug 1488302 - Part 2: Modify so that the dragging tab does not exceed both ends of tabs. r=jdescottes
If the amount of mouse moving at mousemove event will exceed to both ends of tabs, the dragging tab will move to exceed the ends. This patch makes to avoid this.

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

Depends on D4906
2018-08-28 09:29:27 +09:00
Daisuke Akatsuka 16450c4fe3 Bug 1488302 - Part 1: Remove mouseout handling. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4906
2018-08-28 09:29:27 +09:00
Yura Zenevich a3cbf70618 Bug 1482454 - enabled accessibility panel by default. r=gl, ochameau
MozReview-Commit-ID: 38cNU1Raz8T
2018-08-31 20:30:12 -04:00
Mantaroh Yoshinaga 71fad1a904 Bug 1473210 - Add meatball menu sanity tests. r=birtles
This test will check the following:
 * Open / Close the meatball menu with click the button.
 * Handling the keys. (Up / Down / Home / End)
 * Close the meatball menu with F1 key.
 * Close the meatball menu with Escape key.

Differential Revision: https://phabricator.services.mozilla.com/D3592
2018-08-30 04:19:59 +00:00
Kris Maglione f2dba891af Bug 1484496: Part 5d - Convert devtools/ nsISimpleEnumerator users to use JS iteration. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3732
2018-08-18 19:28:37 -07:00
Alexandre Poirot 14e115ac28 Bug 1222047 - Expose helper to easily instanciate global and target scoped fronts. r=yulia
Summary: Depends On D3314

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: fqlHCkOtIB
2018-08-23 03:51:39 -07:00
Alexandre Poirot 667a499530 Bug 1222047 - Remove unused visible/hidden events on target. r=yulia
Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: DSH0UmPrlxR
2018-08-23 03:51:38 -07:00
Yaron Tausky ebd82e6328 Bug 1455078: Refactor test to run in code in page r=ochameau,asuth
This test runs code in the frame script, which has system privileges. Even
though it trips the security tests as it is, it's not clear whether that
should be the case or not. By running the code in the page itself, the
expected behavior is governed by the service workers spec and is thus well
defined.

Differential Revision: https://phabricator.services.mozilla.com/D3323
2018-08-16 16:18:30 +00:00
Martin Balfanz c974cf8e3b Bug 1471952 - change default tool to Inspector;r=gl,rcaliman
Change default tool to inspector

Differential Revision: https://phabricator.services.mozilla.com/D2930
2018-08-09 18:05:12 +00:00
Nicolas Chevobbe 60b985e144 Bug 1470922 - Fix tests failing with the new Jsterm; r=bgrins.
MozReview-Commit-ID: EaOSFmWa1tZ
2018-07-25 10:58:01 +02:00
Coroiu Cristina 57563390eb Backed out 3 changesets (bug 1470922) for devtools failures at devtools/client/debugger/test/mochitest/browser_dbg_split-console-keypress.js
Backed out changeset 57b9025b5573 (bug 1470922)
Backed out changeset c30835ae0523 (bug 1470922)
Backed out changeset bb2a99260093 (bug 1470922)
2018-07-27 19:31:43 +03:00
Michael Ratcliffe 23e4b12f12 Bug 1474356 - Most other panel openings without panel_name r=nchevobbe
Changes:

Pretty much all files contain changes to the order of events and properties... these are to stop subtle issues with events not being logged because not all properties were sent and some events were sent in the wrong order.

-devtools/client/framework/test/browser_devtools_api.js
  - Renamed test-tool-1 and 2 because we need to include the panel names in Events.yaml and "-" is not allowed.
- devtools/client/framework/toolbox.js
  - Removed unneeded const REGEX_PANEL.
  - Generally shifted things around to ensure we send events from all codepaths.
- toolkit/components/telemetry/Events.yaml
  - Changed telemetry event `"devtools.main", "enter"` to include all built-in panel names including  "other."

MozReview-Commit-ID: 2G3Z9pzj1QC
2018-07-16 14:50:00 +01:00
Nicolas Chevobbe b72314cd09 Bug 1470922 - Fix tests failing with the new Jsterm; r=bgrins.
MozReview-Commit-ID: EaOSFmWa1tZ
2018-07-25 10:58:01 +02:00
Mantaroh Yoshinaga 0f95bb2e21 Bug 1473209 - Ignore the click event until popup is hidden. r=birtles.
The widget will hide the XUL panel when clicking to the outside of panel
automatically.
If a user clicks the MenuButton when opening the popup, the popup will hide
automatically and mouse click event will be fired on macOS and Linux.
(Windows will eat this click event since the consumeoutsideclicks of this panel
is false.)

As a result of it, the popup menu will be reopened. In order to prevent this,
this patch will disable the MenuButton until popup is hidden by using
the popuphidden event. This popuphidden event will be fired before the click
event of MenuButton, then the click event of MenuButton will be fired after
popuphidden immediately.

MozReview-Commit-ID: 42xV0aWDmkR
2018-07-27 13:38:12 +09:00
Narcis Beleuzu 00512ea2f7 Backed out changeset 55739a1e4de9 (bug 1474356) for mochitest bc failures on browser_ext_devtools_panel.js. CLOSED TREE 2018-07-26 14:06:18 +03:00
Michael Ratcliffe 4a0f96c292 Bug 1474356 - Most other panel openings without panel_name r=nchevobbe
Changes:

Pretty much all files contain changes to the order of events and properties... these are to stop subtle issues with events not being logged because not all properties were sent and some events were sent in the wrong order.

-devtools/client/framework/test/browser_devtools_api.js
  - Renamed test-tool-1 and 2 because we need to include the panel names in Events.yaml and "-" is not allowed.
- devtools/client/framework/toolbox.js
  - Removed unneeded const REGEX_PANEL.
  - Generally shifted things around to ensure we send events from all codepaths.
- toolkit/components/telemetry/Events.yaml
  - Changed telemetry event `"devtools.main", "enter"` to include all built-in panel names including  "other."

MozReview-Commit-ID: 2G3Z9pzj1QC
2018-07-16 14:50:00 +01:00
Alexandre Poirot cd194b0029 Bug 1478246 - Enable client/framework/test/browser_toolbox_select_event.js in e10s. r=jdescottes
MozReview-Commit-ID: 1YldyrCiW3e
2018-07-25 00:00:07 -07:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Mantaroh Yoshinaga 019c5becf2 Bug 1474221 - Part 2. Make the chevron menu to be doorhanger menu. r=birtles
This patch will make the chevron menu to doorhanger menu and modify some tests
which related with this chevron menu.

MozReview-Commit-ID: BkdVHgRlHIw
2018-07-20 15:58:35 +09:00
Brian Grinstead fe5dffb412 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
2018-07-17 11:55:49 -07:00
sreeise f430885da6 Bug 1368199 - Replaced uses of 'defer' with 'new Promise' in the devtools/client/framework directory. r=jryans
MozReview-Commit-ID: CA1XPx90jwW
2018-07-03 02:16:31 -04:00
Brian Birtles 703526c934 Bug 1461522 - Update browser_toolbox_zoom_popup.js to handle doorhanger menus too; r=jdescottes
MozReview-Commit-ID: 6OoqIeW8Agk
2018-06-28 15:14:40 +09:00
Brian Birtles c944837eb9 Bug 1461522 - Use the currentZoom as opposed to the pref value; r=jdescottes
In a couple of places in DevTools we read back the value of the
"devtools.toolbox.zoomValue" pref and take that to be the zoom value. However,
at certain zoom levels these two can differ: the pref value representing the
ideal zoom and currentZoom giving the actual zoom value in use.

This patch makes us use the actual zoom value in the two places where this
occurs.

Unfortunately, we cannot easily adjust the browser_html_tooltip_zoom.js test for
this since it uses a separate XUL document that does not take into account the
pref value---as a result that test directly sets the currentZoom on the separate
doc and hence this problem won't occur.

Instead, this patch adjusts the browser_toolbox_zoom_popup.js test since the
toolbox menu positioning uses the same problematic pattern so we can reproduce
the bug in the browser_toolbox_zoom_popup.js. (This patch fixes both
occurances of this pattern.)

At least locally browser_toolbox_zoom_popup.js passes for me with a zoom of 1.5
but fails with a zoom of 1.4. Similarly in my testing of HTMLTooltip, zoom
values such as 1.2 and 1.4 often show significant misalignment whilst a zoom of
1.3 or 1.5 is fine.

With the code changes in this patch, the test passes with any given zoom factor.

(This patch also incidentally replaced isNaN with the more robust Number.isNaN.)

MozReview-Commit-ID: JmlRoidARVp
2018-06-28 14:55:48 +09:00
J. Ryan Stinnett f489c5464f Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-26 13:27:57 +00:00
arthur.iakab c92ab366d1 Backed out changeset 88960670cf9f (bug 1465637) for failing talos damp tests on server/protocol.js: Error: Can't manage front without an actor ID on a CLOSED TREE 2018-06-25 21:56:27 +03:00
J. Ryan Stinnett f1a1ed11e7 Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-25 17:53:40 +00:00
J. Ryan Stinnett e323a9837f Bug 1469602 - Clean up custom host messages. r=ochameau
Slightly simplify custom host messaging by removing the redundant stringify /
parse.  This makes it simpler to ignore messages you might overhear.

MozReview-Commit-ID: JZHAzZAVeHZ
2018-06-19 18:46:49 -05:00
Joel Maher d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Julian Descottes af468281bb Bug 1467407 - Fix incorrect usage of ok() in devtools mochitests;r=jryans
All the changes here either directly worked when switching from ok() to is()
or were straightforward to fix.

MozReview-Commit-ID: LEcCu0A4msu
2018-06-07 12:06:20 +02:00
Julian Descottes dd1b04b632 Bug 1467407 - Fix incorrect usage of ok() in devtools keyboard nav mochitest;r=yzen
MozReview-Commit-ID: 3LGuqjnWYRA
2018-06-07 12:03:47 +02:00
Ciure Andrei 205e72bd43 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-08 00:54:06 +03:00
Ciure Andrei 415495288b Merge inbound to mozilla-central. a=merge 2018-06-08 00:50:18 +03:00
Gabriel Luong eefb8f3a4a Bug 1192642 - Add a left host type for the toolbox. r=pbro 2018-06-07 12:45:53 -04:00
Blake Kaplan bd5cecf60f Bug 1186265 - Move devtools over to getBounds(). r=pbro
This leaves getAdjustedQuads alone because it lives in its own world and its
result gets sent over IPC. That leaves things in a bit of an intermediate
state, but that should be OK for now.

MozReview-Commit-ID: DH6eGqCFhPr
2018-06-04 16:41:43 -07:00
J. Ryan Stinnett d609a92077 Bug 1172897 - Rename ChromeActor to ParentProcessTargetActor. r=ochameau
MozReview-Commit-ID: JM17h5ArYub
2018-06-01 17:31:48 -05:00
J. Ryan Stinnett c6fd8c950e Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o
2018-05-25 18:20:28 -05:00
Mantaroh Yoshinaga d62c32b0f3 Bug 1466007 - Add test which checking that the all tab will go into overflow menu if devtool's toolbar width is minimum width.r=jdescottes
This patch add the test which confirm to display only chevron when width is narrow.

MozReview-Commit-ID: CpF4bWMtu8R
2018-06-06 09:42:15 +09:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Natalia Csoregi d135a7eab3 Bug 1465369 - Removed reference to old winxp and osx 10.8. r=jmaher 2018-05-30 07:47:00 +03:00
Chris Adams 1625724869 Bug 1014090 - Toggle inspector on mac with extra cmd+shift+C shortcut; r=pbro
MozReview-Commit-ID: KSdkGmVqVFd
2018-05-23 08:06:14 +02:00
abhinav 10091d0089 Bug 1460467 - Remove unused zoom in shortcut key. (toolbox.zoomIn3.Key). r=mantaroh
MozReview-Commit-ID: CrTlOUaqCDc
2018-05-16 23:11:30 +05:30
Csoregi Natalia 2b4b6ad994 Backed out changeset 123010192259 (bug 1014090) for failing on browser_duplicateIDs.js. CLOSED TREE 2018-05-25 13:11:29 +03:00
Chris Adams a1800cbc22 Bug 1014090 - Toggle inspector on mac with extra cmd+shift+C shortcut; r=pbro
MozReview-Commit-ID: KSdkGmVqVFd
2018-05-23 08:06:14 +02:00
Alexandre Poirot a1be154564 Bug 1461970 - Removing DeveloperToolbar, its menu, its pref and everything using gDevToolsBrowser.getDeveloperToolbar. r=jryans
MozReview-Commit-ID: Es7uUfcWTXu
2018-03-21 08:43:51 -07:00
Mantaroh Yoshinaga b2558f6f8d Bug 1455462 - Part 6. Add test of confirming the position of 'all menu' popup. r=jdescottes
The accessing all menu button will be shown to the inspector, so this test will
use inspector's this button. This button didn't have an id, so this patch will
add id for testing.

MozReview-Commit-ID: 2xFXYKwpQoe
2018-05-11 11:07:00 +09:00
Mantaroh Yoshinaga b309084887 Bug 1455462 - Part 5. Add toolbox's menu position test. r=jdescottes
This test will check that popup menu of toolbox will be displayed under the
menu button. This test tolerates an error since some platform (like macOS)
will add the offset value. (i.e. eIntID_ContextMenuOffsetHorizontal and
eIntID_ContextMenuOffsetVertical)

MozReview-Commit-ID: 5TaM5JiNhdk
2018-05-11 09:31:58 +09:00
Mantaroh Yoshinaga eba12dc476 Bug 1455462 - Part 4. Use the async_task in devtool's zoom test. r=jdescottes
This patch will change test to use the async_task before touching this tests and
use the first decimal place when checking a result.

MozReview-Commit-ID: DBkvLtEmEa3
2018-05-11 09:08:09 +09:00
Daisuke Akatsuka 9cb16dc943 Bug 1457067 - Part 2: Add test whether options panel toggled by key event and Settings on the meatball menu. r=jdescottes
MozReview-Commit-ID: 4bSeh8kkTx6
2018-05-11 07:35:26 +09:00
Jason Laster 83c5cd5b3d Bug 1460056 - Update Debugger Frontend v50. r=jdescottes
MozReview-Commit-ID: DEBZJPz2YlK
2018-05-09 19:35:36 -04:00
Julian Descottes ebb512e659 Bug 1456069 - Always show frame button if user is on options panel;r=birtles,jryans
MozReview-Commit-ID: CqwcVlxrQMd
2018-04-23 11:20:12 +02:00