Commit Graph

1255 Commits

Author SHA1 Message Date
Luca Greco
f6c2f83ad4 Bug 1416928 - Ensure that cached ContentScript sources are not skipped by the ThreadActor.onNewScript. r=yulia
MozReview-Commit-ID: JJjcAvsI3Na

--HG--
extra : rebase_source : 399e1be616fc7eedd6d753aafa9af5e21fdc6b19
2017-11-14 16:24:12 +01:00
Geoff Brown
3556bc0ffe Bug 1294873 - Skip test_websocket-server.html on osx, to avoid intermittent leaks; r=me, a=test-only 2017-11-23 16:37:21 -07:00
Jan Odvarko
3bd627cefb Bug 1416201 - HTTP request stack trace should be lazy loaded;r=rickychien
MozReview-Commit-ID: 5SWLLcNqORz

--HG--
extra : rebase_source : 400e5d48848b087f8965652df6b9c37686fb4b40
2017-11-23 13:35:04 +01:00
Julian Descottes
af2e5d5dd1 Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG

--HG--
extra : rebase_source : 7704264e84d96e03a0c789103ff466980913d4d2
2017-11-13 21:22:15 +01:00
Julian Descottes
c2cea9f242 Bug 1416711 - Remove windowType argument from registerActors;r=ochameau
The windowType option of registerActors has nothing to do with
registering actors. It is only used in one spot in the codebase, so
switch this one to DebuggerServer.chromeWindowType = "..."; and
remove the option from registerActors.

MozReview-Commit-ID: QH6GKmTbVq

--HG--
extra : rebase_source : 13d70ddc21cae2b43cab2899c0e4b6f597c4f3ec
2017-11-13 21:06:59 +01:00
Julian Descottes
7324ecc861 Bug 1416711 - Stop guarding consumer calls to DebuggerServer.init();r=ochameau
DebuggerServer.init() already bails out if it was previously initialized
so we could avoid guarding the calls to init() with it everywhere.

Registering an actor module several times is also a noop as the Server
keeps a map of all the already registered modules and will bail out if
the module is already known.

MozReview-Commit-ID: 4ONLlx9253i

--HG--
extra : rebase_source : a6fce209baf5e019b6a216761c01832a30332343
2017-11-13 21:04:43 +01:00
Julian Descottes
8938049a1b Bug 1416711 - Remove default values for registerActors;r=ochameau
The default values for registerActors are never used in the codebase
and feel counter intuitive as they set all booleans to true.

MozReview-Commit-ID: 25zaJss9E4R

--HG--
extra : rebase_source : 9cbbd8ea44d7cc64bb17ada5c06cc1b7b016067b
2017-11-13 20:35:00 +01:00
Julian Descottes
4cac7dcb25 Bug 1416711 - Migrate addBrowser/TabActors to registerActors;r=ochameau
DebuggerServer has old APIs addBrowserActors & addTabActors that can be
replaced by calls to registerActors.

MozReview-Commit-ID: KpYJpbSHM8I

--HG--
extra : rebase_source : c7f20edf503b944ef2582b5fe73bd6d899c0d1cc
2017-11-13 20:29:55 +01:00
Julian Descottes
ab38691d4f Bug 1416711 - Remove unused restrictPrivileges argument in addBrowserActors;r=ochameau
restrictPrivileges was used for FirefoxOS and can be removed now.

MozReview-Commit-ID: J5SYQ0OPTSk

--HG--
extra : rebase_source : 9c92fab26f867e39ebe0cd5e93994d6126374740
2017-11-13 16:41:23 +01:00
shindli
a2e65c617d Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-23 00:17:19 +02:00
shindli
82254ca1cf Merge inbound to mozilla-central r=merge a=merge 2017-11-22 23:29:44 +02:00
Mike Park
d426efd011 Bug 1419792 - Shapes highlighter drawn inaccurately for shape-outside with margins. r=gl
MozReview-Commit-ID: 1MGCvsDXJ6O
2017-11-22 12:05:55 -05:00
Oriol Brufau
aa52f83dde Bug 1419447 - Cleanup PseudoArray console previewer. r=nchevobbe
MozReview-Commit-ID: 6GqYgvGCMXS

--HG--
extra : rebase_source : 3bdd0e5c1f5bd08f944286ceedece241744e97f9
2017-11-20 01:26:30 +01:00
Ciure Andrei
c7cf019289 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-22 12:20:25 +02:00
Coroiu Cristina
9eb4f34b0a Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-22 01:50:20 +02:00
Coroiu Cristina
b1140e3113 Backed out changeset f10d05c0b3d2 (bug 1408708) for failing devtools at devtools/client/styleeditor/test/browser_styleeditor_bug_1405342_serviceworker_iframes.js on a CLOSED TREE 2017-11-22 00:37:27 +02:00
Hiroyuki Ikezoe
b95b10c42e Bug 1419221 - Introduce a new argument for getUnanimatedComputedStyle to be able to flush pending styles. r=birtles
Even with this patch, in Gecko getUnanimatedComputedStyle flushes pendings
styles somehow.  Also in Stylo the function flushes pending styles if the
target element hasn't yet styled or Servo style data has cleared for some
reasons (e.g. the element is in display:none subtree).

MozReview-Commit-ID: HCizzM0JnFz

--HG--
extra : rebase_source : 81f130f35794d6ddcf6b7e7f70566d521ea63d31
2017-11-21 18:03:17 +09:00
Liam
0fc77839e5 Bug 1402633 - Display the window dimensions with the ruler tools r=pbro
MozReview-Commit-ID: 2jMvUu7JM8M
2017-09-23 13:44:43 -06:00
Nicolas Chevobbe
7c542cfde6 Bug 1371936 - Fix erroneous Object as ArrayLike grip; r=bgrins.
We only label Object as being ArrayLike if they have consecutive, numeric indexes, starting at 0,
and that could contain only a non-numeric length property that matches the actual number of numeric
keys in the object.
A test is added to make sure we don't regress this.
Fix old console frontend tests which relied on the bad implementation of ArrayLike (and delete
test cases now covered by the server test).

MozReview-Commit-ID: ATF7WypNVhh

--HG--
extra : rebase_source : 5e6a0ef0da84cf89518164f518a257bd1f0d5fd8
2017-11-16 16:04:42 +01:00
Ryan Leake
280baffc4c Bug 1333254 - Adjust variations of 'device pixel ratio' spelling. r=jryans
MozReview-Commit-ID: 9Fuc3pbX6Ey


--HG--
rename : devtools/client/responsive.html/components/DprSelector.js => devtools/client/responsive.html/components/DevicePixelRatioSelector.js
2017-11-17 11:08:42 -06:00
Joel Maher
eb7c7c286f Bug 1417653 - clean up a few moz.build files that have typos. r=gbrown 2017-11-16 08:56:51 -05:00
Nicolas Chevobbe
923cfeaa4e Bug 1383711 - Make addOneTimeListener return a Promise; r=ochameau.
Switch some calls to addOneTimeListener from callback-style to Promise.

MozReview-Commit-ID: F9AlSvK0MAH

--HG--
extra : rebase_source : 076522e89004f8a4634b4f7732800a5ec14ce633
2017-11-06 08:40:39 +01:00
Noemi Erli
550148ab69 Merge inbound to mozilla-central r=merge a=merge 2017-11-15 11:57:12 +02:00
Gabriel Luong
16731e0120 Bug 1387511 - Part 2: Format css-grid.js r=pbro 2017-11-14 22:02:51 -05:00
Gabriel Luong
f085fec318 Bug 1387511 - Part 1: Use the grid negative number platform API to render negative line numbers correctly in css grid inspector. r=pbro 2017-11-14 22:02:44 -05:00
Mike Park
47961d34b3 Bug 1411645 - Shapes highlighter: resize on one axis in transform mode for polygon and ellipse. r=pbro
MozReview-Commit-ID: 9Td88QCRPQg

--HG--
extra : rebase_source : b5aaa71335964aad5d60a3bd7b623d9ec64341e6
2017-11-01 11:19:13 -04:00
Mark Banner
0370057096 Bug 1371293 - Fix various devtools warnings after upgrading to ESLint 4. r=miker
ESLint 4 will turn on all rules after an eslint-enable with no arguments. Therefore be more specific about which rules are being disabled.

MozReview-Commit-ID: IoPBG72zySm

--HG--
extra : rebase_source : f0095f7a9bc3020c1a36387cd033d1b1238a61cf
2017-11-06 14:01:33 +00:00
Gabriel Luong
c9b7437500 Bug 1414362 - Outline the flex container and items in the flexbox highlighter. r=pbro 2017-11-13 10:00:39 -05:00
Bill McCloskey
51c04f774f Bug 1395029 - Use blockThreadedExecution for debugging (r=jimb)
MozReview-Commit-ID: 2KRXZrTulwU
2017-11-11 21:04:20 -08:00
Mike Park
e327bde121 Bug 1411402 - Change mouse cursor when hovering/clicking shapes highlighter markers. r=pbro
MozReview-Commit-ID: 9idXQmwatiW

--HG--
extra : rebase_source : b2aac18b3ce32c91523a9cf4328ec8bef82ef1f7
2017-10-25 14:36:03 -04:00
Boris Zbarsky
97828fce1d Bug 1415389. Make ChromeUtils a WebIDL namespace. Remove ThreadSafeChromeUtils. r=kmag
MozReview-Commit-ID: 9ysAeaBMNVt
2017-11-08 00:25:33 -05:00
Ishigaki
abd61e92e8 Bug 1339895 - Improve error message for unexpected token. r=arai 2017-11-02 13:15:27 +09:00
Mike Park
caef5991cb Bug 1412278 - Fix CSS shapes editing for shapes in iframes where points are outside the frame. r=gl
MozReview-Commit-ID: 8hO5GqJncMS

--HG--
extra : rebase_source : 1df9c44ffe780af963040f3a7c907b6bebcb1e08
2017-11-02 16:07:38 -04:00
Mike Park
4ad079896b Bug 1282721 - Add unit tests for shapes highlighter translate/scale for all shapes. r=pbro
MozReview-Commit-ID: JJg0zFtvi9s

--HG--
extra : rebase_source : ec44826d7cc58a6df797a340912644ff6f9ed222
2017-10-12 15:54:45 -04:00
Mike Park
f5bef41c46 Bug 1282721 - Add transform mode to shapes highlighter with translation/scaling for all shapes. r=pbro
MozReview-Commit-ID: HhWY1pT7Mqu

--HG--
extra : rebase_source : 4c4eb2b4a14abc7bfa8d106562c7274ab75a7f4d
2017-10-10 14:05:50 -04:00
Gabriel Luong
f32b543415 Bug 1412555 - Update canvas position on scroll in the css grid highlighter. r=pbro 2017-11-02 09:46:30 -04:00
Julian Descottes
740c32a7eb Bug 1403871 - rename getAllGrids to getGrids;r=gl
MozReview-Commit-ID: I9MZ2mrVMiT

--HG--
rename : devtools/server/tests/browser/browser_layout_getAllGrids.js => devtools/server/tests/browser/browser_layout_getGrids.js
extra : rebase_source : c1aaa0195adea95e1158edb6943060e73684a605
2017-11-21 17:31:50 +01:00
Julian Descottes
5aca941cf5 bug 1403871 - use getElementsWithGrid to retrieve grid containers in devtools;r=gl
MozReview-Commit-ID: 3AHPg5aEbBN

--HG--
extra : rebase_source : df0bb583afa34df7d0a6b25e2e733f253863d030
2017-11-21 15:28:22 +01:00
Julian Descottes
0ca3e6d14c Bug 1403871 - remove misleading traverseFrames argument in getAllGrids;r=gl
The current implementation of getAllGrids supports a traverseFrames argument
supposed to enable or not traversing nested frames under a provided root node.

First of all this argument is only used in server tests.

Also, even if this argument is false, the tree walk performed will traverse
frames anyway, meaning there is no way here to not traverse frames when calling
getAllGrids.

The only real difference when calling the method with traverseFrames = true
is that we will retrieve grid containers no longer contained in the root node
(making the root node pointless).

If we really want to implement this behavior in the future, we should split the
API in two with getGrids(node) and getAllGrids(). For now I just remove the
argument since it is not useful.


MozReview-Commit-ID: JDVLL4qQYDv

--HG--
extra : rebase_source : db3c8ab4afd726379294198bdadd3383a6a73f1f
2017-11-21 17:15:20 +01:00
Adrian Wielgosik
7712fbf84c Bug 1412538 - Optimize discovery of React listeners in inspector. r=miker
MozReview-Commit-ID: 6k9weYdzRLW

--HG--
extra : rebase_source : a088c9a9d974c933811334de2415a90dce9e890e
2017-10-28 18:42:07 +02:00
Mark Banner
e5c84c43e2 Bug 1411368 - Automatically fix space-unary-ops issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: 5VJZgNjOuX9

--HG--
extra : rebase_source : 0c0b5ae58ef677ba49333e71333fb1bcd896e895
2017-10-26 13:14:13 +01:00
Mark Banner
00b488c118 Bug 1411368 - Automatically fix padded-blocks issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: 7GvGbTjz0pe

--HG--
extra : rebase_source : 964c8372b792b26c4d86b2cafc640e0df7998681
2017-10-26 12:27:04 +01:00
Mark Banner
4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Rofael Aleezada
626c4563b7 Bug 818634 - Remove support for Date.prototype.toLocaleFormat. r=gandalf, r=anba 2017-10-18 21:51:32 -05:00
Gabriel Luong
294c5fd86d Bug 1409970 - Part 2: Adds an initial FlexboxHighlighter boilerplate. r=pbro 2017-10-24 22:04:10 -04:00
Gabriel Luong
8b103875f0 Bug 1409970 - Part 1: Refactor the canvas position utility code to a separate file. r=pbro 2017-10-24 22:03:59 -04:00
Alexandre Poirot
fb35667385 Bug 1408708 - Fetch stylesheet content via stylesheet window instead of top level content window. r=pbro
--HG--
extra : rebase_source : 07cc1370f13a45e6b5153808f99159f21764f291
2017-11-21 10:42:00 -05:00
Julian Descottes
c987281ee8 Bug 1171482 - throttle new-mutations events in inspector actor;r=bgrins
MozReview-Commit-ID: KaXW7UeNQny

--HG--
extra : rebase_source : 2b0308a141c1f5d0a6b0e8889c0968a146274308
extra : source : c40f41e3f68393a8d1aff7c231986bee035edcff
2017-10-09 13:20:25 +02:00
Gabriel Luong
6e7d4d688b Bug 1409968 - Follow up: Add a semicolon to fix eslint error. r=me 2017-10-19 15:43:59 -04:00
Gabriel Luong
1d950732d8 Bug 1409968 - Implement FlexboxActor for fetching all flexbox containers. r=pbro 2017-10-19 15:24:57 -04:00