Граф коммитов

1379 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 54ef877eee Bug 1435791 - Remove webapps actor front. r=jdescottes
MozReview-Commit-ID: A21zlETw5Iz

--HG--
extra : rebase_source : 7656d666d8d97add75ec7494b47878424b6028a8
2018-02-05 10:25:25 -08:00
Coroiu Cristina 1ecbdba719 Backed out 2 changesets (bug 1435791) for bustage at /tests/test_mozbuild_reading.py on a CLOSED TREE
Backed out changeset 88c8ba0ee51d (bug 1435791)
Backed out changeset 3d7cea225c57 (bug 1435791)
2018-02-07 12:04:33 +02:00
Alexandre Poirot 61355e5dd1 Bug 1435791 - Remove webapps actor front. r=jdescottes
MozReview-Commit-ID: A21zlETw5Iz

--HG--
extra : rebase_source : c7653bb64707fb3c0501b2bf21be3d838d3f78f3
2018-02-05 10:25:25 -08:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Boris Zbarsky bf4f2a0bac Bug 1435483 part 1. Stop using nsIXPCException in devtools code. r=ochameau
This code has never worked correctly.  Bug 911258 landed on 2013-09-09 and
removed the initialize() method from XPConnect exceptions.  This code landed
two days after that.  If it's ever reached, it will just throw when calling the
nonexistent initialize() method.

MozReview-Commit-ID: FWpP1fLBIPW
2018-02-05 16:34:03 -05:00
Jason Laster f805944739 Bug 1435187 - Refactor the script actor. r=jdescottes
- Extract paused scoped objects.
 - Extract event loop stack. r=jdescottes
 - Extract actor stores. r=jdescottes
 - Move script.js to actor.js. r=jdescottes

--HG--
rename : devtools/server/actors/script.js => devtools/server/actors/thread.js
2018-02-02 10:57:00 +02:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Tom Tromey 3b8e63c66a Bug 1255369 - fix getCSSValuesForProperty for line-style-type; r=xidorn
This fixes InspectorUtils::getCSSValuesForProperty to return the
correct values for line-style-type.

MozReview-Commit-ID: 72Tes6y15j8

--HG--
extra : rebase_source : fa893f59cafc433f554353cf42d0f9495cdd5b23
2018-01-31 08:50:27 -07:00
Alexandre Poirot a273cd43a5 Bug 1432803 - Prevent using timeline actor to get DOMContentLoaded and load timings. r=Honza
MozReview-Commit-ID: Kkn36gDFTKN

--HG--
extra : rebase_source : e52861432f5651b864cada0c70568d504d883c6c
2018-01-24 08:48:26 -08:00
Julian Descottes 86302f330b Bug 1434217 - remove deprecated frontForRawNode from inspector front;r=bgrins
MozReview-Commit-ID: GvK2lGDq8ea

--HG--
extra : rebase_source : 7e90754cf83406f08d82b50d79704912c39dca7d
2018-01-30 14:30:14 +01:00
Julian Descottes 6683646ba1 Bug 1434217 - Remove unused inspector actor traits;r=bgrins
Inspector actor traits were used for backward compatibility, with
versions of Firefox older than 45. Our policy is to support servers
up to the last ESR version, which is 52 at the moment so these
should be safe to remove.

MozReview-Commit-ID: 6MwUp8vbW29

--HG--
extra : rebase_source : b36799130e66e4abdaee628d48ad1b056bc1afcd
2018-01-30 10:49:24 +01:00
Julian Descottes 8cfe81bd3d Bug 1434543 - removed unused getElementFromPoint from devtools layout/utils;r=ochameau
MozReview-Commit-ID: FHy6Dv5Q5l3

--HG--
extra : rebase_source : e30cd11b98f09842d35cc955d3145fba751a7296
2018-01-31 13:12:10 +01:00
Julian Descottes ed1461df41 Bug 1434543 - use require to load DevToolsLoader in gcli/listen.js;r=ochameau
MozReview-Commit-ID: dASj33Dqda

--HG--
extra : rebase_source : 4b61de018aae6ae16a6ed4931592a1fd2fcb8855
2018-01-31 10:34:07 +01:00
Tom Tromey 12c8602c30 Bug 1255380 - fix getCSSValuesForProperty for "content" property; r=xidorn
This changes getCSSValuesForProperty to return the correct values for
the "content" property.

MozReview-Commit-ID: 2F5LQPbSIFs

--HG--
extra : rebase_source : 290df953c8234888801b7a8a6ef5668a11a59bea
2018-01-25 16:55:28 -07:00
Sebastian Hengst 732cb1d98b merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Julian Descottes 27a469d6a8 Bug 1102240 - rename actors/inspector/inspector.js to inspector-actor.js;r=pbro
MozReview-Commit-ID: dfzTyhZXez

--HG--
rename : devtools/server/actors/inspector/inspector.js => devtools/server/actors/inspector/inspector-actor.js
extra : rebase_source : d316a0490cc68ac3ad342af5fbcb64f24f8d01dd
2018-01-26 13:15:06 +01:00
Julian Descottes 8eb0574c63 Bug 1102240 - Move inspector actor to dedicated folder;r=pbro
MozReview-Commit-ID: LNgHweYJXcB

--HG--
rename : devtools/server/actors/inspector.js => devtools/server/actors/inspector/inspector.js
extra : rebase_source : 5f35db40dda61e7e476fae1153f10b3d580a6929
2018-01-26 11:49:48 +01:00
Tom Tromey 3728debffe Bug 1255379 - fix getCSSValuesForProperty for clip and clip-path; r=xidorn
This fixes getCSSValuesForProperty for clip and clip-path.

Although clip is deprecated, it seemed harmless to fix it as well;
when it is removed this code will also be readily found and removed.

It wasn't clear to me if setting the keyword table for clip-path in
nsCSSPropList.h would be ok, so I added a special case in
InspectorUtils.

MozReview-Commit-ID: Ghawr17HjKk

--HG--
extra : rebase_source : 29c094afd678019b4f3f49ac55493ef0d7d6848f
2018-01-22 13:26:14 -07:00
arthur.iakab 39d63fc827 Merge mozilla-central to autoland 2018-01-26 02:31:18 +02:00
Kris Maglione b3cac601f6 Bug 1432966: Sanitize HTML fragments created for chrome-privileged documents. r=bz f=gijs
This is a short-term solution to our inability to apply CSP to
chrome-privileged documents.

Ideally, we should be preventing all inline script execution in
chrome-privileged documents, since the reprecussions of XSS in chrome
documents are much worse than in content documents. Unfortunately, that's not
possible in the near term because a) we don't support CSP in system principal
documents at all, and b) we rely heavily on inline JS in our static XUL.

This stop-gap solution at least prevents some of the most common vectors of
XSS attack, by automatically sanitizing any HTML fragment created for a
chrome-privileged document.

MozReview-Commit-ID: 5w17celRFr

--HG--
extra : rebase_source : 1c0a1448a06d5b65e548d9f5362d06cc6d865dbe
extra : amend_source : 7184593019f238b86fd1e261941d8e8286fa4006
2018-01-24 14:56:48 -08:00
Julian Descottes 1d94b51b97 Bug 1272774 - allow listTabs to return favicon data from PlacesUtils;r=ochameau
MozReview-Commit-ID: 8bkn3mG6YkL

--HG--
extra : rebase_source : 9f514f1adbc4e79022c8c18c5195d3e1d1298062
2018-01-04 17:25:45 +01:00
Julian Descottes f714f056d0 Bug 1272774 - migrate all listTabs() callers to use promise;r=ochameau
MozReview-Commit-ID: 9PtRZHG5GuF

--HG--
extra : rebase_source : f4c7cfd5f8338eb22fa44dc79a1e8b7840dc4e2d
2018-01-15 18:38:34 +01:00
Tom Tromey 6dba28ecb2 Bug 1255378 - fix getCSSValuesForProperty for box-shadow and text-shadow; r=heycam,jryans
This fixes InspectorUtils.getCSSValuesForProperty to return the
correct values for box-shadow and text-shadow.  It also takes a small
step toward the goal of getting rid of
InspectorUtils.cpp:PropertySupportsVariant, in favor of having all
variants listed in nsCSSPropList.h.

MozReview-Commit-ID: Dwh5s0IvYTX

--HG--
extra : rebase_source : eba2d3e7337af63c264bf3d596740f311c4aa017
2018-01-17 10:34:34 -07:00
Sebastian Hengst 78d2a3c1db Merge mozilla-central to mozilla-inbound 2018-01-24 14:24:05 +02:00
Dorel Luca c00b3bfa4c Merge mozilla-central to mozilla-inbound r=merge 2018-01-23 19:58:07 +02:00
Ben Kelly a0b2fbfab0 Bug 1231211 P19 Make DevToolsUtils.newChannelForURL() set the loadingNode so that the SW controller is set on the channel. r=jryans 2018-01-23 10:38:54 -05:00
Alexandre Poirot 3522ce42d1 Bug 1423517 - Helps tracking JS allocations when running DevTools tests. r=jdescottes
MozReview-Commit-ID: 7PWgsUyR54Q

--HG--
extra : rebase_source : d620f8b704e9da6e8ee7326715a21addeb08bd06
2017-12-06 01:36:51 -08:00
J. Ryan Stinnett d5abe62be4 Bug 1432496 - Clean up protocol.js deprecations. r=jdescottes
`ActorClass` and `FrontClass` are depercated protocol.js APIs that were left in
place to support add-ons that might have used them.  Now that we're in an
WebExtensions only mode, it seems safe to remove these.

MozReview-Commit-ID: HRKMPTIktrZ

--HG--
extra : rebase_source : 8118b7f87dae92688a0ace0f4cf05a2a0d609d6f
2018-01-23 09:15:49 -06:00
Julian Descottes 46f8ae7efd Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : dc25347c977b7890231b7434622d171d217f7bc6
2018-01-20 00:24:41 +01:00
Narcis Beleuzu e449275782 Backed out changeset 41262016e149 (bug 1431758) for build bustage. on a CLOSED TREE 2018-01-22 18:42:13 +02:00
Julian Descottes 4fa078bd65 Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : 74d73ecd50cc1e56a66c6e45d43b1ca48f136cf2
2018-01-20 00:24:41 +01:00
Tom Tromey 1bb2ea3983 Bug 1255402 - fix getCSSValuesForProperty for object-position and perspective-origin; r=heycam
getCSSValuesForProperty was not including "calc" for object-position
and perspective-origin.  Fixed by updating the variants in
nsCSSPropList.h.

MozReview-Commit-ID: 8STipRhqFwT

--HG--
extra : rebase_source : 70cbb9fc1a9b3a1084bd8846f065f0876daccd75
2018-01-16 10:52:28 -07:00
Nicolas Chevobbe b5993af966 Bug 1430799 - Add a createObjectClient method to the DebuggerClient;r=jlast.
This is needed by the debugger in order to use the latest devtools-reps
package (0.19.0).
This function was already added in the devtools-connection package.

MozReview-Commit-ID: 3SVxq4Jbs16

--HG--
extra : rebase_source : a279790045eb91d96d20fca522e1b38c01d72a49
2018-01-16 17:25:58 +01:00
Jan Odvarko b8ea144988 Bug 1427718 - Display multiple headers with the same name; r=rickychien
MozReview-Commit-ID: 2nV51xLyCni

--HG--
extra : rebase_source : c5d368d84ce4766fe40e4b750441e1d4474db504
2018-01-17 09:56:09 +01:00
J. Ryan Stinnett 50f195f322 Bug 1303171 - Adjust highlighters to account for writing mode and text dir. r=gl
The `getCurrentMatrix` function is used by grid and other highlighters to
account for the element's position, transforms, etc.  Here we extend it with
extra logic to account for the element's writing mode and text direction.

MozReview-Commit-ID: AZT4cJySLwk

--HG--
extra : rebase_source : 55504705fba929f6209ac8c76a000fd26cd8dd3e
2017-12-08 22:18:21 -06:00
Tom Tromey eb7d822b0c Bug 1430616 - correctly find end of keyword table in InspectorUtils; r=heycam
Currently, InspectorUtils::GetCSSValuesForProperty will not return
"match-parent" for "text-align".  The bug is that InspectorUtils uses
an out-of-date approach to finding the end of the keyword table; and
this approach conflicts with the special "unsafe" handling in
TextAlignUnsafeEnabledPrefChangeCallback:

https://dxr.mozilla.org/mozilla-central/rev/21ddfb9e6cc008e47da89db50e22697dc7b38635/layout/base/nsLayoutUtils.cpp#317-321

MozReview-Commit-ID: 58qfKQwIyMX

--HG--
extra : rebase_source : 022a8c970c121cbe76533a29d0439a64ead63085
2018-01-15 09:14:55 -07:00
Alexandre Poirot 5ceadbffb1 Bug 1429365 - Prevent this.sink is undefined exception for resources loaded from bytecode cache. r=rickychien
MozReview-Commit-ID: C9VFVoK0pPG

--HG--
extra : rebase_source : 94809550ccb0a8efe06d4c29407bc32a8aea0e85
2018-01-15 07:23:08 -08:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Tom Tromey 9992b11faa Bug 1255384 - fix getCSSValuesForProperty for counter-*; r=heycam
This bug notes that getCSSValuesForProperty does not mention the
"none" value for counter-increment and counter-reset.  This fixes the
problem by mentioning the variants in the entries in nsCSSPropList.h.

MozReview-Commit-ID: HpZIMIIejHc
2018-01-12 13:57:58 -07:00
Tom Tromey 7e80328404 Bug 1255401 - fix getCSSValuesForProperty result for "quotes" property; r=heycam
It seemed valid to simply set the expected variants in
nsCSSPropList.h; other properties (e.g., align-content) do this as
well.

MozReview-Commit-ID: HVZGOofkwi1

--HG--
extra : rebase_source : 53388e48c491843a3fd93a3c46fdcd9c9bd3cc41
2018-01-10 14:08:13 -07:00
Tom Tromey 1d509d63c6 Bug 1255401 - fix values allowed for "all" property; r=heycam
The "all" property in the devtools CSS database included all possible
property values; however only a few are truly appropriate.  This patch
adds a special case for "all" to
InspectorUtils::GetCSSValuesForProperty to fix this.

MozReview-Commit-ID: HEnrvCJylHI

--HG--
extra : rebase_source : 4738129974b95e2c231cd92cd5e4bc04e6708409
2018-01-10 11:48:28 -07:00
Noemi Erli adbfbaab81 Merge inbound to mozilla-central r=merge a=merge 2018-01-11 23:54:07 +02:00
Julian Descottes a4e273006e Bug 1404849 - migrate mochitest for generators autocompletion to xpcshell;r=nchevobbe
MozReview-Commit-ID: 74EaFkIZva7

--HG--
extra : rebase_source : 32dd75785d886134a012bb2bddb38c976441e065
2018-01-10 12:04:12 +01:00
Cameron McCormack 3c49d82e69 Bug 1427419 - Part 27: Remove inIDOMUtils. r=bz
And rename inDOMUtils.cpp to InspectorUtils.cpp.

MozReview-Commit-ID: IIqo25MHsQE

--HG--
rename : layout/inspector/inDOMUtils.cpp => layout/inspector/InspectorUtils.cpp
2018-01-11 12:38:01 +08:00
Cameron McCormack 3f17a89ba7 Bug 1427419 - Part 23: Move inIDOMUtils.getCSSPseudoElementNames to InspectorUtils. r=bz
MozReview-Commit-ID: A6FhXc2mJm1
2018-01-11 12:38:01 +08:00