The test that checked console api stubs was failing because we were trying
to reach the server while the connection was closed, which throws an error.
This patch filters-out log messages in the console output so we don't get
unwanted server communication. The output is not important here since we
are only listening to the consoleAPICall event.
MozReview-Commit-ID: Ay5fQ1CSbLx
This is mainly changing the props we pass to the ObjectInspector,
and removing actions, state properties and reducers that we used to
handle in the console but are now managed by the ObjectInspector
itself.
MozReview-Commit-ID: F2GabDqDjPe
Two specific changes have occurred with Stylo:
* `lineText` is no longer set because it caused performance regressions to
compute it and it is currently unused by DevTools.
* `columnNumber` is computed differently with Stylo. It's currently the
beginning of property, instead of the end. Bug 1378861 is filed for future
improvements to this info.
MozReview-Commit-ID: 5vTdjNbuhXe
Two specific changes have occurred with Stylo:
* `lineText` is no longer set because it caused performance regressions to
compute it and it is currently unused by DevTools.
* `columnNumber` is computed differently with Stylo. It's currently the
beginning of property, instead of the end. Bug 1378861 is filed for future
improvements to this info.
MozReview-Commit-ID: 5vTdjNbuhXe
This adds some tests to ensure the hidden messages toolbar works
as expected. There are some for testing the component itself, as
well as some to test the store.
Some fixtures were modified as well to better represent the state
of the application.
MozReview-Commit-ID: 3Swqff1mbck
This adds a "filteredMessagesCount" property to the messages store,
which is updated at the same time as we update the "visibleMessages"
property.
The global number of hidden messages is then shown next to the text search
input, and a button can be clicked to Reset the filters to their original
values.
This only takes into account messages that are filtered-out because
the default filters changes. Which means that non-default filters, like
CSS, Network and XHR don't impact filteredMessagesCount.
We take this as an opportunity to rename the match*Filter functions to
pass*Filter, since it better represents what the function does (a network
message is not impacted by a level filter, but it can be misleading to say
that it matches level filters).
MozReview-Commit-ID: BLPmCFNtzEl
This ensures that we scroll to the bottom when the user evaluate
something in the console.
A test is added to make sure this works as expected.
MozReview-Commit-ID: Arh6rftQeKo
This hopefully fix the frequent intermittent on this test.
In the cleanPacket function, we are overriding the actor
of arguments. Thus, some server-calls were using an unknown
actorId, which resulted in errors.
We now create a new object for the argument for the stub so
we don't override anything.
MozReview-Commit-ID: EcvVUqQS3Dt
There was an error because of the console.dir call, which is calling
the server to fetch the properties of the inspected object.
But, since the console.dir call was the last command to be called,
the actor were cleared before the properties fetch call was done,
resulting in an error on the server (no such actor for ID).
To fix this, we wait for the properties fetch call to be done
before closing the tab.
MozReview-Commit-ID: 9bsh3vHVPVa
A loose checking was causing 0 and undefined values to be rendered as Object.
We fix this by checking explicitely if the grip has a value property.
A test is added to make sure we handle those cases as expected.
MozReview-Commit-ID: 1wdBVs7bF61