Commit Graph
598 Commits
Author SHA1 Message Date
Wes Kocher bf639519bc Merge m-c to fx-team, a=merge 2016-08-19 18:41:03 -07:00
Gabriel Luong daf912f588 Bug 1282726 - Simple CSS Grid highlighter that displays grid lines r=pbro
This adds a new highlighter in devtools/server/actors/highlighters.
For now this highlighter isn't used and can only display grid lines
as provided by node.getGridFragments().
2016-08-19 10:26:39 -07:00
Ryan VanderMeulen 724c163f1c Merge fx-team to m-c. a=merge 2016-08-19 09:54:25 -04:00
Patrick Brosset a080e97831 Bug 1295607 - Avoid CSP errors when drawing the window into the eyedropper; r=miker
Pages defining CSP response headers used to be a problem for the eyedropper.
Indeed, the eyedropper would take a screenshot of the window with
canvas.drawWindow and then load the resulting data as an Image. But in order
to access the Image() constructor, it would use the content window:
new window.Image(), and that wasn't possible with CSP headers.

With this change, the eyedropper creates an ImageBitmap with
window.createImageBitmap() and that doesn't cause CSP errors, and still works
fine because ImageBitmap are consumable by the eyedropper.

This change also adds a new test to prevent this bug from coming back.

MozReview-Commit-ID: 7f3HCXJtTiv
2016-08-18 14:37:04 +02:00
Patrick Brosset 98f15741fe Bug 1289553 - Move the eyedropper label so it's always visible; r=jdescottes
This adds a few new CSS selectors that are used to move the label to the
top and/or left/right of the eyedropper canvas.
The CSS rules use transform and a quick transition.
The eyedropper highlighter then just makes use of this by adding top, left,
right attributes to the DOM depending on its position.

This also adds a test for this, and while testing, I discovered a bug in
shared/layout/utils.js that I fixed here too. Sometimes, the node passed is
actually a DOCUMENT_NODE and so we must account for this in a couple of places
in this file to avoid JS errors.

MozReview-Commit-ID: H969k3mEDJE


MozReview-Commit-ID: 9qOCYVp4mld
2016-08-18 15:17:47 +02:00
Wes Kocher 41af310505 Merge fx-team to central, a=merge 2016-08-17 16:53:20 -07:00
Oriol 9397545915 Bug 1295729 - Ensure that properties are array indices when the console checks if an object is a pseudo-array. r=fitzgen 2016-08-16 14:59:00 -04:00
Tom Tromey e23dc8b645 Bug 1278625 - move SimpleStringFront to specs/string.js; r=ejpbruel
MozReview-Commit-ID: Ib11CZwL4pP
2016-08-16 11:01:33 -06:00
J. Ryan Stinnett 717e62f9eb Bug 1240912 - Only remove disconnect listener when closing the child. r=me
MozReview-Commit-ID: 9DSreORq7Sf
2016-08-19 10:01:35 -05:00
J. Ryan Stinnett 62f457fd9a Bug 1240912 - Add browser swap support to multiprocess actors. r=ochameau
Watch for browser swap events and update the message manager as necessary for
each of the actors that use the `setupInParent` multiprocess functionality.

MozReview-Commit-ID: HPibSONSYk4
2016-08-19 10:01:33 -05:00
J. Ryan Stinnett 63f54ad6ac Bug 1240912 - Convert Network Monitor to setupInParent. r=ochameau
MozReview-Commit-ID: 2fqsnR7IMWO
2016-08-19 10:01:32 -05:00
J. Ryan Stinnett ffff5b8bc4 Bug 1240912 - Change storage actor messages to use debug prefix. r=ochameau
MozReview-Commit-ID: 89EcywFnJCI
2016-08-19 10:01:31 -05:00
J. Ryan Stinnett 7d8e5ce4dc Bug 1240912 - NetworkMonitorManager uses mm instead of frame. r=ochameau
MozReview-Commit-ID: JsvQRwbjJDE
2016-08-19 10:01:30 -05:00
J. Ryan Stinnett 0ddbfea7f3 Bug 1240912 - Toolbox remains connected across frame swaps. r=ochameau
It is now possible keep the toolbox open while toggling RDM open and closed.
The toolbox will follow the frame as it moves and update the message manager it
uses internally with each move.

MozReview-Commit-ID: DvLzCmOXfnb
2016-08-19 10:01:29 -05:00
J. Ryan Stinnett 455c5bb644 Bug 1240912 - Filter requests by top frame's outerWindowID. r=ochameau
MozReview-Commit-ID: B5Y65EVG8Tz
2016-08-19 10:01:27 -05:00
Sebastian Hengst c1cba3001e Backed out changeset c289e719ca5d (bug 1285566) for timing out in devtools test browser_toolbox_computed_view.js. r=backout 2016-08-16 09:57:27 +02:00
Benoit Chabod 06f4606e43 Bug 1285566 - Create an EmulationActor and use per-tab API for touch simulator, r=jryans
MozReview-Commit-ID: F5s8Fd265Qe
2016-08-12 12:45:00 -07:00
Benoit Chabod 0ce3a6cf55 Bug 1285566 - Create an EmulationActor and use per-tab API for touch simulator, r=jryans
MozReview-Commit-ID: 860epGLFO9
2016-08-16 21:56:14 -05:00
Alexandre Poirot b9d1deaae1 Bug 1289433 - Fix Eye dropper focus to support key shortcuts on it when opening from the inspector. r=jdescottes 2016-08-11 04:14:36 -07:00
Jarda Snajdr 9ed57163c0 Bug 1292503 - Fix e10s issues in resending HTTP requests, enable browser_net_resend.js test r=ochameau 2016-08-10 17:08:35 -07:00
b0fa44c98a Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
7da99e3425 Bug 1288423 - Remove the old Actor/FrontClass constructors. r=fitzgen 2016-08-10 17:35:50 +02:00
c36403bbe5 Bug 1288423 - Decouple PerformanceEntriesActor from PerformanceEntriesFront. r=fitzgen 2016-08-10 17:35:31 +02:00
Carsten "Tomcat" Book aa76bed77a merge fx-team to mozilla-central a=merge 2016-08-09 15:43:44 +02:00
Tom Tromey f56dca3a4c Bug 1291834 - make indexDB a global via devtools loader; r=jryans
MozReview-Commit-ID: 3NnhUWaBBra
2016-08-03 13:26:34 -06:00
Julian Descottes dc61a11e92 Bug 1291306 - update highlighter CSS selector to avoid leaking styles to content;r=ntim
Even though the pseudo :-moz-native-anonymous is only available for chrome content, elements
such as INPUT tags were impacted by the reset styles defined with the selector ":-moz-native-anonymous"

The selector has to be specialized in order to make sure it only impacts devtools elements.

MozReview-Commit-ID: HeHx9i6RJiq
2016-08-06 15:04:49 +02:00
Wes Kocher 29771f4f17 Merge fx-team to m-c a=merge 2016-08-07 00:16:15 -07:00
James Long 24266d6355 Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04:00
Tom Tromey 6892a50d74 Bug 1292574 - make CSS a global rather than a module in devtools loader; r=gregtatum
MozReview-Commit-ID: 5RYwDAW4wxt
2016-08-05 08:32:59 -06:00
Brian Grinstead 29bef48212 Bug 1288475 - Remove code unused in client and server versions of webconsole utils;r=tromey
MozReview-Commit-ID: GcNg9nEI9d4
2016-08-05 10:44:42 -07:00
Brian Grinstead 4e42260d3e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H
2016-08-05 10:44:38 -07:00
Tom Tromey 53b9e15417 Bug 1287631 - fix typo in Services.appinfo use in devtools; r=fitzgen
MozReview-Commit-ID: 1HTz3uRgMfT
2016-08-05 07:45:18 -06:00
Jarda Snajdr 384fe3ecb3 Bug 1286281 - Part 8: Mochitest for WebSocket-based debugger transport r=jryans
MozReview-Commit-ID: AcDb9vj9t5X
2016-08-05 05:02:00 -07:00
Jarda Snajdr de6c06ec8c Bug 1286281 - Part 3: WebSocket server for WebSocket remote debugger transport r=jryans
MozReview-Commit-ID: DFcPTayju7m
2016-08-05 05:00:00 -07:00
Ricky Chien ac91549790 Bug 1102269 - Fixed infobar getting outside visible area r=ntim
MozReview-Commit-ID: 7yNokF0bjj9
2016-08-02 16:51:06 +08:00
Greg Tatum 13b3b00221 Bug 1290142 - Lint devtools/client/performance/test/; r=jsantell
MozReview-Commit-ID: FprlN3Vm9H7
2016-08-02 17:18:01 -05:00
Carsten "Tomcat" Book 8ed9dcbd2e merge mozilla-inbound to mozilla-central a=merge 2016-08-04 15:55:50 +02:00
J. Ryan Stinnett d83e7d2185 Bug 1288964 - Restore reload buttons in canvas and web audio. r=me
MozReview-Commit-ID: 2ZKDlt8teTL
2016-08-03 18:27:26 -05:00
Eddy Bruel 6e63cd22ba Bug 1184661 - If a listener is not callable, assume it is an event listener object. r=past 2016-08-01 09:09:00 +02:00
Carsten "Tomcat" Book 6c57a4aadc Backed out changeset 2b687444223c (bug 1184461) for landing with wrong bug number 2016-08-04 14:43:25 +02:00
Greg Tatum 5ecf2bffa5 Bug 1275939 - replace domUtils.getCSSValuesForProperty in inplace-editor.js r=tromey
MozReview-Commit-ID: KtuAWnNsnaq
2016-08-01 09:34:00 +02:00
f867443bf1 Bug 1184461 - If a listener is not callable, assume it is an event listener object. r=past
In ThreadActor._getAllEventListeners, we construct a list of handler functions
for each target in the event target chain of a given event target. If a handler
is an event handler object, we obtain the handler function from its handleEvent
property. Otherwise, the handler function is assumed to be the handler itself.

To detect whether a handler is an event handler object, we would check its class
name property. This approach is fragile for several reasons: if the handler is
a proxy, accessing its class name may cause the debuggee to run. Moreover,
since accessing a proxy's class name requires us to enter the compartment of the
proxy's handler, if the latter is a security wrapper, accessing its class name
will cause security warnings in debug mode.

Since a handler is either an event handler object or a function, it should be
safe to assume that a handler is an event handler object if and only if it is
not callable. Checking whether a proxy is callable cannot cause the debuggee to
run. Moreover, it does not require us to enter the compartment of the proxy's
handler, thus avoiding the security warnings we mentioned earlier.
2016-08-03 14:26:06 +02:00
Hallvord R. M. Steen aaf9841849 Bug 1291069, command should be hello.echo() in protocol.js.md docs. r=jryans DONTBUILD
MozReview-Commit-ID: DwYxfeTeWYN
2016-08-02 09:20:04 +09:00
Julian Descottes c861479ceb Bug 1289150 - prevent HTML element style color to impact highlighters;r=zer0
MozReview-Commit-ID: VJekKGEBQb
2016-08-04 16:39:42 +02:00
2d7d4468a6 Bug 1281040 - Make sure we detach from worker client when target is destroyed. r=jlongster 2016-08-08 07:53:37 +02:00
Luca Greco 5eeda63bca Bug 1285557 - Fix eslint errors on webbrowser devtools actor. r=jryans
MozReview-Commit-ID: 5TdmJHqqsn2
2016-07-25 12:18:33 +02:00
Luca Greco 537d059f73 Bug 1285557 - Create a WebExtensionAddonActor based on ChromeActor and TabActor. r=jryans
MozReview-Commit-ID: 70sLUzqHHsl
2016-07-25 16:28:49 +02:00
Carsten "Tomcat" Book 186ae7c42a Merge mozilla-central to fx-team 2016-07-28 17:44:58 +02:00
Luca Greco 626f28f1eb Bug 1287889 - Adopt webconsole _lastConsoleInputEvaluation when the debugger changes. r=bgrins
MozReview-Commit-ID: 8ujphVlekIL
2016-07-25 10:09:14 +02:00
Luca Greco e9239cd320 Bug 1268773 - Test addon wrapper updated in cached addon actor on reload and upgrade. r=ochameau
MozReview-Commit-ID: Fsdptohp22c
2016-07-07 14:55:31 +02:00