Commit Graph

346 Commits

Author SHA1 Message Date
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
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
Mark Banner
d4ad271c61 Bug 1230373 - Fix an issue with eslint-plugin-mozilla not detecting the global scope properly when arrow functions are used. r=mossop
MozReview-Commit-ID: IOCM8Fjl0xQ

--HG--
extra : rebase_source : 63face219569f50bdfb00bcd7384f334ec6113c2
2017-10-16 15:08:26 +01:00
Tom Tromey
a13df2c4ac Bug 833747 - recognize "debugger eval" as eval source; r=jlast
isEvalSource was missing one introduction type, so evaluating
  function(){...}
  //# sourceURL=blah
in the console would fail -- but wrapping the whole thing in
eval("...") would work.

MozReview-Commit-ID: 13oRnbs1eyF

--HG--
extra : rebase_source : d2360bd3698f4ce20064397aab075d29449dfdcd
2017-09-18 12:23:43 -06:00
Oriol Brufau
d34d21b241 Bug 1406660 - Remove all wrappers when checking if a getter is safe. r=jimb
MozReview-Commit-ID: KcTGDuwqFYu

--HG--
extra : rebase_source : c4441999986423cc9330e1084e80681795617003
2017-10-07 18:27:29 +02:00
Oriol Brufau
0f3ca74c8f Bug 1406182 - Obtain the length of typed arrays in a safe way. r=nchevobbe
MozReview-Commit-ID: ItlYZowJw7x

--HG--
extra : rebase_source : 8f955eae2e9ae44647b43c980a35bbb1f9ca8a0a
2017-10-07 16:55:26 +02:00
Oriol Brufau
c06b45beac Bug 1406085 - Only consider array indices to be indexed properties. r=nchevobbe
MozReview-Commit-ID: AEH4BeFunxh

--HG--
extra : rebase_source : e61ca2d40e5026bb8e4caaeedacb5278353788c8
2017-10-05 17:03:07 +02:00
Nicolas Chevobbe
086aac9676 Bug 1403065 - Fix enumObjectProperties for exotic objects; r=bgrins,Oriol.
In the `enumProperties` function , we can pass some options to only retrieve
indexed or non indexed properties. The problem when doing this is that we were relying
on the value of a `length` property to get what's before (indexed) or after (non-indexed).
But if you have a plain object with a length property like `{length: 789}`,
and try to retrieve non-indexed properties, the function would return an empty ownProperties
object.

In this patch we make extra checks in the function to make sure we do return the expected
data to the client. A unit-test is added to ensure we don't regress.

MozReview-Commit-ID: FMCh9qnzeTT

--HG--
extra : rebase_source : 1adc606a59543ee1849a1311c5e36c1bf9eb6423
2017-09-26 12:02:20 +02:00
Nicolas Chevobbe
307f01eac7 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0

--HG--
extra : rebase_source : ebf75886fac79aaebfab16c03997f402e9f5a278
2017-09-29 15:24:14 +02:00
Mike Park
561fdfb8a4 Bug 1385398 - Change the appearance of CSS shapes highlighter markers. r=pbro
MozReview-Commit-ID: JO4TZ1Gsr6m

--HG--
extra : rebase_source : 6c6768ecef35180579c416775822a6960f505b2a
2017-07-28 15:28:08 -04:00
Tom Tromey
762c2f58dd Bug 1403610 - update to source-map 0.6.1; r=bgrins
Import the source-map 0.6.1 bundle.

MozReview-Commit-ID: AkVLlBJRD1l

--HG--
extra : rebase_source : 882b2ef4b2c3b2eac8733f408a4ce7a6aaa403d2
2017-09-27 09:39:44 -06:00
Oriol Brufau
a5ca4b08cf Bug 1394559 - Better handling of inaccessible objects in the console. r=jimb 2017-09-22 11:54:00 -04:00
Oriol Brufau
42ea1ccf9b Bug 1391274 - Add a Symbol object previewer to the console. r=nchevobbe
MozReview-Commit-ID: EDMep3IePZ3

--HG--
extra : rebase_source : eb70151281aff5d4ad7e04c8e5287aa5ebfa739d
2017-09-20 12:32:03 +02:00
Andrew Halberstadt
7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
Shane Caraveo
85604b0c2b Bug 1393150 prevent remote extensions when e10s is off, r=bz,kmag
MozReview-Commit-ID: HjLLa9vx2UW

--HG--
extra : rebase_source : d37088f31931a74ef2c40dc510794ebc5f4931ab
2017-09-14 15:12:45 -07:00
Andrew McCreight
2b68b38709 Bug 1377587, part 1 - Always act like __exposedProps__ is missing. r=krizsa
This patch gently removes support for __exposedProps__ by changing
ExposedPropertiesOnly::check() to always return false, while still
failing silently in deny for some kinds of access.

The tests that I changed all involve testing the behavior with
__exposedProps__. I adjusted them to expect it to fail, or to adjust
the error message they get when they fail. That seemed better than
deleting them entirely.

Note that test_bug1065185.html had a bug, so that it never executed
the first case. I fixed that, and then fixed up the test to work when
__exposedProps__ is not supported.

This also removes various bits of the test framework that use
__exposedProps__, but don't actually need to.

MozReview-Commit-ID: 8fvkAmITmXY

--HG--
extra : rebase_source : ef7e2c55adc12511f17f3865ebb46c343875f0b3
2017-08-22 14:24:11 -07:00
Cosine
f392faaf4d Bug 1085119 - Part 2: Add unit tests for css-logic row and column precedence r=tromey
MozReview-Commit-ID: 4zz7hFOQJAj
2017-08-31 16:49:29 -04:00
Tom Tromey
959b82c809 Bug 970469 - ignore breakpoints on the current line when stepping out; r=ystartsev+600802
MozReview-Commit-ID: KTzygRac2D7

--HG--
extra : rebase_source : 923731525f7f0b264458845d54d669dfb3fd605c
2017-08-31 14:21:57 -06:00
Julian Descottes
1b9823bc9c Bug 1391228 - remove unused devtools profiler actor, specs and front;r=gregtatum,mstange
MozReview-Commit-ID: 82R4C3NFolu

--HG--
extra : rebase_source : 373dda6065397f5226531c123ab3b4b39b88b0eb
2017-08-18 17:27:56 +02:00
Xidorn Quan
372bd402fb Bug 1387905 part 2 - Use 10bit for specificity in Gecko as well. r=heycam
MozReview-Commit-ID: G5qq0FY0HQ8

--HG--
extra : rebase_source : 2572ad7845c4275d0f0a580204697e6ee87a4a5f
2017-09-04 12:07:24 +10:00
Xidorn Quan
441c9db551 Bug 1387905 part 1 - Count pseudo-element into specificity. r=heycam
MozReview-Commit-ID: IWlINaYAhql

--HG--
extra : rebase_source : f0d12277ecda1c7e498ba208cec0e0cde6fc5a25
2017-09-04 12:05:56 +10:00
Yura Zenevich
c97121629f Bug 1151468 - add accessibility spec/actor/front to devtools. r=pbro
MozReview-Commit-ID: Ln1R8e04mGR
2017-08-31 23:11:23 -04:00
Julian Descottes
ffc364ee02 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0

--HG--
extra : rebase_source : 31b687343461a65fc6a40eece461bc2367d596d7
2017-08-18 17:05:04 +02:00
Sebastian Hengst
31302b9cec merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5armhVE9Jui
2017-08-25 13:12:04 +02:00
Oriol Brufau
519e4af9fe Bug 1390701 - Let devtools consider system principal proxy objects to be unsafe. r=jimb 2017-08-24 06:38:00 -04:00
Julian Descottes
3e2d929cd8 Bug 1378862 - remove usage of sdk heritage in devtools protocol.js;r=zer0
MozReview-Commit-ID: 8hyEroQwnNL

--HG--
extra : rebase_source : 9e5d09ab497b9b2ad102b45d33328f109f63cbeb
2017-08-21 20:21:48 +02:00
Wes Kocher
4ea67d0e07 Backed out changeset e774700fe070 (bug 1392787) for build bustage a=backout CLOSED TREE
MozReview-Commit-ID: FRRUDa6rIuS
2017-08-24 13:58:52 -07:00
Andrew Halberstadt
cae249f833 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : d907a5b2192687d86e3291a936c943948ed6793f
2017-08-22 16:56:02 -04:00
Nicolas Chevobbe
942e4427a5 Bug 1392614 - Add an onEnumSymbols function on the object actor. r=ochameau
This will enable lazy loading symbols for a grip if needed.
This patch introduce a new SymbolIteratorActor, which is similar
to PropertyIteratorActor but with a data structure that better
fits symbols, and how we already handle them, i.e. an `ownSymbols`
array property (and not an `ownProperties` object like PropertyIteratorActor).

We take this as an opportunity to add a test for enumSymbols, but also
for enumProperties that did not have server unit tests (it is only tested
in the frontend with the variable view, which might be deprecated at some
point).

MozReview-Commit-ID: IEIKA8zwH90

--HG--
extra : rebase_source : 377526321e04e28ffc58ed7af7f4325b6e1ee66d
2017-08-22 12:07:48 +02:00
Oriol Brufau
d8c8ddd9c4 Bug 1389787 - Let the console unwrap proxy objects to avoid running traps. r=jimb
--HG--
extra : rebase_source : 5500c4442354856112a2177a23dd905e49afff18
2017-08-23 15:50:00 -04:00
Mark Banner
a53020d022 Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
MozReview-Commit-ID: 35MaseieNUk

--HG--
extra : rebase_source : 98eaec6a67fd3b30ea6b0be641f26c3911012fab
2017-08-20 18:52:05 +01:00
Julian Descottes
19c4c8493a Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64

--HG--
extra : rebase_source : 22d0003b40e0fc49e309187ea3c943a6f5048db5
2017-08-16 15:11:21 +02:00
Oriol
df52d2e9c4 Bug 1380506 - Prevent the console from searching safe getters in proxy objects. r=bgrins 2017-08-15 08:29:00 -04:00
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
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
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
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
Sebastian Hengst
205843f800 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +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
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