Commit Graph
873 Commits
Author SHA1 Message Date
Brian Grinstead 3237a729ef Bug 1307881 - Part 3 - Remove unused filteredMessageVisible prop from the state;r=nchevobbe
MozReview-Commit-ID: D5TKjuuvpgt
2017-08-31 21:45:00 -07:00
Brian Grinstead ca5564824e Bug 1307881 - Part 2 - Provide a UI within the Web Console for managing persistence;r=nchevobbe
MozReview-Commit-ID: GVkOms1o74c
2017-08-31 21:43:42 -07:00
Nicolas Chevobbe 7d3da27779 Bug 1390815 - Fix console launchpad. r=bgrins,Honza,jdescottes
This updates devtools-launchpad to 0.0.96, and thus
makes the console launchpad uses Webpack 3.
Because of this version bump, the console launchpad
config needed some adjustments to keep working:
- Replace loaders with rules
- Pass the babelExclude property in the option argument for launchpad config
- Change the name of the svg filter to exclude
- Add a workaround "raw!" required-files (remove the "raw!" prefix in a loader).

An alias needed to be added as well for devtools/shim/locales.

MozReview-Commit-ID: 3cWXYw6gNc7
2017-08-29 09:46:49 +02: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
Jan Odvarko df469ba9f2 Bug 1362036 - Generate stubs; r=nchevobbe
MozReview-Commit-ID: ILcUaOuO3IG
2017-08-30 15:16:40 +02:00
Jan Odvarko 85f91d53dd Bug 1362036 - Implement tests; r=nchevobbe
MozReview-Commit-ID: KvvWrHUC8m6
2017-08-30 15:16:39 +02:00
Jan Odvarko 90394f0670 Bug 1362036 - Open in network panel; r=nchevobbe
MozReview-Commit-ID: 3Cg0PVITRVG
2017-08-30 15:16:39 +02:00
Jan Odvarko 8cf25b940f Bug 1362036 - Remember active network tab id; r=nchevobbe
MozReview-Commit-ID: BXiWywtQMwI
2017-08-30 15:16:39 +02:00
Jan Odvarko 2e7af478f2 Bug 1362036 - Implement http inspection in new console; r=nchevobbe
MozReview-Commit-ID: FhYePLM2T3O
2017-08-30 15:16:39 +02:00
Ryan VanderMeulen 8884303c17 Bug 1390001 - Disable various webconsole tests on Win64 that permafail after the uplift to Beta. f=pbro, r=me 2017-08-30 10:24:03 -04:00
Sebastian Hengst 5a5c7d0dc6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gf0QPFp52Bj
2017-08-30 11:05:16 +02:00
Wes Kocher 61dcd00825 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 5c1Pgm4aVKe
2017-08-29 16:17:50 -07:00
Masatoshi Kimura 8cbbf538bb Bug 1098412 - Remove and update tests that use __iterator__. r=luke
MozReview-Commit-ID: 7mxZYAceiuN
2017-08-24 22:25:25 +09:00
Gabriel Luong e60a898c8d Bug 1394513 - Part 2: Fix the devtools separator styling in the webconsole and make the filter message text unselectable. r=bgrins 2017-08-29 20:39:55 -04:00
André Bargull 61df51ba77 Bug 1381433 - Throw when Date.prototype.toString is called with non-Date object per ES2018 spec draft. r=till, r=bgrins 2017-07-17 03:43:15 -07:00
Nicolas Chevobbe 12c033676a Bug 1307880 - Add tests for the "Hidden messages" toolbar. r=bgrins
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
2017-08-08 15:27:03 +02:00
Nicolas Chevobbe 970a014803 Bug 1307880 - Show the number of filtered messages. r=bgrins
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
2017-08-18 14:01:38 +02:00
Nicolas Chevobbe a881a40c9c Bug 1389803 - Scroll the console to the bottom on Evaluation result. r=bgrins
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
2017-08-18 17:46:52 +02:00
Nicolas Chevobbe b1432d2d65 Bug 1380512 - Fix intermittent on browser_webconsole_check_stubs_console_api; r=Honza.
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
2017-08-16 11:23:54 +02:00
Brian Grinstead ee0f10fae7 Bug 1390176 - Increase console logLimit;r=nchevobbe
MozReview-Commit-ID: 3Ynr58lLQcs
2017-08-16 10:05:31 -07:00
Brian Grinstead 53d677102d Bug 1390176 - Fix the jsterm stub in test_render_perf;r=nchevobbe
MozReview-Commit-ID: 8qYIthlQtXa
2017-08-16 10:04:45 -07:00
Jan Odvarko 0410ab11a5 Bug 1390077 - Add readme about stubs generator instructions; r=nchevobbe
MozReview-Commit-ID: Ka6igCDyqRE
2017-08-15 15:10:49 +02:00
Nicolas Chevobbe 05e2e56e0b Bug 1380512 - Fix intermittent on browser_webconsole_check_stubs_console_api; r=Honza
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
2017-08-14 10:30:59 +02:00
Jan Odvarko 9d341eb964 Bug 1385791 - Fix tests; r=nchevobbe
MozReview-Commit-ID: LFKwQHj1pIk
2017-08-11 17:10:55 +02:00
Jan Odvarko d83e1e42d3 Bug 1385791 - Fix message filtering; r=nchevobbe
MozReview-Commit-ID: 4iPLGUor0Pu
2017-08-11 17:10:54 +02:00
Jan Odvarko 8c9f05df00 Bug 1385791 - New stubs for tests; r=nchevobbe
MozReview-Commit-ID: JoD9ej6689V
2017-08-11 17:10:54 +02:00
Jan Odvarko 4b6b80d8e9 Bug 1385791 - Babel support for async func; r=nchevobbe
MozReview-Commit-ID: LTgs0iPG2j0
2017-08-11 17:10:54 +02:00
Wes Kocher 1865918a1a Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Wes Kocher 399a13fd39 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Nicolas Chevobbe 66b30b5346 Bug 1389528 - Fix mocha tests; r=Honza.
Tests were failing because we did not pass the expected serviceContainer prop
to the EvaluationResult component.

MozReview-Commit-ID: F6xKoY6vggb
2017-08-11 17:37:55 +02:00
Nicolas Chevobbe 9e2d46f4f4 Bug 1389161 - Fix console.table for nested object with falsy values; r=Honza.
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
2017-08-11 10:12:43 +02:00
Brian Grinstead 1d229271b6 Bug 1388552 - Save Browser Console state in session store;r=mikedeboer,nchevobbe
This evolves restoreScratchpadSession into restoreDevToolsSession which can keep track
of more than just scratchpad windows. In this case we also restore the Browser Console.

MozReview-Commit-ID: D4vOGkpq8xH
2017-08-11 09:16:59 -07:00
Brian Grinstead 2be258f821 Bug 1388552 - Export the HUDService object directly instead of individual methods and properties;r=nchevobbe
MozReview-Commit-ID: 9AYCuqqv1U7
2017-08-11 09:07:04 -07:00
Nicolas Chevobbe 0c90f98e7c Bug 1307931 - Make urls in output clickable; r=bgrins.
This passes an openLink callback to the Reps which handles the output.

MozReview-Commit-ID: L6q9wAWmwrp
2017-08-03 16:25:40 +02:00
Nicolas Chevobbe 3b590a4bd7 Bug 1307931 - devtools reps: update bundle to v0.12.1. r=bgrins
This required some changes in the ConsoleTable component. Since
it uses GripMessageBody, we need to pass it props that it might
need.

MozReview-Commit-ID: DNeBsmJqCFI
2017-08-10 19:02:56 +02:00
Jan Odvarko 3d9d1bcbca Bug 1388368 - Fix the Console panel in Launchpad; r=nchevobbe
MozReview-Commit-ID: BIHXp6tE32Q
2017-08-10 10:00:35 +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
Alexandre Poirot aa09b27f5a Bug 1382968 - Flag Browser Console target as being chrome and related to a TabActor. r=jryans
The Browser Console interacts with a ChromeActor instance, which as any TabActor inherited actor,
expects to be "attached" by calling its `attach` request. isTabActor set to true ensures that.
While chrome set to true allows client codebase to enable additional behavior for chrome debugging.

MozReview-Commit-ID: 1MVLBKnluhg
2017-08-07 18:47:20 +02:00
Sebastian Hengst d1b587841d Backed out changeset d2e76a2d8794 (bug 1388368) for eslint failures in system-stub.js (should be Unix linebreaks, not the Windows' ones). r=backout 2017-08-09 17:22:51 +02:00
Jan Odvarko d9e5da4503 Bug 1388368 - Fix the Console panel in Launchpad; r=nchevobbe
MozReview-Commit-ID: 4AAs8Mre3bt
2017-08-09 15:28:42 +02:00
Tom Tromey 2f65c65a28 Bug 1387477 - report source map errors due to missing sources; r=jdescottes
MozReview-Commit-ID: 5UbkJH8fvLn
2017-08-04 13:14:11 -06:00
Nicolas Chevobbe 029d17c74f Bug 1386525 - devtools reps: update bundle to v0.12.0. r=bgrins
A test needed to be fixed since we changed some things
in bucketing (proper ellipsis and bucket label fix).

MozReview-Commit-ID: HhfJcKOGO2H
2017-08-08 14:43:27 +02:00
Wes Kocher 85ba4e7ea1 Backed out 3 changesets (bug 1382968) for breaking browser_addons_debug_webextension.js a=backout
Backed out changeset e25b4bd21ac8 (bug 1382968)
Backed out changeset 5a2260bc98ca (bug 1382968)
Backed out changeset 869a9b46b5cc (bug 1382968)

MozReview-Commit-ID: DSKWAHxdXI
2017-08-08 09:17:56 -07:00
Alexandre Poirot 946ab8adea 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
2017-08-08 15:19:56 +02:00
Alexandre Poirot 3d76320218 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
2017-08-08 15:24:04 +02:00
Alexandre Poirot 1f1a801a56 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
2017-08-08 15:33:56 +02:00
Alexandre Poirot d7402fa992 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
Alexandre Poirot 0a2f85415b Bug 1382968 - Flag Browser Console target as being chrome and related to a TabActor. r=jryans
The Browser Console interacts with a ChromeActor instance, which as any TabActor inherited actor,
expects to be "attached" by calling its `attach` request. isTabActor set to true ensures that.
While chrome set to true allows client codebase to enable additional behavior for chrome debugging.

MozReview-Commit-ID: 1MVLBKnluhg
2017-08-07 18:47:20 +02:00
Tom Tromey 0f65d40c76 Bug 1345533 - report source map errors to the web console; r=bgrins
MozReview-Commit-ID: 7gynPYFxyIv
2017-08-03 09:00:19 -06:00
Masatoshi Kimura acfaf6cffe Bug 1149830 - Remove nsIStackFrame::language. r=bz,mccr8
MozReview-Commit-ID: LxTiLFzNJ9Y
2017-08-03 15:50:07 +09:00