Commit Graph

603 Commits

Author SHA1 Message Date
Tom Tromey
8cfae2d757 Bug 1244227 - Add an API to enable throttling. r=Honza
MozReview-Commit-ID: BirjFHVSZN7
2016-08-23 07:36:52 -06:00
Gabriel Luong
fb0c04683f Bug 1249555 - Display edge of explicit grid and implicit grid differently in the css grid inspector r=pbro 2016-08-23 08:33:08 -04:00
Tim Nguyen
b120997df1 Bug 1254386 - Move custom UA emulation to emulation actor. r=jryans
MozReview-Commit-ID: 9005ktskEVk
2016-08-23 01:51:16 -07:00
Gabriel Luong
3a25a23ab5 Bug 1296912 - Fix the CSS grid highlighter size when zooming in and out by limiting the devicePixelRatio to 2 decimal places r=pbro 2016-08-22 14:57:27 -04:00
Eddy Bruel
f389d7ede3 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
Wes Kocher
622e92bcb5 Merge m-c to fx-team, a=merge 2016-08-19 18:41:03 -07:00
Gabriel Luong
48cab5785e 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
ca004651b3 Merge fx-team to m-c. a=merge 2016-08-19 09:54:25 -04:00
Patrick Brosset
d85ca4e057 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
3ca2b33eec 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
ae78ab94fa Merge fx-team to central, a=merge 2016-08-17 16:53:20 -07:00
Oriol
185be6e413 Bug 1295729 - Ensure that properties are array indices when the console checks if an object is a pseudo-array. r=fitzgen
--HG--
extra : rebase_source : bc98c44868562de9349fce6fcb903557fb10e996
2016-08-16 14:59:00 -04:00
Tom Tromey
1d6c2684eb Bug 1278625 - move SimpleStringFront to specs/string.js; r=ejpbruel
MozReview-Commit-ID: Ib11CZwL4pP

--HG--
extra : rebase_source : 85b35231efa1e987bd4742a7d9255fb19bfeb435
2016-08-16 11:01:33 -06:00
J. Ryan Stinnett
e6e502f631 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
89421af622 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
3ed8a3dc20 Bug 1240912 - Convert Network Monitor to setupInParent. r=ochameau
MozReview-Commit-ID: 2fqsnR7IMWO
2016-08-19 10:01:32 -05:00
J. Ryan Stinnett
d3684d513f 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
bb9b0bc5bb 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
9defeffe44 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
986b4a670d 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
da55fffdc5 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
dc4c04d63b 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
e6a3dde98e 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
872cc6b6e4 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
359dccb2ec 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
Eddy Bruel
2bdbd75fa0 Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Eddy Bruel
4946e9577a Bug 1288423 - Remove the old Actor/FrontClass constructors. r=fitzgen 2016-08-10 17:35:50 +02:00
Eddy Bruel
5f2b46097a Bug 1288423 - Decouple PerformanceEntriesActor from PerformanceEntriesFront. r=fitzgen 2016-08-10 17:35:31 +02:00
Carsten "Tomcat" Book
7b871681a3 merge fx-team to mozilla-central a=merge 2016-08-09 15:43:44 +02:00
Tom Tromey
4baf48b18a Bug 1291834 - make indexDB a global via devtools loader; r=jryans
MozReview-Commit-ID: 3NnhUWaBBra

--HG--
extra : rebase_source : a9012b11c99b11eb6e4742ca66329a882fa1c553
2016-08-03 13:26:34 -06:00
Julian Descottes
f8784bfe0a 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

--HG--
extra : rebase_source : e341a991c7583b855c66cdf2700b9ee9ed4c64a6
2016-08-06 15:04:49 +02:00
Wes Kocher
005ac12647 Merge fx-team to m-c a=merge 2016-08-07 00:16:15 -07:00
James Long
0b2677dddc 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
ce87179fdf Bug 1292574 - make CSS a global rather than a module in devtools loader; r=gregtatum
MozReview-Commit-ID: 5RYwDAW4wxt

--HG--
extra : rebase_source : 7d0df48344ad79947ec5d191a7c49411c2ea8cba
2016-08-05 08:32:59 -06:00
Brian Grinstead
ebd177e3cd Bug 1288475 - Remove code unused in client and server versions of webconsole utils;r=tromey
MozReview-Commit-ID: GcNg9nEI9d4

--HG--
extra : rebase_source : aa23b027673b9bcfcdb9d8751d528335ac5afbaa
2016-08-05 10:44:42 -07:00
Brian Grinstead
5a0322040e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H

--HG--
rename : devtools/shared/webconsole/utils.js => devtools/client/webconsole/utils.js
rename : devtools/shared/webconsole/utils.js => devtools/server/actors/utils/webconsole-utils.js
rename : devtools/shared/webconsole/worker-utils.js => devtools/server/actors/utils/webconsole-worker-utils.js
extra : rebase_source : 6f1b2afba2c3cf3e3d17f839c11bf15e89a2f69d
2016-08-05 10:44:38 -07:00
Tom Tromey
4a3acb8220 Bug 1287631 - fix typo in Services.appinfo use in devtools; r=fitzgen
MozReview-Commit-ID: 1HTz3uRgMfT

--HG--
extra : rebase_source : 5d2bdbb2c1b4ab2b91d892578d85ed03f7df55a0
2016-08-05 07:45:18 -06:00
Jarda Snajdr
198d6c27e0 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
06b68bac22 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
d97941f0fb Bug 1102269 - Fixed infobar getting outside visible area r=ntim
MozReview-Commit-ID: 7yNokF0bjj9
2016-08-02 16:51:06 +08:00
Greg Tatum
34824c4105 Bug 1290142 - Lint devtools/client/performance/test/; r=jsantell
MozReview-Commit-ID: FprlN3Vm9H7

--HG--
extra : rebase_source : f9b225e5a4464b7e6f937e4670a0bfbf472dc916
2016-08-02 17:18:01 -05:00
Carsten "Tomcat" Book
389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
J. Ryan Stinnett
9b60f9ebc6 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
c8d0c59aee Bug 1184661 - If a listener is not callable, assume it is an event listener object. r=past
--HG--
extra : rebase_source : cbea66acb5acfbdc1b83acd797566bb5a5be1c75
2016-08-01 09:09:00 +02:00
Carsten "Tomcat" Book
04c4fa957d Backed out changeset 2b687444223c (bug 1184461) for landing with wrong bug number
--HG--
extra : rebase_source : 0200fb421ef08622252434b8e3f6893e735befb7
2016-08-04 14:43:25 +02:00
Greg Tatum
2ba8b8b1ab Bug 1275939 - replace domUtils.getCSSValuesForProperty in inplace-editor.js r=tromey
MozReview-Commit-ID: KtuAWnNsnaq

--HG--
rename : devtools/server/tests/mochitest/test_css-properties.html => devtools/server/tests/mochitest/test_css-properties_01.html
extra : rebase_source : 3002ac705c2a99fa04796666aa40261abdc87646
2016-08-01 09:34:00 +02:00
Eddy Bruel
1244c00ca8 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
bbc7e74d88 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
42a2a71cdf Bug 1289150 - prevent HTML element style color to impact highlighters;r=zer0
MozReview-Commit-ID: VJekKGEBQb

--HG--
extra : rebase_source : c2dfd43ba601bc20f88c6b286d91269724609335
2016-08-04 16:39:42 +02:00
Eddy Bruel
f2ee475ad4 Bug 1281040 - Make sure we detach from worker client when target is destroyed. r=jlongster 2016-08-08 07:53:37 +02:00