Commit Graph
1667 Commits
Author SHA1 Message Date
Margareta Eliza Balazs e4c8e4836b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
Nicolas Chevobbe 79147a9c34 Bug 1216632 - Make autocompletion work on $_ and $0; r=bgrins.
To make $0 autocompletion work, we need to pass the current
selectedNode actor from the frontend, so we can retrieve the
object reference later.
For $_, we need the webconsole actor reference to be able
to retrieve the last input result.
Since the list of parameters of JsPropertyProviders was
getting a bit long, we transform them in an object so it's
more legible on the consumer side.
Mochitests are added for both helpers to ensure this work
as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11866
2018-11-15 09:49:14 +00:00
Brian Hackett 881ef09a34 Bug 1506707 - Keep track of duplicate console messages in the client, r=nchevobbe. 2018-11-12 12:11:18 -10:00
Timothy Guan-tin Chien fb30ec3de3 Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-15 06:52:01 +00:00
Andreea Pavel f667cd7449 Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien 3e86e5f53e Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
This patch removes the following functions:

* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)

and all references of the pref.

Depends on D11183

Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-14 19:37:42 +00:00
Andreea Pavel 9d41a0a2bf Backed out 5 changesets (bug 1506549) for failing devtools at devtools/client/aboutdebugging/test/browser_service_workers_status.js on a CLOSED TREE
Backed out changeset 6be66dea928c (bug 1506549)
Backed out changeset da0d76d0e8fc (bug 1506549)
Backed out changeset 490eeba8f9f7 (bug 1506549)
Backed out changeset 97554f465eca (bug 1506549)
Backed out changeset 4f259de6cce0 (bug 1506549)
2018-11-14 21:46:07 +02:00
Alexandre Poirot 0d5dc1f31e Bug 1506549 - Return target fronts out of RootFront.getProcess and getMainProcess. r=yulia
MozReview-Commit-ID: EGWYEmAkbtr

Depends on D11693

Differential Revision: https://phabricator.services.mozilla.com/D11622
2018-11-14 15:48:16 +00:00
Alexandre Poirot 1fc5daee89 Bug 1498280 - Introduce RootClient.getMainProcess to fetch ParentProcessTargetActor. r=yulia
MozReview-Commit-ID: E9OiwqDwNk7

Differential Revision: https://phabricator.services.mozilla.com/D11758
2018-11-13 14:07:36 +00:00
Nicolas Chevobbe a4f31f916b Bug 1390768 - Use new SmartTrace component in webconsole; r=Honza.
Depends on D11603

Differential Revision: https://phabricator.services.mozilla.com/D11604
2018-11-12 15:42:40 +00:00
Nicolas Chevobbe 1216204781 Bug 1462394 - Handle autocompletion data fetching and caching in Redux; r=Honza.
This patch moves all the logic we currently have
baked-in JsTerm to handle the autocompletion data:
- deciding to fetch from the server or the cache
- handling concurrent requests
- managing the cache.

This is now done through dedicated Redux actions and reducers.
In the JsTerm, where the autocompletePopup still lives, we
handle those data changes in componentWillReceiveProps.

Some tests were modified in order to pass with these changes.

Differential Revision: https://phabricator.services.mozilla.com/D11454
2018-11-12 16:07:37 +00:00
Nicolas Chevobbe 6d99f40d5f Bug 1505045 - Fix error in setTimeoutIfNeeded when store is not ready yet; r=Honza.
In some cases, the setTimeoutIfNeeded function can
be called before the store is initialized, which is
causing an exception when we try to dispatch the
messages.
With this patch, we check if the store is not ready,
and re-schedule a timeout so messages can be handled
properly when the store is ready.

Differential Revision: https://phabricator.services.mozilla.com/D11044
2018-11-12 15:09:45 +00:00
Alexandre Poirot 90730a9249 Bug 1503628 - Remove Target.isRemote. r=yulia
Now all targets are considered as remote, so isRemote attribute is misleading.
Remote means that we are going through the RDP protocol to debug the target
and we now always do. If some callsite wants to do something special for local tabs
it is better to read target.isLocalTab attribute.

MozReview-Commit-ID: IYlj0wO02PO

Differential Revision: https://phabricator.services.mozilla.com/D11009
2018-11-08 10:08:59 +00:00
David Walsh c447a19e36 Bug 1484526 - Increase timeout for webconsole stackframe test r=nchevobbe
Ups the timeout for a test that naturally takes a long time to pass on CI

Differential Revision: https://phabricator.services.mozilla.com/D11185
2018-11-07 17:10:31 +00:00
Nicolas Chevobbe 33fad905b8 Bug 1505024 - Disable codeMirror search addon in JsTerm; r=Honza.
This patches fixes a bug where hitting Cmd+F while
the filter input of the console was focused was
triggering codeMirror search addon, displaying the
search UI *in* JsTerm.
To prevent this, we add the ability for any consumer
of the Editor component to disable the search addon.
In the editor, in such case, we simply don't initialize
the event listeners that activate the search addon.
A test case is added to ensure we don't regress this.

Differential Revision: https://phabricator.services.mozilla.com/D11037
2018-11-06 14:08:13 +00:00
Narcis Beleuzu 5fafaa633d Merge mozilla-central to inbound. CLOSED TREE 2018-11-05 23:54:03 +02:00
tanhengyeow 7375af7aac Bug 1496742 - Allow to display Referrer Policy for a given request. r=Honza
Display Referrer Policy for a given request.

Differential Revision: https://phabricator.services.mozilla.com/D9128
2018-11-05 16:44:17 +00:00
Jan Odvarko cfe87fe162 Bug 1476097 - Use the Menu API's edit menu for all context menu textboxes within the toolbox; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6494
2018-11-05 10:52:27 +00:00
Cosmin Sabou 021b6c9d3b Merge mozilla-central to mozilla-inbound. a=merge 2018-11-05 18:20:54 +02:00
Cosmin Sabou 3053d5b102 Bug 1438979 - Disable browser_webconsole_network_messages_expand.js on all platforms for frequent failures. r=jmaher 2018-11-05 13:22:13 +02:00
Nicolas Chevobbe bf435150ff Bug 1500963 - Use the Stacktrace component in Error reps; r=bgrins.
This patch makes use of the new renderStacktrace
prop in Reps to render Error objects stacktraces
using the shared Stacktrace component.
This way we are showing stacktraces in a consistent
way, and as a bonus, we support sourcemap in Error
object.

Depends on D9922

Differential Revision: https://phabricator.services.mozilla.com/D9923
2018-10-31 13:32:40 +00:00
Margareta Eliza Balazs 59ee57e27a Backed out changeset 796f3bfbaa2d (bug 1476097) for perma dt failures in devtools/client/debugger/new/test/mochitest/browser_dbg-breakpoints-actions.js CLOSED TREE 2018-10-30 14:27:52 +02:00
Jan Odvarko 16f6621023 Bug 1476097 - Use the Menu API's edit menu for all context menu textboxes within the toolbox; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6494
2018-10-29 16:24:03 +00:00
Nicolas Chevobbe 5ede80e1bc Bug 1438979 - Fix browser_webconsole_network_messages_expand.js intermittent; r=Honza.
This is an attempt to fix the intermittent on this test.
It looks like we were setting the listeners on some events
after the request message was received, which might have
made us missed some events.
We take this bug as an opportunity to do some cleanup
on the test.

Differential Revision: https://phabricator.services.mozilla.com/D9075
2018-10-24 06:14:16 +00:00
Michael Ratcliffe 2929d5838c Bug 1498987 - localStorage and sessionStorage display key: key instead of key: value in developer console r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D9397
2018-10-23 15:33:29 +00:00
Zameer 0d27aedaf8 Bug 1495971 - fix network resource status code contrastby creating StatusCode.css file containing status code style rules and importing it in webconsole/index.html and netmonitor.css r=nchevobbe
Fixes contrast issue of status code in webconsole by creating and importing StatusCode.css file into webconsole/index.html  which contains the rules for styling the Status Code. Also imports the StatusCode.css file to netmonitor.css since status code styles are removed from RequestList.css.

Differential Revision: https://phabricator.services.mozilla.com/D9353
2018-10-23 14:28:38 +00:00
Julian Descottes 15aaadb6c7 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739
2018-10-23 07:12:23 +00:00
Nicolas Chevobbe 0f1cc316dd Bug 1500475 - Fix browser_jsterm_content_defined_helpers.js intermittent; r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D9360
2018-10-22 14:23:55 +00:00
Nicolas Chevobbe 1de75c386e Bug 1498531 - Localize Webconsole WebReplay Jump icon; r=loganfsmyth,Honza.
This patch adds localization for the WebReplay Jump icon, and uses
the same terminology as the one used in the context menu that triggers
the same action.
The Jump button was used in-place of the existing level icons (Error, Warning, …),
and was only displayed when the message was hovered. We now ensure the
level icon is always visible and that we only show the Jump icon when the
message is hovered.
Finally, the button was styled targeting the title attribute in CSS, which
seemed a little brittle. We now use a dedicated class which should
be safer and more future proof.

Differential Revision: https://phabricator.services.mozilla.com/D8533
2018-10-22 05:26:33 +00:00
Brian Hackett c5057986cb Bug 1496881 - Fix test for whether we are paused at a console message. 2018-10-20 07:59:49 -06:00
Nicolas Chevobbe 1fcb395acc Bug 1493675 - Send JS keywords from webconsole's autocomplete service; r=julienw.
Since we do now have the list of Javascript keywords, we
import it from webconsole autocomplete service and send
the keywords matching the current expression to the client.

Differential Revision: https://phabricator.services.mozilla.com/D8709
2018-10-19 16:07:22 +00:00
Nicolas Chevobbe 8a7ee34695 Bug 1500475 - Modify browser_jsterm_content_defined_helpers.js to find cause of intermittent; r=bgrins.
The log we currently receive are not really
actionable (we are using ok, so we don't know
what the received value actually is). Switching
to is should give us what the value is when the
test fails, which might help us fix the failure.

Differential Revision: https://phabricator.services.mozilla.com/D9270
2018-10-19 16:12:13 +00:00
Mark Banner 6462447652 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (manual fixes). r=mossop
Depends on D8389

Differential Revision: https://phabricator.services.mozilla.com/D8391
2018-10-19 08:33:17 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Nicolas Chevobbe 8544c56495 Bug 1499985 - Fix error in canRewind; r=miker.
hud.owner can be null in some condition, so we
need to guard the access to hud.owner.target.

Differential Revision: https://phabricator.services.mozilla.com/D9069
2018-10-19 08:15:08 +00:00
Nicolas Chevobbe 68312d80d3 Bug 1493837 - Fix intermittent on browser_jsterm_await.js; r=Honza.
The test is failing because the result of the last
evaluation is received before we expect it. Since we
had a 500ms delay between each promise resolution, it
might happen than the time it takes to execute the
command execedes this delay, making our expected message
order wrong.
Increasing the delay between each Promise resolution seems
to resolve the issue, although it makes the test a lot longer too.
This is why a new test was created to only cover the concurrent
await case.

Differential Revision: https://phabricator.services.mozilla.com/D8698
2018-10-19 07:06:12 +00:00
Nicolas Chevobbe f040be9941 Bug 1499070 - Fix timestamp for evaluation result; r=Honza.
When sending a command to the server, a timestamp is
computed before evaluating the string, and is then
sent back to the client in the packet.
However, if top-level await, or somme :commands, the
evaluation takes more time, which means the timestamp
is now innacurate.
For those cases, we update the timestamp before sending
the packet to the client.

Differential Revision: https://phabricator.services.mozilla.com/D8734
2018-10-18 09:41:53 +00:00
Bogdan Tara cb7970a285 Backed out changeset 0e8706e5d2ff (bug 1473841) for browser_jsterm_completion_invalid_dot_notation.js failures CLOSED TREE 2018-10-18 10:43:58 +03:00
Nicolas Chevobbe 577eaaaaa8 Bug 1473841 - Transform property access on a dot-notation invalid name into an element access; r=bgrins.
This patch turns property access that would result in
Syntax error (e.g. `x.data-test`) into element access
(e.g. `x["data-test"]`) when accepting a completion
value in the console input.
In order to do that, we use Reflect to parse  a custom
expression where we try to define the property the user
is going to accept. If this throws, this means we need to
modify the input into an element access.
A test is added to make sure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D8952
2018-10-17 20:55:26 +00:00
savvysiddharth bbc6023d58 Bug 1317076 - Making navigation marker more obvious; r=nchevobbe
Before this patch, in developer console, enabling persist log, message displayed "Navigated to" ..something was not distinguishable from console.log messages. Now specific class for navigation marker is added.

Differential Revision: https://phabricator.services.mozilla.com/D7040
2018-10-17 15:11:28 +00:00
Nicolas Chevobbe f706d32d4e Bug 1499378 - Fix mocha test; r=bgrins.
A function was missing in the serviceContainer stub,
and the console.trace with params test needed a
Provider wrapper to work with the latest changes made
to the ObjectInspector.

Differential Revision: https://phabricator.services.mozilla.com/D8861
2018-10-16 15:02:17 +00:00
Nicolas Chevobbe 009520fc35 Bug 1498300 - Add top-level await support to the Browser Console; r=bgrins.
This patch moves the parserService from the toolbox,
which isn't accessible in the case of the Browser Console,
to the console itself.
A lightweight test is added to ensure top-level await is
supported in the browser console.

Differential Revision: https://phabricator.services.mozilla.com/D8816
2018-10-16 13:57:32 +00:00
Nicolas Chevobbe 77367c875a Bug 1425542 - Move inspectObjectActor away from jsterm; r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D8519
2018-10-15 14:23:51 +00:00
Nicolas Chevobbe 6e7e43e01d Bug 1484989 - Prevent JsTerm to steal focus when reloading a page; r=bgrins.
JsTerm's focus function was called in clearOutput, which
we call when navigating to a new page (if Persist Logs is
not checked).
This means that we were forcing the JsTerm to be focused
each time the user navigated while having the console open.
This behavior, can be annoying, or at worst, if you're
debugging a focus issue in your content page, completely maddening.
The fix is striaghtforward: do not call focus in clearOutput.
A test is added to make sure we don't regress this.

Differential Revision: https://phabricator.services.mozilla.com/D8701
2018-10-15 14:25:10 +00:00
Alexandre Poirot d46ecb70dc Bug 1497644 - Always call Root actor's getProcess request via RootClient.getProcess r=yulia
I also made its argument mandatory, so that later in root spec we can use a non-nullable number.

MozReview-Commit-ID: BUPgI1ww1gC

Differential Revision: https://phabricator.services.mozilla.com/D8141
2018-10-11 16:26:45 +00:00
Neil Deakin 117d5b55bb Bug 1310193 - Remove wrapping of nsISupports as nsISupportsInterfacePointer in transferables. r=smaug 2018-10-07 16:33:07 +02:00
Jason Laster e283e89e72 Bug 1496468 - Add a console pause indicator. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D7741
2018-10-04 20:14:53 +00:00
Alexandre Poirot 600169f1e8 Bug 1492434 - Computes isBrowsingContext from TabTarget out of actor's form r=jdescottes
Instead of requiring all TargetFactory.forRemoteTab to compute isBrowsingContext flag,
we can compute it out of the actor's form as we know which types are browsing context
inherited or not.

MozReview-Commit-ID: H5zLo5nZSm6

Differential Revision: https://phabricator.services.mozilla.com/D7413
2018-10-03 09:07:18 +00:00
Anshul Malik 1f1b02f2f0 Bug 1495300 - Add paused and jump badge to console api messages r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D7327
2018-10-02 18:32:55 +00:00
Jason Laster 7d999d369f Bug 1491471 - Move the OI store to the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D5911
2018-09-27 20:09:51 +00:00