Commit Graph
958 Commits
Author SHA1 Message Date
Andrea Marchesini b813058b9d Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau 2017-05-11 07:26:08 +02:00
Iris Hsiao 68dd07eb3d Backed out changeset c56bd0d1e7c9 (bug 1363429) for build bustage, using-declaration causes a multiple declaration of 'nsIDocument::GetLocation' 2017-05-11 13:55:40 +08:00
Andrea Marchesini c913bd427b Bug 1363429 - Get rid of nsIDOMLocation, r=bz, r=honza, f=ochameau 2017-05-11 07:26:08 +02:00
Mark Banner 06932c9e09 Bug 1363790 - Turn off some ESLint rules for devtools that are in mozilla/recommended but not enabled currently for devtools. r=tromey
MozReview-Commit-ID: Dfse5Wny7nD
2017-05-10 16:51:17 +01:00
Carsten "Tomcat" Book c807d58426 merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
Alexandre Poirot f1ecc74ebf Bug 1362830 - Fix incorrect API call from webconsole actor. r=bgrins
ActorPool.removeActor expects an actor instance, not an ID string.

MozReview-Commit-ID: 366sD7uvHbg
2017-05-09 19:51:55 +02:00
Micah Tigley 07de462ba2 Bug 1332085 - Add Color Name Field to Color Widget. r=gl
MozReview-Commit-ID: AYFulQcvBwv
2017-05-08 20:31:37 -06:00
Fabien Casters 8ca3b6f116 Bug 1331802 - Fix remaining ESLint issues in devtools/server/actors/ r=tromey
MozReview-Commit-ID: 3dqvmCywg3s
2017-05-03 23:26:19 +02:00
Florian Scholz 5500cfbc5d Bug 1353706 – Update errordocs mapping for added and updated MDN docs. r=Honza 2017-05-04 00:49:00 -04:00
Kris Maglione bca9b281cc Bug 1359653: Part 8 - Ignore script cache when loading scripts in gcd script breakpoint tests. r=jimb
MozReview-Commit-ID: DGPBK9GAqQT
2017-05-02 17:31:05 -07:00
Sebastian Hengst d80860be6b Backed out changeset d8dc72ab2406 (bug 1359653) 2017-05-06 11:02:09 +02:00
Kris Maglione 5104fc5d25 Bug 1359653: Part 8 - Ignore script cache when loading scripts in gcd script breakpoint tests. r=jimb
MozReview-Commit-ID: DGPBK9GAqQT
2017-05-02 17:31:05 -07:00
Julian Descottes 4c90f8d068 Bug 1359085 - remove unused devtools util content-globals.js;r=ochameau
MozReview-Commit-ID: K8Knz9B0Gav
2017-04-25 16:53:54 +02:00
Patrick Brosset 90b69f15a0 Bug 1358479 - Check if a grid fragment is valid before highlighting it; r=jdescottes
Grid fragments returned by the chrome-only el.getGridFragments() API
may sometimes in fact be empty. When they are, the returned object still
looks like a fragment, but has either no rows or no columns.
So this commit simply adds a quick check on this in the css grid highlighter
before attempting to highlight a grid fragment.

MozReview-Commit-ID: GjsGu9hpU5G
2017-04-25 14:16:57 +02:00
Matteo Ferretti 0c8cdab39b Bug 1297072 - added support for matrices to handle CSS 2D transformation on grid inspector; r=pbro
- Fixed a bug on `getNodeBounds` that would makes the calculation wrong in case
  of nested frames.
- Centralized all the transformation in `updateCurrentMatrix` function,
  including the scaling due the zoom and display's pixel ratio, and the
  translation to the top left corner of the node inspected.
- Added the transformation from the inspected node to the `currentMatrix`.
- Added `drawLine` and `drawRect` functions, that takes a matrix as argument.
- Position the line's number to the grid itself even when we've infinite lines
  (it's not a regression, it is intended since if a grid is transformed, we
  could have weird results otherwise, so we decided to uniform the behaviors).

MozReview-Commit-ID: 7OUfb6u63Qj
2017-05-03 19:19:19 +02:00
Gabriel Luong 64304b19c1 Bug 1317215 - Add tests for the LayoutActor and GridActor. r=pbro 2017-04-26 15:19:51 -04:00
Jonathan Kew 0d70ee025e Bug 1353000 - Fix canvas size used for font inspector preview to avoid risk of non-integer scaling that may lead to rounding discrepancies. r=gl 2017-04-28 20:04:34 +01:00
Iris Hsiao 84a20ab190 Backed out changeset b3f163644c78 (bug 1317215). a=backout
CLOSED TREE
2017-04-27 11:57:11 +08:00
Iris Hsiao f9253bd61c Backed out changeset 379d1f58868f (bug 1317215) for devtool failures at browser_layout_getAllGrids.js. a=backout
CLOSED TREE
2017-04-27 11:56:53 +08:00
Gabriel Luong ed365769f7 Bug 1317215 - Part 2: Fix eslint errors with browser_layout_getAllGrids.js and devtools/server/tests/browser/head.js. r=me 2017-04-26 22:46:04 -04:00
Gabriel Luong d5984868ef Bug 1317215 - Add tests for the LayoutActor and GridActor. r=pbro 2017-04-26 15:19:51 -04:00
Matteo Ferretti 199353dcee Bug 1359028 - added encodeURIComponent and fixed css class typo; r=pbro
The patch of bug 1353005 removed by mistake a leading dot in a css class, and
the `encodeURIComponent` calls (so the # in the color definition was considered
the hash part in the url).
Also, it appears autoland rejected the last commit from Bug 1353005, so this
patch includes those changes as well.

MozReview-Commit-ID: 2aVW3hYHhSr
2017-04-25 16:35:08 +02:00
Yury Delendik d1ad13d635 Bug 1355263 - Generate better source URL for the wasm module. r=luke
The URLs will have the following format:
   wasm: [<uri-econded-filename-of-host> ":"] <64-bit-hash>

MozReview-Commit-ID: 3diYgRWhki1
2017-04-10 19:08:07 -05:00
Michael Ratcliffe 9b08b49b68 Bug 1073967 - Storage Inspector columns should use natural sort r=nchevobbe
Changlist:
  - Added Jim Palmer's well proven natural sort algorithm.
  - Added natural sort license (MIT).
  - Use natural sort everywhere inside TableWidget.js wherever we use .sort()
  - Changed browser_storage_overflow.js so that the test is faster and more maintainable. The test now also tests column sorting (ascending and descending).
  - Use natural sort everywhere inside storage.js wherever we need to slice the array. Without natural sort here we get e.g. row-1, row-10, row-100, row-2 etc.

MozReview-Commit-ID: FUY7pcLIYml
2017-04-10 18:04:25 +01:00
Markus Stange 36d7413c44 Bug 1350503 - Wrap the performance actor's sharedLibraries value inside an object so that it can be transferred through the debugger protocol. r=gregtatum
MozReview-Commit-ID: 3cXfaSrWFJW
2017-04-20 16:10:47 -04:00
Matteo Ferretti e36bf2991f Bug 1353005 - removed sdk/content/mod and replaced with DOMWindowUtils calls; r=pbro pbro
MozReview-Commit-ID: 7aj8C0zYr6C
2017-04-10 21:47:39 +02:00
Alexandre Poirot bbcad33b7a Bug 1348761 - Fix object inspection performances against objects with large Typed Arrays. r=bgrins
MozReview-Commit-ID: 8QGo2b3pYoL
2017-04-20 19:32:13 +02:00
Kevin Jones 8593e2602b Bug 1345090 - Modify SessionStore to restore tabs with lazy browsers. r=mikedeboer,dao
MozReview-Commit-ID: 5J5UqlWMxKX
2017-04-20 11:01:09 +02:00
Wes Kocher f4bc6586d8 Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Michael Layzell 3d56c6d7ca Bug 1354635 - Part 2: Wrap JS line in devtools to satisfy eslint, a=bustage
MozReview-Commit-ID: AJrmTsonET2
2017-04-18 15:28:38 -04:00
Michael Layzell 852cd4d0fa Bug 1354635 - Send permissions to the content process when debugging service workers, r=catalinb
MozReview-Commit-ID: 8cUh5znQcFN
2017-04-18 14:38:56 -04:00
Daisuke Akatsuka a723d357d8 Bug 1210796 - Part 2: Visualize each properties. r=pbro
MozReview-Commit-ID: Hjb1QyOMNZR
2017-04-18 12:15:54 +09:00
Florian Queze ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Kris Maglione 527c833970 Bug 1314861: Minor optimization: Define globals for shared sandbox modules on the sandbox rather than each module. r=ochameau
MozReview-Commit-ID: Lre6L2u4Y2r
2017-04-14 16:13:41 -07:00
Kris Maglione bdb8ae3dfd Bug 1317697: Split ExtensionContent.jsm into a stub process script. r=mixedpuppy
MozReview-Commit-ID: 4vn0ERZiBQd
2017-04-14 17:00:51 -07:00
Florian Queze 451928e614 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst c609a620b6 merge mozilla-central to autoland. r=merge a=merge 2017-04-14 17:22:00 +02:00
Eugen Sawin 1f617c1192 Bug 1355542 - [2.0] Remove unused web progress callbacks and add missing progress filters. r=felipe 2017-04-13 23:20:17 +02:00
Julian Descottes e3ca23cf09 Bug 1355886 - fix regression when undoing delete node next to a whitespace sibling;r=pbro
MozReview-Commit-ID: GDYzsbCiQcI
2017-04-12 18:59:28 +02:00
Wes Kocher 197a1c4128 Merge autoland to central, a=merge CLOSED TREE 2017-04-12 15:13:30 -07:00
Micah Tigley 8e071888a8 Bug 1347338 - Add ability to grid line name in grid highlighter. r=gl
MozReview-Commit-ID: JvBsGTFxvbL
2017-04-07 21:48:22 -06:00
Julian Descottes de2fed25f3 Bug 1345529 - fix inspector DocumentWaler children() method;r=pbro
The inspector's DocumentWalker had several issues when trying to retrieve
children for a given node, especially if the starting node was filtered
out by the filter function of the walker.

If the starting node was provided by options.center or options.start
and if this starting node was filtered out by the walker's filter
then the walker would fallback to the first valid parent of this node.

eg with
parent1 > parent2 > [valid-node, invalid-node, valid-node]

When asking for the children of parent2, if the walker started on
"invalid-node", then the walker would instead use parent2 and in turn
we would retrieve the children of parent 1

To fix that we can either tell the walker wether it should fallback to a
sibling of the starting node or to a parent, or make sure that the nodes
provided to the walker are valid.

A second issue was with the utility methods _readForward and _readBackward.
They both use the next/previousSibling() methods of a walker in order to
collect all the valid siblings of the walker's current node. But they were
always including the current node of the walker in their return array. And
there is no guarantee that the walker's currentNode is actually valid for it's
filter.

eg with a walker containing [invalid-node-1, invalid-node-2, valid-node].
Let's say the walker is currently on valid-node and we call previousSibling
The walker will do 3 steps:
- this.walker.previousSibling() > returns invalid-node-2, fails filtering
- this.walker.previousSibling() > returns invalid-node-1, fails filtering
- this.walker.previousSibling() > returns null, stop looping and return null

But at this stage the internal walker still points to the last visited node
(invalid-node-1). So if _readForward/Backward blindly add the current node
of the walker, we might be returning invalid nodes.

MozReview-Commit-ID: 72Be7DP5ky6
2017-04-06 23:17:03 +02:00
Phil Ringnalda 667614e01d Backed out changeset fda9bea59c6f (bug 1345529) for timeouts in browser_markup_mutation_01.js 2017-04-10 08:18:03 -07:00
Julian Descottes d0cbbccb43 Bug 1345529 - fix inspector DocumentWaler children() method;r=pbro
The inspector's DocumentWalker had several issues when trying to retrieve
children for a given node, especially if the starting node was filtered
out by the filter function of the walker.

If the starting node was provided by options.center or options.start
and if this starting node was filtered out by the walker's filter
then the walker would fallback to the first valid parent of this node.

eg with
parent1 > parent2 > [valid-node, invalid-node, valid-node]

When asking for the children of parent2, if the walker started on
"invalid-node", then the walker would instead use parent2 and in turn
we would retrieve the children of parent 1

To fix that we can either tell the walker wether it should fallback to a
sibling of the starting node or to a parent, or make sure that the nodes
provided to the walker are valid.

A second issue was with the utility methods _readForward and _readBackward.
They both use the next/previousSibling() methods of a walker in order to
collect all the valid siblings of the walker's current node. But they were
always including the current node of the walker in their return array. And
there is no guarantee that the walker's currentNode is actually valid for it's
filter.

eg with a walker containing [invalid-node-1, invalid-node-2, valid-node].
Let's say the walker is currently on valid-node and we call previousSibling
The walker will do 3 steps:
- this.walker.previousSibling() > returns invalid-node-2, fails filtering
- this.walker.previousSibling() > returns invalid-node-1, fails filtering
- this.walker.previousSibling() > returns null, stop looping and return null

But at this stage the internal walker still points to the last visited node
(invalid-node-1). So if _readForward/Backward blindly add the current node
of the walker, we might be returning invalid nodes.

MozReview-Commit-ID: 72Be7DP5ky6
2017-04-06 23:17:03 +02:00
Patrick Brosset 624e2bd7e3 Bug 1354647 - Move the eyedropper l10n strings to /devtools/shared/; r=jryans
MozReview-Commit-ID: Fgu72wGpFK1
2017-04-07 22:00:00 +02:00
Patrick Brosset e98cd9dee2 Bug 1353012 - Use the ObserverService in webaudio actor instead of sdk/system/events; r=jdescottes
MozReview-Commit-ID: DxNf72egWVP
2017-04-05 15:44:46 +02:00
J. Ryan Stinnett 0ec08eee8e Bug 1352157 - Avoid listTabs for global actors. r=ochameau
Adds a new `getRoot` request to the root actor which lists the global actors
only (leaving out the tabs).  This is a much better fit for callers who want to
access some global actor only, since it avoids visiting every tab, which could
be a very expensive operation.

MozReview-Commit-ID: 1lIAuaV7zoF
2017-04-06 23:00:22 -05:00
J. Ryan Stinnett ca88cfaf4a Bug 1352157 - Improve root actor style with async / await. r=ochameau
MozReview-Commit-ID: 3UspkZ63auc
2017-04-06 22:25:34 -05:00
Julian Descottes e46d87bcb7 Bug 1341612 - align grid highlighter numbers with lines and increase readability;r=zer0
MozReview-Commit-ID: AGmWT3gmzL0
2017-03-28 20:42:00 +02:00