Commit Graph

7336 Commits

Author SHA1 Message Date
Nicolas Chevobbe
32b0754ade Bug 1438542 - Fix rendering of non-cached message issued from logStringMessage; r=miker.
We weren't doing the right transform for cached messages, and thus
we weren't creating the ConsoleMessage with the correct properties.
This is now fixed and a mocha test is added to make sure we don't
regress on this.

MozReview-Commit-ID: ACOCPF06GK2

--HG--
extra : rebase_source : 029fe31b7343f4032ea48a8629bae8d8c0a87e62
2018-02-19 16:24:55 +01:00
Nicolas Chevobbe
905b05a8b6 Bug 1438442 - Fix styled console.log issue with empty style; r=Honza.
It is totally valid to declare an empty style in styled console.log.
But we were appending a space after a string with empty style because
we were checking that the style wasn't falsy, and empty string is falsy.
We fix that by checking against undefined.
A test is added to make sure we don't regress that.

MozReview-Commit-ID: EOQ49Gt0Cr9

--HG--
extra : rebase_source : bf711afa76dd784d3cf1f973c47e4aa139d5bc5e
2018-02-15 09:09:36 +01:00
Alexandre Poirot
fe1bc77e9b Bug 1438531 - Remove leftovers of mocha test from netmonitor. r=Honza
MozReview-Commit-ID: qea532Kc7Q

--HG--
extra : rebase_source : c901b37c0709dc70b1380d1764951f3aa209f399
2018-02-19 06:58:51 -08:00
Nicolas Chevobbe
6d26e58243 Bug 1436670 - Devtools Reps: update bundle to v0.20.0; r=nchevobbe.
MozReview-Commit-ID: 75lSnYTx0Ql

--HG--
extra : rebase_source : 3ac041dd55e06c5ab6d7c313a7b5d2b275d8fb09
2018-02-19 11:05:06 +01:00
Nicolas Chevobbe
9186c1aed2 Bug 1438463 - Fix click on location in browser console with new frontend; r=nchevobbe.
To fix this, we fallback to viewSource when we don't have access to the toolbox,
which is what was done in the old frontend.

MozReview-Commit-ID: JCcprTlViMi

--HG--
extra : rebase_source : ab13b539938a6572ebd9ceaedc23f954f4cb2be2
2018-02-16 09:14:02 +01:00
Nicolas Chevobbe
5dc6ad75e7 Bug 1435092 - Fix mocha tests broken due to changes to prefs; r=bgrins.
The mocha test are broken because we mock Services.pref,
and the assumptions we make in the mock are no longer valid.
Since we do have a fully functional replacement for Services
in devtools-modules, let's use it in our test.
Which means we need to introduce a mock for localStorage,
since it's what the devtools-modules Services uses, and helper
functions to replace what was in the Services mock.

MozReview-Commit-ID: KLHERfSa1Il

--HG--
extra : rebase_source : b1b5bc2d35624677fc241194ab1a49502cafe31d
2018-02-14 12:11:12 +01:00
Nicolas Chevobbe
2d3e2bd1c9 Bug 1435092 - Add a util object to manage preferences; r=bgrins.
This allow us to manage different sets of preferences for
the console and the browser console. The util object is
passed to the actions through a custom thunk middleware.

MozReview-Commit-ID: 6IQLBqX7KMN

--HG--
extra : rebase_source : 9dc60df24d0514c8bd0aac7655483eb3d026a16a
2018-02-13 17:35:32 +01:00
Cosmin Sabou
6e3859bfa5 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-19 00:00:43 +02:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Dorel Luca
07d2af4219 Merge mozilla-inbound to mozilla-central. a=merge 2018-02-17 11:55:38 +02:00
Gurzau Raul
3daf5ac131 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-17 00:13:16 +02:00
J. Ryan Stinnett
9f3541ff3f Bug 1439000 - Remove *-actor suffix from inspector actors. r=jdescottes
MozReview-Commit-ID: 9iOMZjmm9LR

--HG--
rename : devtools/server/actors/inspector/inspector-actor.js => devtools/server/actors/inspector/inspector.js
rename : devtools/server/actors/inspector/node-actor.js => devtools/server/actors/inspector/node.js
rename : devtools/server/actors/inspector/walker-actor.js => devtools/server/actors/inspector/walker.js
extra : rebase_source : 60d989ae565130c6182fadeb641ea064181e57e0
2018-02-16 15:47:32 -06:00
Brendan Dahl
40c81820ad Bug 1418403 - Remove viewing source in a standalone window. r=jryans
Along with removing the view source standalone windows and prefs this patch:
1) Re-structures several of the view source tests that were only testing the old
standalone windows to now test view source in tab.
2) Adds support viewSourceUtils.viewSource() to open a browser window when there
aren't any open (for browser toolbox view source).
3) Cleans up some of the API for viewSourceUtils and removes the old deprecated
ways of calling it.

MozReview-Commit-ID: DI6sgZwbCf

--HG--
extra : rebase_source : 64677186122f74ab95912d5f3f173cf37472458a
2018-02-05 13:33:58 -08:00
Christoph Kerschbaumer
494f074b53 Bug 1432358: Allow certain top-level pages to be agnostic to CSP. r=smaug
--HG--
extra : source : 27527f95cccca4927d4fee56b0dab9af11c5733f
extra : intermediate-source : 2fa11c525da3d0c7ca58a593241c1902f2849528
2018-02-01 14:07:01 +01:00
Narcis Beleuzu
ae89126f89 Bug 1438797 -Disable on Win_CCOV Perma devtools/client/debugger/new/test/mochitest/browser_dbg-babel.js | This test exceeded the timeout threshold. r=jmaher 2018-02-16 12:25:30 -05:00
Gabriel Luong
40a4aca24a Bug 1438002 - Add title tooltips to the inspector sidebar tabs. r=Honza 2018-02-16 10:32:26 -05:00
ewhite7
7166c3c714 Bug 1393609 - Add a test for line-height in console.log custom style; r=nchevobbe.
MozReview-Commit-ID: BD2fjv6u4b2

--HG--
extra : rebase_source : 8943437bc2756334000ad7fe162dd8bdeeb6c72e
2018-01-05 21:33:53 -05:00
Nicolas Chevobbe
da3e572a83 Bug 1405352 - Split browser_webconsole_jsterm.js in multiple tests; r=Honza.
The test was doing a lot of things and was hard to follow.
Here we split it so we can have dedicated tests for each helpers.

MozReview-Commit-ID: 6YGR3aq6jYn

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_document_no_xray.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_error_docs.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_error_outside_valid_range.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_helper_dollar.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_helper_dollar_dollar.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_helper_dollar_x.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_helper_help.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_helper_keys_values.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_helper_pprint.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_instance_of.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_jsterm.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_jsterm_null_undefined.js
extra : rebase_source : dafa772bcbc6b379fd6ec1137c07ba24e794fc71
2018-01-24 11:34:30 +01:00
Nicolas Chevobbe
eec262a2d8 Bug 1307899 - Remove renderComponent and switch consumers to using Enzyme instead; r=bgrins.
MozReview-Commit-ID: D88nlKJOSjk

--HG--
extra : rebase_source : df1287c1f012592d92579ac6397bd85a0e527b76
2018-02-08 16:43:50 +01:00
Mark Banner
21e6e270a4 Bug 1438489 - Enable ESLint rule mozilla/use-services for devtools/. r=jdescottes
MozReview-Commit-ID: FZscEA6Q3Kb

--HG--
extra : rebase_source : b1b8699288a3595e52bcff3c7684bfe095f41dd1
2018-02-15 12:00:17 +00:00
sole
a7c710f1f8 Bug 1404877 - Migrate browser_webconsole_bug_658368_time_methods.js to the new frontend. r=nchevobbe
MozReview-Commit-ID: 3Z6097zECDn

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-658368-time-methods.html => devtools/client/webconsole/new-console-output/test/mochitest/test-time-methods.html
extra : rebase_source : 5ad9c572ac391bafdc01605801cfb6928f5d87ef
2018-02-16 14:25:09 +00:00
Nicolas Chevobbe
95ed6cf8b9 Bug 1438476 - Fix launchpad configuration for console and netmonitor; r=jdescottes.
Since we don't run babel on the mocha tests anymore, we don't need to have a dedicated
env config in babelrc.
Also, bump min node version in both netmonitor and webconsole since we require async/await
to be supported.
Remove the "devDependencies" from netmonitor as we don't really have any use of it.

MozReview-Commit-ID: Ep4u59TZHAf

--HG--
extra : rebase_source : f3b184c83b063fdf1758b2ed4ecf57dd1b16641d
2018-02-16 14:59:51 +01:00
Nicolas Chevobbe
102570114c Bug 1438476 - Fix mocha tests broken due to React 16 update; r=ochameau.
MozReview-Commit-ID: 9v2sWMSA7pG

--HG--
extra : rebase_source : ace2d358cbcacd18e9eacdd6971cdf51975f118c
2018-02-15 12:27:52 +01:00
Nicolas Chevobbe
7a42afbdc7 Bug 1438476 - Fix and document webconsole test's package.json; r=jdescottes.
There was a few things wrong with new-console-output/test/package.json:
 - It had a dependency on the netmonitor folder, which means that we were
   pulling all the dependencies from netmonitor's package.json, including
   the launchpad, which we don't want. It was done so netmonitor's babelrc
   would find the plugins it needed. This is now fixed by not using babel at all.
   Removing babel allowed us to get rid of NODE_PATH hack which could have been
   harmful. This was doable by modifying the require-hacker callback to rewrite
   all mozilla-central require to absolute path.
 - The complex `test` script command wasn't documented. We now use the "//"
   key to add comments (we have to since we're in a json file), which is ignored
   by npm.
 - We were running some tests from the node_modules folder since our glob
   wasn't restrictive. We now only target folders where we do have mocha tests.
 - As a consequence, we were pulling dependencies that were needed for those
   tests, but not for ours.
 - The Enzyme configuration was done before declaring the require hook, which
   again forced us to pull dependencies that we don't need.

MozReview-Commit-ID: K7NXersnis8

--HG--
extra : rebase_source : 617b67921dd3bddaadc04b0901ece63581b98097
2018-02-16 08:34:53 +01:00
Thomas Wisniewski
16a55b16e6 Bug 792808 - Change devtools/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest), and the same for FormData; r=Honza
MozReview-Commit-ID: HCziNedavb0

--HG--
extra : rebase_source : cec5be97236b096bdb85a77f06cd5127fd80f7fb
2017-11-20 00:27:39 -05:00
Timothy Guan-tin Chien
a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Michael Ratcliffe
39866a29b9 Bug 1437852 - Enable browser_console_restore.js in new frontend r=bgrins
MozReview-Commit-ID: Fk7yT1gXKI9

--HG--
extra : rebase_source : ea793d4085e67b969d8b6ec132332bd86091b30b
2018-02-14 15:59:35 +00:00
Emilio Cobos Álvarez
deee29c647 Bug 1405087: Also nix -moz-user-input: enabled. r=bz
It only has one use, has the same effect that "auto", and should have no effect
in <a> elements anyway (plus it's not overridden or used in that file at all
anyway), so we can remove its only use instead.

I can also change that use to "auto" if you want, but bug 760876 doesn't mention
-moz-user-input at all, so I think this is quite useless...

See the intent to unship for research on out of the tree usage:

  https://groups.google.com/d/msg/mozilla.dev.platform/E6tfP__wkwg/YVW6nPX9CQAJ

MozReview-Commit-ID: 8EzQlzu9drE
2018-02-15 21:49:04 +01:00
Margareta Eliza Balazs
bb7afb1c0b Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/webidl/DataChannel.webidl => dom/webidl/RTCDataChannel.webidl
2018-02-15 22:41:28 +02:00
Margareta Eliza Balazs
54a8193a23 Backed out 3 changesets (bug 1429824) for frequently failing devtools/client/netmonitor/test/browser_net_autoscroll.js (bug 1438412) a=backout
Backed out changeset 500836846f62 (bug 1429824)
Backed out changeset e3d4ec2c18b5 (bug 1429824)
Backed out changeset cf796a41ff7d (bug 1429824)
2018-02-15 22:05:10 +02:00
Noemi Erli
656ee92d98 Merge inbound to mozilla-central. a=merge 2018-02-15 21:29:11 +02:00
Jason Laster
4af2f227c0 Bug 1438014 - Update Debugger Frontend v16. r=jdescottes
MozReview-Commit-ID: 6YntyDd1Eo0

--HG--
extra : rebase_source : dcf9f2d5602dcdd024c2ab02a6777377db605023
2018-02-15 15:36:31 +01:00
Alexandre Poirot
8e71d2a2f3 Bug 1438508 - Allows running brower_browser_toolbox_debugger.js more than once. r=jryans
The sandbox used in this test isn't immediately destroyed when the test finishes.
So use a unique file name to always refer to the expected sandbox/file in this debugger test.

MozReview-Commit-ID: FJYXPN0RQS2

--HG--
extra : rebase_source : 438ae8cf97bfef8bc11e86e7850b3d6d8e8f1ccc
2018-02-14 09:54:03 -08:00
Alexandre Poirot
0b75d2333d Bug 1438174 - Fix race during test shutdown in browser_browser_toolbox_debugger.js. r=jryans
The breakpoint is set in a function called every second.
We have to unregister it before test finishes, otherwise it gets randomly called during test shutdown.

MozReview-Commit-ID: IEHxnVjk1xW

--HG--
extra : rebase_source : be6cdad0d700e24f80c9e520be49ec5c9d02375b
2018-02-14 09:55:58 -08:00
Cosmin Sabou
a37e19d5a9 Bug 1429361 - Disabled devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_network_messages_expand.js for frequent failures. r=jmaher 2018-02-15 08:30:08 -05:00
Andreea Pavel
74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Yura Zenevich
7e286766a3 Bug 1428443 - allow panels to override picker functionality when they are active. r=pbro
MozReview-Commit-ID: 6VE4Y8FYfoN
2018-02-14 23:57:19 -05:00
Jan Odvarko
96233200ee Bug 1311171 - Implement the devtools.network.onRequestFinished API event; r=jdescottes,rpl
MozReview-Commit-ID: IymuzcUg0VN

--HG--
extra : rebase_source : 5c262babe60132c9a73acc7dadf3b38f30133ecc
2018-02-14 11:32:10 +01:00
Dorel Luca
75f385b6d6 Merge mozilla-centra to mozilla-inbound 2018-02-15 00:37:44 +02:00
Dorel Luca
4234703a53 Merge mozilla-inbound to mozilla-central a=merge 2018-02-15 00:23:02 +02:00
Gabriel Luong
5a130fd6b9 Bug 1438073 - String mixing plural and singular in markupView.display.contents.tooltiptext. r=pbro 2018-02-14 16:10:35 -05:00
Jason Laster
e0e5ef83af Bug 1437055 - Re-enable some debugger mochitests. r=jdescottes
MozReview-Commit-ID: ClYmlicq8gy

--HG--
rename : devtools/client/debugger/new/test/mochitest/browser_dbg_keyboard_navigation.js => devtools/client/debugger/new/test/mochitest/browser_dbg-keyboard-navigation.js
rename : devtools/client/debugger/new/test/mochitest/browser_dbg_keyboard-shortcuts.js => devtools/client/debugger/new/test/mochitest/browser_dbg-keyboard-shortcuts.js
2018-02-14 21:28:26 +01:00
J. Ryan Stinnett
37ccb191b8 Bug 1434155 - Remove extra container around RDM browser. r=gl
We can now remove the extra `.browser-container` element around the frame.  It
was only here as a way to invoke React's `innerHTML` for real content.

MozReview-Commit-ID: 1wnv7SJmjTd

--HG--
extra : rebase_source : 12435e53d069d23adc22de4b1ba0259912ad6027
2018-02-13 15:29:53 -06:00
J. Ryan Stinnett
885b58468b Bug 1434155 - Create RDM viewport as iframe component. r=gl
Now that we have React 16 (which includes support for custom attributes instead
of a fixed whitelist), we can create the browser frame in the "usual" way, as
opposed to this `innerHTML` workaround.

MozReview-Commit-ID: GwZVNIqF1QC

--HG--
extra : rebase_source : eec7a2c54638420b1a7adc27f25e1f0237eaa30e
2018-02-13 15:07:48 -06:00
Gurzau Raul
c550afcd80 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-14 12:49:32 +02:00
Michael Ratcliffe
7529efafe1 Bug 1437802 - Create selectNodeText(node) in new web console test head.js r=nchevobbe
MozReview-Commit-ID: LlgLPe2SMsO

--HG--
extra : rebase_source : be689869a627d03c05c78afc62af5473f670ae17
2018-02-13 12:07:24 +00:00
Brian Grinstead
e766cfc4fa Bug 1436765 - Include global.css in browserconsole.xul to restore window border;r=Honza
MozReview-Commit-ID: U5LSimaEhO

--HG--
extra : rebase_source : 166327b09ea1a761c4cf81d3e58458f7879a92aa
2018-02-13 10:27:43 -08:00
Michael Ratcliffe
a22ddebd79 Bug 1403454 - Migrate browser_webconsole_script_errordoc_urls.js to the new frontend r=jdescottes
MozReview-Commit-ID: 6BBCqrmRelw

--HG--
extra : rebase_source : 24259c7db492ed0a0ebbd100e6a21d5b29b6b2cb
2018-02-13 11:30:05 +00:00
Noemi Erli
7699947685 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-13 11:52:53 +02:00
Noemi Erli
d03ad8843e Merge inbound to mozilla-central. a=merge 2018-02-13 11:39:36 +02:00