Commit Graph
919 Commits
Author SHA1 Message Date
Nicolas Chevobbe ab5c268940 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
2017-09-26 12:02:20 +02:00
Mike Park 7ea66b2000 Bug 1385398 - Change the appearance of CSS shapes highlighter markers. r=pbro
MozReview-Commit-ID: JO4TZ1Gsr6m
2017-07-28 15:28:08 -04:00
Tom Tromey 2472b4e90e Bug 1403610 - update to source-map 0.6.1; r=bgrins
Import the source-map 0.6.1 bundle.

MozReview-Commit-ID: AkVLlBJRD1l
2017-09-27 09:39:44 -06:00
J. Ryan Stinnett 2c7f079345 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett 8757662806 Bug 1305777 - Clean up touch simulator after old RDM removal. r=ochameau
Only `simulator-core` is used by new RDM via the Emulation actor, so I've moved
this server side and renamed it to `touch-simulator`.

MozReview-Commit-ID: 5YgpYNDwBvw
2017-09-27 16:53:23 -05:00
Sebastian Hengst d1206e92bd Backed out changeset 0169ee5c78fb (bug 1305777) 2017-09-29 10:43:24 +02:00
Sebastian Hengst bd2513957f Backed out changeset ffb4e22a4347 (bug 1305777) 2017-09-29 10:43:19 +02:00
J. Ryan Stinnett 82d5b3cfd6 Bug 1305777 - Fix ESLint issues for moved files. r=jdescottes
MozReview-Commit-ID: 6PVoLP4MFir
2017-09-28 11:28:55 -05:00
J. Ryan Stinnett 8b78b90ff8 Bug 1305777 - Clean up touch simulator after old RDM removal. r=ochameau
Only `simulator-core` is used by new RDM via the Emulation actor, so I've moved
this server side and renamed it to `touch-simulator`.

MozReview-Commit-ID: 5YgpYNDwBvw
2017-09-27 16:53:23 -05:00
Matthew Noorenberghe bb2d77f621 Bug 1401343 - Expose a 'tabs' getter in the child-process actor. r=jryans,ochameau
MozReview-Commit-ID: U5xB35kBv8
2017-09-28 11:28:26 -07:00
Oriol Brufau 15477daeff Bug 1394559 - Better handling of inaccessible objects in the console. r=jimb 2017-09-22 11:54:00 -04:00
Wes Kocher 9fa37a57e3 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 8wTTCUkrY2i
2017-09-25 16:43:51 -07:00
Alexandre Poirot 941991bcc1 Bug 1397452 - Remove all SDK compatiblity code from DevTools. r=jdescottes
MozReview-Commit-ID: IRhZeIS97cy
2017-09-25 16:04:26 +02:00
Oriol Brufau 30271434ac Bug 1395276 - Make $ and $$ console commands throw errors created in the debuggee global. r=jimb 2017-08-30 11:50:00 -04:00
Oriol Brufau 5fd6c1effb Bug 1391274 - Add a Symbol object previewer to the console. r=nchevobbe
MozReview-Commit-ID: EDMep3IePZ3
2017-09-20 12:32:03 +02:00
abhinav 880bd24e12 Bug 1379442 - Fix styling of nodeinfobar on RTL sites by setting writing-mode/direction to 'initial'. r=pbro
MozReview-Commit-ID: 3fg7F80CXWe
2017-09-20 09:04:30 +05:30
Tom Tromey aab59e7b78 Bug 1385337 - add MDN learn more link to source map errors; r=bgrins
MozReview-Commit-ID: 185sNVSJIrz
2017-09-15 14:15:10 -06:00
Sebastian Hengst f3b4b34c71 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-09-15 00:18:43 +02:00
Sebastian Hengst 7342712907 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JHeyFz4rx1v
2017-09-14 23:58:56 +02:00
Nicolas B. Pierron c4690e85b2 Bug 1397432 - Index documentation of JSMSG_INCOMPATIBLE_PROTO/METHOD. r=fscholz 2017-09-14 12:02:37 +00:00
Tom Tromey e7420f5ceb Bug 1330383 - fetch original style sheet text using TYPE_OTHER; r=gl
Using TYPE_INTERNAL_STYLESHEET here is incorrect because we're not
necessarily fetching style sheets -- just some text.  This may run
afoul of X-Content-Type-Options.

MozReview-Commit-ID: HB7YfWwq6CI
2017-09-13 13:36:50 -06:00
Tom Tromey 7d2e54a89e Bug 1388497 - apply source maps to CSS warnings in the console; r=bgrins
MozReview-Commit-ID: 8ObL0uwENrM
2017-08-15 14:32:56 -06:00
Luca Greco 0db6e1386f Bug 1396634 - Speed up the content scripts globals retrieval from the tab actor. r=ochameau
MozReview-Commit-ID: HA5GlenrSNm
2017-09-05 15:42:53 +02:00
ZER0 eab6a14929 Bug 1377879 - adjusted areValuesDifferent calculation for quads; r=pbro
The previous calculation was actually wrong, the `delta` is calculated between
logical pixels.
The previous calculation allowed half pixel movement to be ignored: with "fluid"
elements, a slow window resizing was making this half pixel stack each time.

MozReview-Commit-ID: nhDSpbg6RT
2017-09-12 02:24:35 +02:00
J. Ryan Stinnett 5dced910eb Bug 1397967 - Remove Style Editor support for ancient targets. r=gl
Style Editor has some ancient fronts and such to support pre-Firefox 29 targets.
This is well beyond what we attempt to support, so let's get rid of the extra
code.

MozReview-Commit-ID: 1OnGSYTyNsr
2017-09-07 19:01:24 -05:00
Alexandre Poirot 8bd5ef0c15 Bug 1396619 - Lazy load actor codebase related to the inspector. r=zer0
MozReview-Commit-ID: GCY1mqjoOkc
2017-09-04 17:46:26 +02:00
Tom Tromey d18e870b5c Bug 1224558 - change style editor to notice stylesheet additions; r=gl
This changes the stylesheets actor to use the tab actor's "windows"
getter to get the list of new windows.  It also changes the actor to
emit events, and changes the style editor to add new editors based on
events.

MozReview-Commit-ID: 3TkQY6XHY1I
2017-08-15 12:46:55 -06:00
Alexandre Poirot 8a8fd0f3c4 Bug 1396600 - Make some efforts to lazy load properties-db. r=tromey
MozReview-Commit-ID: LGgVb5kxN7X
2017-09-06 18:54:07 +02:00
Jim Blandy 338959a779 Bug 1394992 - Remove workaround for bug 1163520. r=bgrins 2017-08-29 16:41:31 -07:00
Sebastian Hengst 1f22e7f4c1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 17ViEoPyjPa
2017-09-05 23:55:39 +02:00
Tom Tromey e7bbf81f65 Bug 1388855 - Simplify source map URL extraction in stylesheet actor; r=gl
MozReview-Commit-ID: 3WeNugNx7M
2017-08-09 13:47:23 -06:00
Tom Tromey ade62668e4 Bug 970469 - ignore breakpoints on the current line when stepping out; r=ystartsev+600802
MozReview-Commit-ID: KTzygRac2D7
2017-08-31 14:21:57 -06:00
Sebastian Hengst 1b94cf976e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Micah Tigley 5a20d93b97 Bug 1383327 - Display the grid line number box shape as a directional pointer. r=zer0
MozReview-Commit-ID: DWw6dFxBKnR
2017-08-31 21:41:53 -06:00
Alexandre Poirot a085009b5a Bug 1392602 - Remove module boilerplate from DevTools loader. r=jdescottes
This file is now only loaded as a JSM.
Expose symbols directly instead of putting them on `Loader` symbol.
No longer exports it as a fake 'toolkit/loader' module and always import it as JSM.

MozReview-Commit-ID: 6J3IxHpk9ct
2017-08-29 10:49:43 +02:00
Julian Descottes 09c0897077 Bug 1391228 - remove unused devtools profiler actor, specs and front;r=gregtatum,mstange
MozReview-Commit-ID: 82R4C3NFolu
2017-08-18 17:27:56 +02:00
Yura Zenevich 195a6537f6 Bug 1151468 - add accessibility spec/actor/front to devtools. r=pbro
MozReview-Commit-ID: Ln1R8e04mGR
2017-08-31 23:11:23 -04:00
Tom Tromey 2c4ab81b95 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7
2017-08-30 12:05:41 -06:00
Julian Descottes 2530599593 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0
2017-08-18 17:05:04 +02:00
Sebastian Zartner 50b2d55b0e Bug 1336934 - Added option to remove all session cookies for a specific domain r=miker
MozReview-Commit-ID: Anm6aHQOlkO
2017-08-27 00:33:33 +02:00
Alexandre Poirot ceadd34a23 Bug 1388709 - Remove console originAttributes property. r=baku,kmag
MozReview-Commit-ID: jwUAKSEgZE
2017-08-08 14:30:44 +02:00
Nicolas Chevobbe 15554f90b2 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
2017-08-22 12:07:48 +02:00
Oriol Brufau 35554dd61c Bug 1389787 - Let the console unwrap proxy objects to avoid running traps. r=jimb 2017-08-23 15:50:00 -04:00
Luca Greco b6c5528b82 Bug 1391218 - Fix 'getDocShellEnumerator is not a function' exception when closing the last tab in a window. r=ochameau
MozReview-Commit-ID: FUcCCljVClI
2017-08-21 20:14:55 +02:00
Julian Descottes 92eb851e00 Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64
2017-08-16 15:11:21 +02:00
Oriol df8d7fffed Bug 1380506 - Prevent the console from searching safe getters in proxy objects. r=bgrins 2017-08-15 08:29:00 -04:00
ZER0 d78f1c54ef Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 03:47:30 +02:00
Wes Kocher aa1caed330 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc
2017-08-10 18:23:14 -07:00
ZER0 c91b128704 Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 02:43:47 +02:00
Alexandre Poirot 076c0143fe 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
2017-08-01 16:51:07 +02:00