Commit Graph
608 Commits
Author SHA1 Message Date
Patrick Brosset 5c93d45ee6 Bug 1289543 - Disable the eyedropper on non-HTML documents; r=miker
The eyedropper code now bails out if the content window is XUL, since
highlighters cant be inserted into non-HTML documents.
And the inspector hides the eyedropper buttons in the toolbar and in the
color-picker if the document isn't HTML.

MozReview-Commit-ID: 7AgRV8Qu9gz
2016-08-22 14:59:08 +02:00
Ryan VanderMeulen 7049259c8a Merge m-c to inbound. a=merge 2016-08-25 08:27:17 -04:00
Shu-yu Guo 45f2e559d8 Bug 1263355 - Rewrite the frontend: bindings. (r=jorendorff,Waldo) 2016-08-25 01:28:47 -07:00
Gabriel Luong 31e5f0cb7e Bug 1249557 - Part 1: Display the line numbers in the css grid highlighter r=pbro 2016-08-24 09:08:17 -04:00
Patrick Brosset 8f123f570d Bug 1295008 - Hide the previous eyedropper when we request to show a new one; r=miker
The eyedropper can be shown in 2 distinct ways:
- the 'eyedropper' gcli command can be called (from the dev toolboar
  or from the browser devtools menu),
- or the inspector's 'pickColorFromPage' method can be called (from
  the inspector toolbar or from the color-picker in the ruleview).

Before this change, it was possible to show several eyedropper because
these 2 codepaths didn't know about each other.
Now, when executing the gcli command, the inspector's
'cancelPickColorFromPage' method is called to hide it first.
And, when the 'pickColorFromPage' method is called, the 'eyedropper --hide'
gcli command is called too.

This way, there's only one eyedropper shown.

There was also a problem where the gcli command would create a new
eyedropper everytime it was called. This was fixed too, by maintaining a
WeakMap of all eyedroppers opened so far.

MozReview-Commit-ID: F6fBP5R7ZTJ
2016-08-24 10:29:49 +02:00
Tom Tromey 070522efed Bug 1244227 - Add an API to enable throttling. r=Honza
MozReview-Commit-ID: BirjFHVSZN7
2016-08-23 07:36:52 -06:00
Gabriel Luong 5790336ccb 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 98306db559 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 b4fc92a895 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
fbdb0dae94 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 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