Commit Graph
2118 Commits
Author SHA1 Message Date
Gurzau Raul d8408ebbb6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-16 19:55:39 +02:00
Jason Laster 609c5a77d9 Bug 1504222 - Notify the client when devtools goes from replaying to recording. r=dwalsh
Tags:

Bug #: 1504222

Differential Revision: https://phabricator.services.mozilla.com/D11593
2018-11-16 10:24:27 -05:00
Daisuke Akatsuka e1a2af0ac1 Bug 1497449: Introduce deviceName into getSystemInfo(). r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D11748
2018-11-16 04:30:29 +00:00
Yura Zenevich 64a8563fd4 Bug 1505848 - switch from CSS based approach to calculating contrast to canvas one, that also handles gradients and images. r=jdescottes,pbro
MozReview-Commit-ID: JS39hAY571f

Differential Revision: https://phabricator.services.mozilla.com/D11368
2018-11-16 03:59:08 +00:00
Yura Zenevich 0030e8d93a Bug 1505848 - expose some of the css color utils and ensure that RGBA alpha value is not cut off at 1 decimal. r=pbro
MozReview-Commit-ID: 6xTExCWRz4p

Differential Revision: https://phabricator.services.mozilla.com/D11367
2018-11-16 03:59:06 +00:00
Alexandre Poirot e1d0ca7c1b Bug 1506548 - Return WorkerTargetFront from listWorkers instead of form. r=yulia
MozReview-Commit-ID: 4CBQNwC8tKq

Depends on D11762

Differential Revision: https://phabricator.services.mozilla.com/D11763
2018-11-15 10:23:50 +00:00
Alexandre Poirot a517296222 Bug 1506549 - Introduce API to listen for new child fronts of a given type. r=yulia
MozReview-Commit-ID: EKWTGhGo0VM

Depends on D11624

Differential Revision: https://phabricator.services.mozilla.com/D11625
2018-11-15 10:23:00 +00:00
Alexandre Poirot e9c1084d13 Bug 1506549 - Stop returning the actor from Pool.manage. r=yulia
This was only used by test and isn't much useful.

MozReview-Commit-ID: DeIimVmMOOs

Depends on D11623

Differential Revision: https://phabricator.services.mozilla.com/D11624
2018-11-15 10:22:58 +00:00
Alexandre Poirot 33dada0fa3 Bug 1506549 - correctly type workerListChanged on ContentProcessTarget spec. r=yulia
It allows to send the event through the front rather than DebuggerClient.

MozReview-Commit-ID: H8zEwAlUWDb

Depends on D11622

Differential Revision: https://phabricator.services.mozilla.com/D11623
2018-11-15 10:22:56 +00:00
Alexandre Poirot 781a5ac688 Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-15 10:22:49 +00:00
Alexandre Poirot 46971acb4d Bug 1506549 - Either pass a front or a form to Target constructor. r=yulia
MozReview-Commit-ID: BWsvAcWthnF

Differential Revision: https://phabricator.services.mozilla.com/D11693
2018-11-15 10:22:47 +00:00
Nicolas Chevobbe 79147a9c34 Bug 1216632 - Make autocompletion work on $_ and $0; r=bgrins.
To make $0 autocompletion work, we need to pass the current
selectedNode actor from the frontend, so we can retrieve the
object reference later.
For $_, we need the webconsole actor reference to be able
to retrieve the last input result.
Since the list of parameters of JsPropertyProviders was
getting a bit long, we transform them in an object so it's
more legible on the consumer side.
Mochitests are added for both helpers to ensure this work
as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11866
2018-11-15 09:49:14 +00:00
Razvan Maries 04523c7320 Merge mozilla-inbound to mozilla-central a=merge 2018-11-15 00:16:46 +02:00
Andreea Pavel 9d41a0a2bf Backed out 5 changesets (bug 1506549) for failing devtools at devtools/client/aboutdebugging/test/browser_service_workers_status.js on a CLOSED TREE
Backed out changeset 6be66dea928c (bug 1506549)
Backed out changeset da0d76d0e8fc (bug 1506549)
Backed out changeset 490eeba8f9f7 (bug 1506549)
Backed out changeset 97554f465eca (bug 1506549)
Backed out changeset 4f259de6cce0 (bug 1506549)
2018-11-14 21:46:07 +02:00
Alexandre Poirot d11fed2899 Bug 1506549 - Introduce API to listen for new child fronts of a given type. r=yulia
MozReview-Commit-ID: EKWTGhGo0VM

Depends on D11624

Differential Revision: https://phabricator.services.mozilla.com/D11625
2018-11-14 16:20:57 +00:00
Alexandre Poirot b2d3c01b7c Bug 1506549 - Stop returning the actor from Pool.manage. r=yulia
This was only used by test and isn't much useful.

MozReview-Commit-ID: DeIimVmMOOs

Depends on D11623

Differential Revision: https://phabricator.services.mozilla.com/D11624
2018-11-14 15:48:20 +00:00
Alexandre Poirot af4322f954 Bug 1506549 - correctly type workerListChanged on ContentProcessTarget spec. r=yulia
It allows to send the event through the front rather than DebuggerClient.

MozReview-Commit-ID: H8zEwAlUWDb

Depends on D11622

Differential Revision: https://phabricator.services.mozilla.com/D11623
2018-11-14 15:48:18 +00:00
Alexandre Poirot 0d5dc1f31e Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-14 15:48:16 +00:00
Alexandre Poirot 8a07616bea Bug 1506549 - Either pass a front or a form to Target constructor. r=yulia
MozReview-Commit-ID: BWsvAcWthnF

Differential Revision: https://phabricator.services.mozilla.com/D11693
2018-11-14 15:48:14 +00:00
Julian Descottes 2848b0a6f8 Bug 1507071 - Explicitly uninstall valence and adbhelper when starting aboutdebugging and webide;r=ochameau
Depends on D11862

Differential Revision: https://phabricator.services.mozilla.com/D11890
2018-11-14 15:33:01 +00:00
Julian Descottes 5c2f850fda Bug 1507071 - Uninstall valence when starting adb-addon module;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D11862
2018-11-14 15:27:57 +00:00
Paolo Amadini d03e533476 Bug 1496827 - Remove the "notification" binding. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D11650
2018-11-13 12:56:42 +00:00
Alexandre Poirot 21259d0507 Bug 1506545 - Instantiate Target for ContentProcessTargetActor via its front. r=yulia
MozReview-Commit-ID: EE4d0YULRBU

Depends on D11614

Differential Revision: https://phabricator.services.mozilla.com/D11615
2018-11-13 20:39:58 +00:00
Alexandre Poirot 0ebd9905d3 Bug 1506545 - Stop overloading Pool.actor from Front class. r=yulia
Front.actor custom implementation is only used from Front class and doesn't match Pool's one behavior.
Front users would expect to see the one from Pool as it inherits from it.

MozReview-Commit-ID: 8plo2K5kEWq

Differential Revision: https://phabricator.services.mozilla.com/D11614
2018-11-13 14:22:24 +00:00
Razvan Caliman be2b453167 Bug 1500947 - (Part 3) Update indices of tracked declarations when one is removed; r=pbro
Depends on D11209

We need to take care when deleting a declaration. This means shifting the indexes of declarations which follow it in the CSS rule. To do this, we iterate over all tracked added/removed declarations and make sure to decrement their index if it is larger than the index of the deleted one.

The Rule view and specialized editors do not support inserting declarations at any other position other than at the end of the existing declarations list. For now, it is safe to assume all newly added declarations will not shift any tracked indexes. But we will need to handle this for other use cases, like the Style Editor or manual editing of element style attributes.

MozReview-Commit-ID: InrNbsNsqz6

Differential Revision: https://phabricator.services.mozilla.com/D11318
2018-11-13 09:00:48 +00:00
Alexandre Poirot 1fc5daee89 Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia
MozReview-Commit-ID: E9OiwqDwNk7

Differential Revision: https://phabricator.services.mozilla.com/D11758
2018-11-13 14:07:36 +00:00
Cosmin Sabou 76e87a75a1 Merge mozilla-central to mozilla-inbound. a=merge 2018-11-12 23:56:08 +02:00
Razvan Maries 4edcde01ea Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-11-12 19:22:31 +02:00
Emilio Cobos Álvarez 7a873f6762 Bug 1492958 - Update the devtools property database. 2018-11-12 13:47:45 +01:00
Margareta Eliza Balazs 9eacffbd58 Backed out 5 changesets (bug 1492958) for bc failures in browser/base/content/test/static/browser_parsable_css.js CLOSED TREE
Backed out changeset d7c8793ee054 (bug 1492958)
Backed out changeset e59edfbbd327 (bug 1492958)
Backed out changeset 5e643bc2e17b (bug 1492958)
Backed out changeset 59cf251c1a59 (bug 1492958)
Backed out changeset edc955448df6 (bug 1492958)
2018-11-12 14:36:43 +02:00
Emilio Cobos Álvarez f46393b0e8 Bug 1492958 - Update the devtools property database. 2018-11-12 11:51:53 +01:00
Michael Ratcliffe dd5132e029 Bug 1506597 - Expose DOMPoint and DOMQUAD TO DevTools modules r=gl
We need these for the flexbox highlighter.

Differential Revision: https://phabricator.services.mozilla.com/D11653
2018-11-12 16:16:38 +00:00
Julian Descottes dc150b343f Bug 1505285 - Restore favicons option for root listTabs;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D11161
2018-11-07 16:44:37 +00:00
Nicolas Chevobbe 549a619b21 Bug 1479366 - Handle Number literals in JsPropertyProvider; r=bgrins.
When provided a number literal, JsPropertyProvider would
not return anything.
This patch solves this issue by adding an if case for those
objects.
Numerous test cases are added in test_js_property_provider to
make sure we handle this as expected and that we don't have
false positives.

Differential Revision: https://phabricator.services.mozilla.com/D11483
2018-11-12 07:39:38 +00:00
Paolo Amadini ecaee75fcc Bug 1471403 - Part 2 - Lazify the creation of "notificationbox" elements. r=dao,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D10892
2018-11-09 14:38:49 +00:00
Gurzau Raul 412b8e6f9c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-09 07:46:56 +02:00
Mats Palmgren 7305dbe3dd Bug 1501506 - Add -webkit-appearance:progress-bar and make that the default for <progress> for compatibility with other UAs. r=jwatt
Keep our old 'progressbar' as an alias for now, but unship
'progresschunk' by restricting it to UA/chrome sheets only.
Unship 'progresschunk-vertical' by removing it since it's
not used internally for anything.
2018-11-09 04:25:56 +01:00
Mats Palmgren 90382edb39 Bug 1501483 - Add -webkit-appearance:meter and make that the default for <meter> for compatibility with other UAs. r=jwatt
Keep our old value 'meterbar' as an alias for now, but unship 'meterchunk'
by restricting it to UA/chrome sheets only.
2018-11-09 04:25:56 +01:00
Emilio Cobos Álvarez 71a4ec791d Bug 1505786 - Implement overflow-wrap: anywhere. r=xidorn,jfkthame
Per https://github.com/w3c/csswg-drafts/issues/2682

Differential Revision: https://phabricator.services.mozilla.com/D11328
2018-11-08 22:39:34 +00:00
Alexandre Poirot c6cd6525b6 Bug 1505172 - Remove references to devtools.debugger.forbid-certified-apps preference. r=jdescottes,jryans
MozReview-Commit-ID: JV8MXvIuXaa

Differential Revision: https://phabricator.services.mozilla.com/D11152
2018-11-08 16:46:58 +00:00
Nicolas Chevobbe ccc695e796 Bug 1505393 - Add better handling of unsafe getters in JsPropertyProvider; r=bgrins.
This patch adds two things to JsPropertyProvider:
- when provided an input which try to access an unsafe
getter properties, the function will indicate that an
unsafe getter should be invoked, with its name.
- a new boolean argument that when set to true would
invoke any unsafe getter that might be in the expression
to be completed.

For simplicity sake, the function only warns the user
of the presence of an unsafe getter when it's the last
property of the expression:

`object.myGetter.` will return that `myGetter` should be invoked
`object.myGetter.a.b.` will not (because then, a and b could
also be getters, and it's getting complex to handle both in
the function itself as in the UI).

Tests are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11170
2018-11-08 15:47:53 +00:00
yulia 67ae68cbed Bug 1495388 - Simplify Inspector Front destruction; r=ochameau
Depends on D8992

Differential Revision: https://phabricator.services.mozilla.com/D9124
2018-11-07 14:35:42 +00:00
Alexandre Poirot fba80ad701 Bug 1503628 - Merge TabTarget and WorkerTarget. r=yulia
MozReview-Commit-ID: 58iL6HyXjM4

Depends on D11013

Differential Revision: https://phabricator.services.mozilla.com/D11014
2018-11-08 10:09:10 +00:00
Alexandre Poirot 450747afc4 Bug 1503628 - Fix the typing of newSource event on the worker target actor. r=yulia
MozReview-Commit-ID: 3tPRSL8OHFY

Depends on D11012

Differential Revision: https://phabricator.services.mozilla.com/D11013
2018-11-08 10:09:08 +00:00
Daisuke Akatsuka 7abda417de Bug 1497448: Rename closeAllListener to closeAllSocketListeners. r=ochameau,jdescottes
Depends on D10868

Differential Revision: https://phabricator.services.mozilla.com/D11150
2018-11-07 17:46:05 +00:00
Daisuke Akatsuka d36d4b73fd Bug 1497448: Rename _addListener/_removeListener of DebuggerServer to addSocketListener/removeSocketListener. r=ochameau,jdescottes
Depends on D10867

Differential Revision: https://phabricator.services.mozilla.com/D10868
2018-11-07 16:56:34 +00:00
Daisuke Akatsuka 1a0e92e8c8 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

Differential Revision: https://phabricator.services.mozilla.com/D10867
2018-11-08 00:41:18 +00:00
Julian Descottes a0c9032217 Bug 1490629 - Update adb-addon install() to make source parameter mandatory;r=daisuke
Depends on D11166

Differential Revision: https://phabricator.services.mozilla.com/D11179
2018-11-08 07:29:11 +00:00
Jim Chen 52efbdeef9 Bug 1496220 - 3. Disable Necko IPC security for test_saveHeapSnapshot_e10s_01; r=fitzgen
The use of <iframe mozbrowser> in test_saveHeapSnapshot_e10s_01.html has
implicitly depended on the "network.disable.ipc.security" pref set to
false, which is the default for desktop and not applicable for Fennec.
With the new mobile test harness, this pref needs to be set explicitly
by the test.

Differential Revision: https://phabricator.services.mozilla.com/D7786
2018-11-07 16:17:18 -05:00
Daisuke Akatsuka 385f5165cc Bug 1497448: Use try/catch for _handle function in ServerSocketConnection. r=ochameau,jdescottes
At first, I wanted it is better to call DebuggerServer.destroy() when
`devtools.debugger.remote-enabled` will set to false. Likewise, call
DebuggerServer.init() in case of true. But, because DebuggerServer.init() is
called by various context such as RemoteDebugger, restoring is difficult after
destroying. In this patch, simply, we make avoiding to call
DebuggerServer.closeAllListener() from inside of ServerSocketConnection.

Depends on D10864

Differential Revision: https://phabricator.services.mozilla.com/D10865
2018-11-07 02:17:45 +00:00