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
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
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
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
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
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
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
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
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