Commit Graph

937 Commits

Author SHA1 Message Date
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
nchevobbe
f7d5e045ac Bug 1347490 - Return isConnected in node grip to indicate if a node is in the DOM tree. r=ochameau
node.isConnected (see https://dom.spec.whatwg.org/#dom-node-isconnected) returns true if the node is
in the DOM tree (including in a shadowDOM tree), which can be used in the frontend to display additional
tools and information.

MozReview-Commit-ID: LjUbkc7VPcB
2017-04-04 12:08:54 +02:00
J. Ryan Stinnett
7dc78d9187 Bug 1353559 - Filter out exited browsers from tab list. r=ochameau
This adds higher level protection to ignore exited browser actors, so we don't
end up triggering methods like `form` on them, since they won't make much sense
anyway.

MozReview-Commit-ID: KgUCA04N2fY
2017-04-05 07:27:30 -05:00
J. Ryan Stinnett
50a214cd50 Bug 1353559 - Guard against null browser in exited actor. r=ochameau
MozReview-Commit-ID: 4TZZMywFIdu
2017-04-04 17:41:30 -05:00
Patrick Brosset
5a573258c2 Bug 1353010 - Remove the unused director-manager/registry API; r=ochameau
MozReview-Commit-ID: 3TZUs0MAhAi
2017-04-05 10:44:07 +02:00
bechen
0b9a35ad45 Bug 1318542 - fix testcases due to new pseudo element ::cue. r=heycam
MozReview-Commit-ID: F10y2zTtBoT
2017-04-05 10:50:58 +08:00
Matteo Ferretti
c75591f4c5 Bug 1345434 - Implementation of a virtual canvas technique for grid highlighter; r=pbro
A virtual canvas is basically a canvas that seems bigger than is actually is.
The technique consists in moving a fixed sized canvas during the scrolling, when
is needed, to give the illusion that it always covers the entire document.

MozReview-Commit-ID: Hp4cUZaBdm8
2017-04-04 15:11:04 +02:00
Patrick Brosset
7854006d0a Bug 1338582 - New devtools highlighter for signaling paused state; r=jlast
This adds a new highlighter to our collection of highlighters.
This one is a simple overlay on top of the page and a message at the
top.
It will be used by the debugger to signal to users that script execution
is paused.

In later versions, the message at the top will also contain stepping and
resuming buttons.

MozReview-Commit-ID: JNGWrVjMzkm
2017-04-04 12:03:03 +02:00
Patrick Brosset
131cbe897a Bug 1352369 - Delete unused RectHighlighter CSS; r=zer0
MozReview-Commit-ID: Gz0m9fLJyKS
2017-03-31 12:23:59 +02:00
Julian Descottes
420fd66fac Bug 1350499 - exclude styles for pseudo-els when building boxmodel widget;r=gl
MozReview-Commit-ID: GSoqlJ97KT7
2017-03-29 15:41:42 +02:00
Rahul Chaudhary
67ebe412d6 Bug 1332090 - Added a contrast ratio component to the Color Widget. r=pbro
MozReview-Commit-ID: 9FA0h9ST62E
2017-02-20 22:27:22 -05:00
Gabriel Luong
cbd52e8456 Bug 1350894 - Check if the node is dead in getOffsetParent. r=pbro 2017-03-30 00:10:40 -04:00
Matteo Ferretti
4a6c9485d3 Bug 1349275 - refactored moveInfobar function; r=pbro
- Added `getViewportDimensions`
- Added `getComputedStylePropertyValue` to `CanvasFrameAnonymousContentHelper`
- Refactored totally `moveInfobar` to works with both APZ enabled and new
  positioned absolutely highlighters
- Updated `AutoRefreshHighlighter` for having a `scrollUpdate` method.
- Updated tests

MozReview-Commit-ID: 5m31ZzRzLXr
2017-03-28 12:40:22 +02:00
Iris Hsiao
fc280a6213 Backed out changeset 448adfbcfda1 (bug 1349275) for eslint failure 2017-03-29 10:29:13 +08:00
Matteo Ferretti
7484fd202f Bug 1349275 - refactored moveInfobar function; r=pbro
- Added `getViewportDimensions`
- Added `getComputedStylePropertyValue` to `CanvasFrameAnonymousContentHelper`
- Refactored totally `moveInfobar` to works with both APZ enabled and new
  positioned absolutely highlighters
- Updated `AutoRefreshHighlighter` for having a `scrollUpdate` method.
- Updated tests

MozReview-Commit-ID: 5m31ZzRzLXr
2017-03-28 12:40:22 +02:00
Michael Ratcliffe
cdc6582ec5 Bug 1350525 - Storage Inspector should trim port from hosts for cookies r=pbro
MozReview-Commit-ID: FfsfiXTt96o
2017-04-11 17:09:40 +01:00
Andrew McCreight
df7cef86b2 Bug 1350435 - Compute snapshot ID in the parent process. r=fitzgen,smaug
The parent and content processes can have different temp directories
when sandboxing is enabled, so the process that creates the file for a
heap snapshot must also determine the snapshot ID.

MozReview-Commit-ID: 2UuncT54NXc
2017-03-24 10:34:44 -07:00
Alexandre Poirot
6e5b6bd5c0 Bug 1348885 - Prevent throwing on dead wrapper when processing stacks of error from nuked globals. r=jryans
MozReview-Commit-ID: gdFNYNzXLz
2017-03-23 18:53:57 +01:00
Stanford Lockhart
122249aa04 Bug 1345119 - Part 4: Test test_inspector_getOffsetParent for new actor methods. r=pbro
MozReview-Commit-ID: AqSOEdEZKIy
2017-03-21 21:59:22 -03:00
Stanford Lockhart
41f2b4f7d1 Bug 1345119 - Part 3: Display offset parent of absolutely positioned node in box model. r=gl
MozReview-Commit-ID: 102vRTuIhEh
2017-03-17 23:07:06 -03:00
Stanford Lockhart
7d1eb6f350 Bug 1345119 - Part 2: Server side for retrieving offset parent of DOM node. r=pbro
MozReview-Commit-ID: I51NHlxv6Mp
2017-03-17 23:05:27 -03:00
Iris Hsiao
206cfb29fd Backed out 5 changesets (bug 1345119) dor mochitest failure in test_inspector_getOffsetParent.html
Backed out changeset c9be65ad95f6 (bug 1345119)
Backed out changeset 4e4817e5b6d4 (bug 1345119)
Backed out changeset 6a01debcc43c (bug 1345119)
Backed out changeset 2c6f67f420d0 (bug 1345119)
Backed out changeset ba020c15393d (bug 1345119)
2017-03-24 15:01:47 +08:00