Commit Graph
1027 Commits
Author SHA1 Message Date
Michael Ratcliffe f5b7bbf49f Bug 1467400 - Disable JavaScript should not be available in the browser toolbox r=gl
Differential Revision: https://phabricator.services.mozilla.com/D4234
2018-08-24 16:09:58 +00:00
Brendan Dahl 532fe1f6b0 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

Differential Revision: https://phabricator.services.mozilla.com/D4265
2018-08-25 00:16:27 +00:00
Tiberius Oros fcc9ffa719 Merge inbound to mozilla-central. a=merge 2018-08-24 12:43:45 +03:00
Mantaroh Yoshinaga 40bb127a18 Bug 1470074 - Check direction when changing the dock position. r=gl
We add the devtool's iframe and splitter and browser content into XUL element.
If the environment is RTL, this element order is inverted.
So this patch will add the condition of direction to decide this element order.

Differential Revision: https://phabricator.services.mozilla.com/D4035
2018-08-24 00:09:34 +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 51584eeb03 Bug 1222047 - Manage performance fronts via target.getFront. r=yulia
Summary: Depends On D3318

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: CzwJ138yY9s
2018-08-23 03:51:41 -07:00
Alexandre Poirot 453be37998 Bug 1222047 - Manage device and preference fronts via client.mainRoot.getFront. r=yulia
Summary: Depends On D3317

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: 3jaFZbXVLuw
2018-08-23 03:51:40 -07:00
Alexandre Poirot c07c3a7dab Bug 1222047 - Manage StyleSheets fronts via target.getFront. r=yulia
Summary: Depends On D3316

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: KMVHXrGlncU
2018-08-23 03:51:40 -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 2f92cbb0b2 Bug 1222047 - Cache root actor form on RootClient rather than Target object. r=yulia
Summary: Depends On D3314

Reviewers: yulia!

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: 9zqIeJWznsb
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
Noemi Erli e9d8fc0c63 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 19:31:52 +03:00
Yura Zenevich db7967b711 Bug 1482454 - Display a "New" indicator to promote the accessibility panel. r=gl
MozReview-Commit-ID: 4T9a0Rxw2db
2018-08-22 10:23:19 -04:00
Michael Ratcliffe a46b205a6b Bug 1478273 - When clicked on the side bar pane, it disappears r=gl
Differential Revision: https://phabricator.services.mozilla.com/D3505
2018-08-16 15:05:31 +00:00
Michael Ratcliffe 6f01e84f30 Bug 1480638 - Inspect Element is not reported into panel enter/exit events r=nchevobbe
Send `inspect_dom` properties from appropriate places.

Differential Revision: https://phabricator.services.mozilla.com/D3511
2018-08-20 06:11:31 +00: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
Brian Grinstead c8b3483e82 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275
2018-08-14 16:22:44 +00:00
Belén Albeza 040e021420 Bug 1473917 - Show #shadow-root in breadcrumbs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3017
2018-08-10 10:55:41 +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
Jonathan Kingston 07af5c5572 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb r=Gijs
Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-07-06 15:14:54 +01:00
Belén Albeza 54936cb5e6 Bug 1476235 - Add telemetry for opening a custom element definition in the debugger. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2836
2018-08-08 15:30:17 +00:00
Mantaroh Yoshinaga 6fb25cb49c Bug 1477367 - Close the popup menu before changing the panel to options panel. r=birtles
Pressing the F1 key make the toolbox panel to options panel, However, popup menu
doesn't closed at the moment. This patch will close the popup menu in this case.

Differential Revision: https://phabricator.services.mozilla.com/D2897
2018-08-08 02:13:38 +00:00
Brian Birtles bcd72af7fa Bug 1478563 - Re-use function objects in MeatballMenu; r=jdescottes
To avoid needless re-renders due to props changing object identity.

Differential Revision: https://phabricator.services.mozilla.com/D2641
2018-08-02 10:09:11 +09:00
Brian Birtles 128622e480 Bug 1474234 - Add keys for MeatballMenu and MenuItem children; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2639
2018-08-02 09:41:47 +09:00
Brian Birtles 6ea878d6f3 Bug 1473211 - Stop using string concatenation for string IDs in MeatballMenu; r=jdescottes
Using the full string each time, although more verbose, allows us to easily
search for string IDs and see where they are used.

Differential Revision: https://phabricator.services.mozilla.com/D2590
2018-08-01 13:26:53 +00:00
Brian Birtles a9a5980300 Bug 1478819 - Make Meatball Menu items use title case; r=flod
As per: https://design.firefox.com/photon/copy/capitalization.html#platform-styles

Differential Revision: https://phabricator.services.mozilla.com/D2591
2018-08-01 06:34:31 +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
Kris Maglione e97c582e3f Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL
2018-05-21 16:58:23 -07:00
Kris Maglione 9ba14892f2 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG
2018-05-20 18:10:16 -07:00
Narcis Beleuzu 749f83cc65 Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione 6dcf46ad68 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL
2018-05-21 16:58:23 -07:00
Kris Maglione 86fbdd6653 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG
2018-05-20 18:10:16 -07: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 de1cc3f2d1 Bug 1466881 - Missing open events for some users r=nchevobbe
Changes:

- All files
  - Generally shuffled around telemetry events to fix issues with properties not been sent or being sent in the wrong order.
- devtools/client/framework/browser-menus.js
  - Added telemetry open event to missed codepath.
- devtools/startup/DevToolsShim.jsm
  - Added missing telemetry "shortcut" property.
- devtools/startup/devtools-startup.js
  - Added comment to sendEntryPointTelemetry().

MozReview-Commit-ID: ELldeyF32rG
2018-07-16 21:16:50 +01: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
Cosmin Sabou cd2cbc9846 Merge mozilla-central to autoland. a=merge 2018-07-25 21:25:11 +03:00
Brian Hackett 5cd86c4278 Bug 1465477 Part 1 - Add menu items and prefs for recording/replaying tabs, r=markh. 2018-07-24 21:32:16 +00: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
Julian Descottes 6cb16f3d8f Bug 1449968 - Add support for Inspect Element in Shadow DOM;r=bgrins
MozReview-Commit-ID: HhwyDMyZe1k
2018-07-05 18:48:24 +02:00
Ian Moody d1d42970ff Bug 1474379 - Match regex against the entire panel ID. r=miker,rpl
So panels provided by extensions with IDs that contain words like "inspector"
don't break.
Include test in existing panel creation test.

MozReview-Commit-ID: JerMCaKRgkl
2018-07-10 17:38:35 +01:00
Gurzau Raul 36a9e5f749 Backed out changeset d93abdc258e1 (bug 1474379) for failing at test/browser_toolbox_telemetry_enter.js on a CLOSED TREE 2018-07-13 18:43:14 +03:00
Ian Moody 189237fdf9 Bug 1474379 - Match regex against the entire panel ID. r=miker,rpl
So panels provided by extensions with IDs that contain words like "inspector"
don't break.
Include test in existing panel creation test.

MozReview-Commit-ID: JerMCaKRgkl
2018-07-10 17:38:35 +01:00
Brian Grinstead 6c5ef0678a Bug 1475305 - Remove document.width and document.height from XULDocument;r=bz
MozReview-Commit-ID: 8jWcMUYA25R
2018-07-12 11:35:11 -07:00