Commit Graph

1101 Commits

Author SHA1 Message Date
Wes Kocher
5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Andrew Halberstadt
d2109610fb Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : 8607b3964da207a6076c79b6f1d75b40503cdd7d
2017-08-10 14:48:21 -04:00
Phil Ringnalda
0ff5a4285d Backed out changeset 6896f93a2327 (bug 1385352) for not making it to m-c before the next violation of its new linting rule merged to autoland
MozReview-Commit-ID: 3HDE2C3wSU0
2017-08-10 20:21:19 -07:00
Andrew Halberstadt
f625fd5c37 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : d72a88962ec8d843e7be99e25f710887f01b6e1a
2017-08-10 14:48:21 -04:00
Xidorn Quan
58e5987209 Bug 1383992 part 1 - Disable failing mochitests. r=heycam
MozReview-Commit-ID: J9LoovJJJgM

--HG--
extra : rebase_source : a5ed4b2a11c293c50d642c3a0da6831ce5a885a1
extra : source : 8d97565b7dedaef3b46e65b92b1ca1e0598d2a76
extra : histedit_source : 72834d0bc485e78cb8c1de357e4b545d7e6408f5
2017-08-09 08:31:26 +10:00
Alexandre Poirot
86f3a72ea7 Bug 1382968 - Only try to forward console messages from content processes to parent when browser console/toolbox are opened. r=jryans,tromey
MozReview-Commit-ID: 8cFUbF4msHx

--HG--
rename : toolkit/components/processsingleton/ContentProcessSingleton.js => devtools/server/actors/webconsole/content-process-forward.js
extra : rebase_source : 024d016c37d0f188f5ac3f3f87511595a072eea6
2017-08-01 16:51:07 +02:00
Alexandre Poirot
966527f5aa Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf

--HG--
rename : devtools/server/actors/utils/webconsole-listeners.js => devtools/server/actors/webconsole/listeners.js
rename : devtools/server/actors/utils/moz.build => devtools/server/actors/webconsole/moz.build
rename : devtools/server/actors/utils/webconsole-utils.js => devtools/server/actors/webconsole/utils.js
rename : devtools/server/actors/utils/webconsole-worker-listeners.js => devtools/server/actors/webconsole/worker-listeners.js
extra : rebase_source : 5760bfc4de183e74b6eb8a511006c770121f24b9
2017-08-01 16:17:22 +02:00
Wes Kocher
223f322400 Merge m-c to autoland a=merge
MozReview-Commit-ID: 2qLtb79Nlhs
2017-08-08 15:26:30 -07:00
Gabor Krizsanits
d624f6b97e Bug 1378207 - Handle sandboxes with XOW protos in WebExtensionChildActor. r=rpl
Sandbox can throw on property access if it does not have permission
to access its own proto, even if the caller compartment had.
2017-08-08 13:43:20 +02:00
Wes Kocher
e36214b3fb Backed out 3 changesets (bug 1382968) for breaking browser_addons_debug_webextension.js a=backout
Backed out changeset e25b4bd21ac8 (bug 1382968)
Backed out changeset 5a2260bc98ca (bug 1382968)
Backed out changeset 869a9b46b5cc (bug 1382968)

MozReview-Commit-ID: DSKWAHxdXI

--HG--
rename : devtools/server/actors/webconsole/listeners.js => devtools/server/actors/utils/webconsole-listeners.js
rename : devtools/server/actors/webconsole/utils.js => devtools/server/actors/utils/webconsole-utils.js
rename : devtools/server/actors/webconsole/worker-listeners.js => devtools/server/actors/utils/webconsole-worker-listeners.js
2017-08-08 09:17:56 -07:00
Alexandre Poirot
4d50ab07c7 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART3: Manual fixes
- Go manually fix: http://searchfox.org/mozilla-central/source/devtools/client/dom/dom-panel.js
  which has duplicated import of defer symbol (it already used to import it)
- execute eslint, see all the places where we import of 'promise' is no longer use it
  (there may be leftovers not covered by eslint that will be covered in bug 1387128)
  devtools/server/tests/mochitest/inspector-helpers.js needs to keep importing promise as it is a shared test script.
- fix devtools/client/performance/panel.js and devtools/client/webconsole/console-output.js
  which use loader.lazyRequireGetter(this, "promise") and miss the defer import
- fix devtools/server/worker.js to use 'worker.require(devtools/shared/defer")'

MozReview-Commit-ID: HIOB5Et87Wc

--HG--
extra : rebase_source : fe3bff8599807224fd51898e753589d4c7c1777f
2017-08-08 15:19:56 +02:00
Alexandre Poirot
a8c68f2955 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART2: Substitutes promise.defer usages with defer
$ sed -i 's/promise.defer/defer/gI' $(egrep -lir "promise.defer\(\)" devtools)
  Reset modification to the following files as they are using deprecated syncable promises as we don't want to touch them.
  http://searchfox.org/mozilla-central/search?q=deprecated-sync-thenables&case=true&regexp=false&path=
$ git checkout devtools/client/debugger/test/mochitest/
$ git checkout devtools/shared/client/main.js
$ git checkout devtools/client/debugger/
$ git checkout devtools/server/main.js

MozReview-Commit-ID: DGN5ae68wtn

--HG--
extra : rebase_source : 57602d89b0bcc1c905bee7723e30f87fa434c6d9
2017-08-08 15:24:04 +02:00
Alexandre Poirot
2bd76261bb Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART1: Import devtools/shared/defer
$ sed -i '/require("promise")/a const defer = require("devtools/shared/defer");' $(egrep -lir "promise.defer\(\)" $(egrep -rl "require\(\"promise\"\)" devtools))
But ignore debugger as it still uses sync promises and would better be handled manually
$ git checkout devtools/client/debugger/
MozReview-Commit-ID: 7FvhNxULB2x

--HG--
extra : rebase_source : 7eacd673759d85ab88d69b6edc6dff4c7f245638
2017-08-08 15:33:56 +02:00
Alexandre Poirot
7fd76cec03 Bug 1387122 - Remove all useless Promise = require("promise"). r=tromey
Promise with a capital 'P' is already available in all DevTools sandboxes.

Still a couple of letfovers:
* Modules still using `Promise.defer()` (will be handled in bug 1387123)
* devtools/shared/defer, which introduces changes in Promise unhandled exception and stacks (bug 1388054)

MozReview-Commit-ID: PBaliHFa7u

--HG--
extra : rebase_source : d148a26e14e5eb34129f5d4c75c2087952ae596f
2017-08-07 17:53:29 +02:00
Alexandre Poirot
9aee8eedf4 Bug 1382968 - Only try to forward console messages from content processes to parent when browser console/toolbox are opened. r=jryans,tromey
MozReview-Commit-ID: 8cFUbF4msHx

--HG--
rename : toolkit/components/processsingleton/ContentProcessSingleton.js => devtools/server/actors/webconsole/content-process-forward.js
extra : rebase_source : 8f30b1484e8ec1410f59a8764dced0e645ebec28
2017-08-01 16:51:07 +02:00
Alexandre Poirot
253b1895e6 Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf

--HG--
rename : devtools/server/actors/utils/webconsole-listeners.js => devtools/server/actors/webconsole/listeners.js
rename : devtools/server/actors/utils/moz.build => devtools/server/actors/webconsole/moz.build
rename : devtools/server/actors/utils/webconsole-utils.js => devtools/server/actors/webconsole/utils.js
rename : devtools/server/actors/utils/webconsole-worker-listeners.js => devtools/server/actors/webconsole/worker-listeners.js
extra : rebase_source : 3222c8ca77a6c38dc2f0ee01adc27264e028a514
2017-08-01 16:17:22 +02:00
Tom Tromey
639b3c6efc Bug 1370648 - use final token as end location of statement list; r=jimb
This changes the parser to use the final token of a statement list as
it's end location.  This works around some confusing behavior, such as a
breakpoint firing on the marked line:

    <script>
      if (1 !== 1) {
        console.log("dead code!?"); // set breakpoint here
      }
    </script>

MozReview-Commit-ID: 3Sk1ERw5Q6z

--HG--
extra : rebase_source : 6c6338ca183518baec6ccfcb9ae17e24cf644c97
2017-07-14 13:29:52 -06:00
Julian Descottes
def4adbffc Bug 1386357 - remove usage of sdk/timers in DevTools;r=ochameau
MozReview-Commit-ID: 8rC2peDRBJW

--HG--
extra : rebase_source : 0c2636114a2a44017b0f8af749025d7465cfb906
2017-08-02 12:53:20 +02:00
Micah Tigley
59d1881000 Bug 1385144 - Overlapping negative line numbers do not display as a stack. r=zer0
MozReview-Commit-ID: xlkj6OjL4n
2017-07-31 21:55:00 -06:00
Phil Ringnalda
5e2f9b194d Backed out changeset bd270d4fe4bc (bug 1385144) for eslint failures
CLOSED TREE

MozReview-Commit-ID: HnONZdDsG3v
2017-08-01 23:07:57 -07:00
Micah Tigley
17dd07bc88 Bug 1385144 - Overlapping negative line numbers do not display as a stack. r=zer0
MozReview-Commit-ID: xlkj6OjL4n
2017-07-31 21:55:00 -06:00
ZER0
ba9681c84a Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 03:47:30 +02:00
Wes Kocher
db97e61fc7 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc

--HG--
rename : devtools/shared/old-event-emitter.js => devtools/shared/event-emitter.js
2017-08-10 18:23:14 -07:00
ZER0
93e1efc17d Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8


--HG--
rename : devtools/shared/event-emitter.js => devtools/shared/old-event-emitter.js
2017-08-11 02:43:47 +02:00
Julian Descottes
8f7083a841 Bug 1361332 - replace sdk/util/object by Object.assign in devtools;r=zer0
MozReview-Commit-ID: 3IREzyuAjAF

--HG--
extra : rebase_source : 758d431d809f0ac7bf70a1a39c2f38c83361e8f6
2017-07-31 19:53:37 +02:00
J. Ryan Stinnett
965f38d565 Bug 1384789 - Check ancestor URLs to avoid sheet cycles. r=bgrins
With Stylo, an import rule from a cycle _will_ have a `styleSheet` object, so we
need to also check the sheet's ancestors to see if the URL is unique.

MozReview-Commit-ID: B33REaSGGYU

--HG--
extra : rebase_source : d6113d802d5197c73510ac3fa3b6cfb31d29c609
2017-07-27 17:23:22 -05:00
Tom Tromey
9160711a92 Bug 1385032 - add logErrorInPage to tab target in devtools; r=bgrins
This adds a method that can be called by the toolbox to log something to
the web console.

MozReview-Commit-ID: GpZtWwNVVGO

--HG--
extra : rebase_source : 37d2336bc1dbf5a8fd35d280c349044f1d06cd4c
2017-07-07 12:53:32 -06:00
sole
ef6bb0ce7d Bug 1378857 - Stop using sdk/core/heritage in DevTools server/primitive. r=jdescottes
MozReview-Commit-ID: 2NQ2iSQKB0g

--HG--
extra : rebase_source : 2ff0d303e81ac48c99c470585c17fb7d7a732e51
2017-07-28 17:03:32 +01:00
Sebastian Hengst
09c065976f Backed out changeset 8a8f5e718ddd (bug 1369801) for frequently breaking devtools menus (bug 1384967). r=backout a=backout on a CLOSED TREE
MozReview-Commit-ID: E0RLmP6mojT
2017-07-27 18:16:52 +02:00
Sebastian Hengst
205843f800 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Sebastian Hengst
4ff4d8bc6d Backed out changeset 148d11a549ce (bug 1369801)
MozReview-Commit-ID: AIvxY8960pa
2017-07-27 18:14:23 +02:00
Carsten "Tomcat" Book
d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Micah Tigley
0bdc10be67 Bug 1369942 - Display Negative Line Numbers in CSS Grid Inspector. r=zer0
MozReview-Commit-ID: FmOj7jVT3Ll
2017-07-26 18:27:36 -06:00
Gabriel Luong
a8675a3dd2 Bug 1376774 - Restore the highlighter states on markup loaded prior to emitting the "new-root" event. r=jdescottes 2017-07-26 16:26:09 -04:00
Julian Descottes
8a25ab0476 Bug 1369801 - dt-addon-fennec: package specific version of devtools addon for fennec;r=jryans
MozReview-Commit-ID: 50jh5spnHw6

--HG--
extra : rebase_source : 8b0b8f2f936a6f83166690cd15df642c61114a7e
2017-06-21 19:23:11 +02:00
Julian Descottes
df95b72117 Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t

--HG--
extra : rebase_source : 05d41abb69a34f0f5b8241c26684ed53a88b6df5
2017-07-11 12:30:22 +02:00
Alexandre Poirot
7f5d400ac4 Bug 1369801 - DevTools as system add-on;r=jdescottes
MozReview-Commit-ID: EUjkQtEUy4V

--HG--
extra : rebase_source : 1d3920a73e082cb3efd9ceb3af6104fb54951b9b
2017-05-30 17:34:38 +02:00
Brian Grinstead
46cc553a7c Bug 1382833 - Don't throw when dealing with CPOWs in the Object Actor;r=jimb
MozReview-Commit-ID: CaIS2IpaQme

--HG--
extra : rebase_source : 75b4fe1abd460978039d7f1085d56e64b9dd2765
2017-07-26 11:22:56 -07:00
Andrew Halberstadt
21a03ad73c Bug 1383120 - Enable no-arbitrary-setTimeout eslint rule on xpcshell tests, r=mossop
MozReview-Commit-ID: 6DqLaZ9n5EM

--HG--
extra : rebase_source : 5f1264bb3ea23005c91557e5db4ce5f9e167ce9a
2017-07-26 09:08:07 -04:00
Andrew Halberstadt
baddb0a4e7 Bug 1383120 - [eslint-plugin-mozilla] Fix getTestType() helper so mochitests aren't treated as xpcshell tests, r=mossop
This also adds a11y as a test type.

MozReview-Commit-ID: D7y3uALzVQx

--HG--
extra : rebase_source : 6e3c886e28af2c406e86288d99482d59cf6d1852
2017-07-21 12:41:27 -04:00
Nicolas Chevobbe
6201ca9f26 Bug 881480 - Add ownSymbols to object preview; r=ochameau
This adds an `ownSymbols` and an `ownSymbolsLength` properties to the
grip `preview` property so we can retrieve them in the frontend.
This also refactors the newly introduced test for symbols and add a
function which test the content of the preview property in the grip.
The console test packet stubs files were updated to take this into account.

MozReview-Commit-ID: 7rPxFcS5uXE

--HG--
extra : rebase_source : dcd1189904b8f10ffb27df4c2290ac391a4f08ed
2017-07-24 15:25:46 +02:00
Nicolas Chevobbe
ca659ecb7e Bug 881480 - Add ownSymbols to onPrototypeAndProperties; r=ochameau
MozReview-Commit-ID: 7Mzg1UPOYcY

--HG--
extra : rebase_source : 088b23bc9481387b974e435540060d25bb5cfdea
2017-07-21 17:17:44 +01:00
Carsten "Tomcat" Book
679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Mike Park
ed40ba307a Bug 1282717 - Highlight CSS shapes points in the page from the rule-view and vice versa. r=pbro
MozReview-Commit-ID: 9pXkbAwgcXO
2017-07-05 10:57:42 -04:00
Mike Park
dc60e7a8cf Bug 1373339 - Add a button in the rules view to toggle the CSS shapes highlighter. r=gl
Requires pref "devtools.inspector.shapesHighlighter.enabled" to be true.

MozReview-Commit-ID: Ispw7ulV5o6
2017-06-20 11:23:32 -04:00
Yoshi Huang
ac1cdfa157 Bug 1381771 - Part 1: fix mc1 failures in devtools/ when data: URI is unique origin. r=pbro 2017-07-24 10:00:07 +08:00
Patrick Brosset
d3a01e0904 Bug 1378851 - Use ES classes in devtools highlighters rather than SDK heritage module; r=sole
MozReview-Commit-ID: 7ahFmbrMd8a

--HG--
extra : rebase_source : 084303bee8c0fad7385fb5767020b11797090c90
2017-07-21 13:00:04 +02:00
Mike Park
7c77ad7be9 Bug 1282719 - Make CSS shapes highlighter points editable. r=zer0
Click and drag markers, circle edges, and radius edges to move them.
Double click on a polygon edge to add a new point.
Double click on a polygon point to remove it.

MozReview-Commit-ID: EbPH1pVVBOT

--HG--
extra : rebase_source : 754d9f75e55f327f448d826123c0b522d0bbe7df
2017-06-14 17:18:57 -04:00
Alexandre Poirot
7df29037ba Bug 1378133 - Fix the inspector when loading pages from bfcache. r=jdescottes
MozReview-Commit-ID: Ek2lw4Vh1km

--HG--
extra : rebase_source : 33e4fc84caab4c39b64744e972aa5dcb80103754
2017-07-24 15:55:42 +02:00
sole
fd3207ec5d Bug 1378853 - Stop using sdk/core/heritage in DevTools reflow actor. r=jdescottes
MozReview-Commit-ID: IZr8qrCUdU8

--HG--
extra : rebase_source : 7a11888136f83f043d89facea70970a7f428f018
2017-07-19 10:51:19 +01:00