Commit Graph

1143 Commits

Author SHA1 Message Date
Dorel Luca
a066bff27d Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-18 11:43:47 +02:00
Tiberius Oros
0f3b1d6ace Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-18 00:28:57 +02:00
Tiberius Oros
92e228aa49 Merge inbound to mozilla-central. a=merge 2018-01-17 23:48:10 +02:00
abhinav
9d163b749f Bug 1421213 - Fix tests broken due to simulateClickLink changes. r=nchevobbe
MozReview-Commit-ID: 6JYBSzgMzR

--HG--
extra : rebase_source : 1c0ccaec5f6907f412a6320dc6dc1a9a780e48a3
2018-01-17 20:53:30 +05:30
abhinav
87efa833ab Bug 1421213 - Clicking on the request status code should open the corresponding MDN page. r=nchevobbe
MozReview-Commit-ID: JlU7pJiZ689

--HG--
extra : rebase_source : 8fb58e31a85046380fac21692e84ea5730db1348
2018-01-16 07:14:43 +05:30
Julian Descottes
72028ea30e Bug 1405637 - Remove duplicated test browser_webconsole_notifications;r=nchevobbe
Test was already migrated in Bug 1304003 to browser_webconsole_observer_notifications.js.

MozReview-Commit-ID: DyfVJ49ksSd

--HG--
extra : rebase_source : e2ec3f78e04f87e8951fde4de0e0d3ceabfa57c3
2018-01-17 11:06:32 +01:00
Chung-Sheng Fu
0319902c5b Bug 1418243 - Fix mochitest failures due to violationDirective change. r=ckerschb
MozReview-Commit-ID: AphtAxYo6Hr

--HG--
extra : rebase_source : 24cd7773cb1f3583c524d142908f859ff5e88e8a
2018-01-16 23:00:00 +02:00
abhinav
af5f219381 Bug 1427006 - Enhanced the browser_webconsole_console_group test; r=nchevobbe
MozReview-Commit-ID: Efe5xb8sq7C

--HG--
extra : rebase_source : c9bc62bfe98166f3907143099a7a58a42dfc03ff
2017-12-15 00:39:34 +05:30
Tiberius Oros
aed73bde87 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-18 00:31:28 +02:00
Andrea Marchesini
35717fcad1 Bug 1431105 - Prefix in Console when used by JSM, r=bgrins, r=smaug 2018-01-17 09:19:36 -08:00
Nicolas Chevobbe
5c75c1eb91 Bug 1404378 - Enable browser_webconsole_iframe_wrong_hud.js in new console frontend; r=jdescottes.
MozReview-Commit-ID: HBfA7lXjVdI

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-593003-iframe-wrong-hud-iframe.html => devtools/client/webconsole/new-console-output/test/mochitest/test-iframe-wrong-hud-iframe.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-593003-iframe-wrong-hud.html => devtools/client/webconsole/new-console-output/test/mochitest/test-iframe-wrong-hud.html
extra : rebase_source : fca51cb43951784007d9997d0c95da5269053dd5
2018-01-17 09:23:12 +01:00
Nicolas Chevobbe
df698165af Bug 1430770 - Fix batchMessageAdd for test-perf.html; r=bgrins.
MozReview-Commit-ID: Doyj3Dznvnl

--HG--
extra : rebase_source : 9f56babd9d18f9f5bd1145b18ce34c1e2169cc9c
2018-01-16 15:16:57 +01:00
Julian Descottes
08edaf7d34 Bug 1406039 - migrate browser_webconsole_strict_mode_errors to new frontend;r=nchevobbe
MozReview-Commit-ID: ATuyIFj5c4D

--HG--
extra : rebase_source : bcfa0578223194f014214b240c43c4af0afbea2f
2018-01-16 16:51:02 +01:00
Nicolas Chevobbe
f61189c897 Bug 1405341 - Enable browser_webconsole_hsts_invalid-headers.js in new console frontend;r=Honza."
MozReview-Commit-ID: JeAMdv3MpK7

--HG--
extra : rebase_source : b35bcb1546621b7afe6a5647af3fbbb4835084e5
2018-01-15 10:15:17 +01:00
Nicolas Chevobbe
cfc180feed Bug 1405340 - Enable browser_webconsole_hpkp_onvalid-headers.js in new console frontend;r=Honza.
MozReview-Commit-ID: 4bcZR2HrFOd

--HG--
extra : rebase_source : 1c62f66a1ea29c12fc69295c43e637fc744e798c
2018-01-12 08:56:13 +01:00
Julian Descottes
5347910ef3 Bug 1406841 - remove js property provider mochitests;r=bgrins
The features tested here are already covered in
- https://searchfox.org/mozilla-central/source/devtools/shared/webconsole/test/unit/test_js_property_provider.js
- https://searchfox.org/mozilla-central/source/devtools/shared/webconsole/test/test_jsterm_autocomplete.html

MozReview-Commit-ID: 1LY8mq5UvCA

--HG--
extra : rebase_source : b2a11629c6f224879bcb9d4a171922bf23d9131f
2018-01-11 22:55:03 +01:00
Nicolas Chevobbe
27abc2bc99 Bug 1399897 - Fix console_table mochitest; r=Honza.
Now that we are using sibling divs for all the cells of the table,
we don't have the same notion of what is a row.
The console table test is adapted to the new component.

MozReview-Commit-ID: HcfzTaRVIcN

--HG--
extra : rebase_source : fdf95ccb5abf8fc9ed362e03d72dae2f03245300
2018-01-08 12:26:32 +01:00
Towkir Ahmed
128e1384de Bug 1399897 - Restrict the height of console table and add sticky headers; r=nchevobbe
Since table elements (th, tr) do not support sticky headers, the console table now
uses only sibling divs for the cells, with appropriate aria attributes and a CSS grid
to mimic an actual table.

MozReview-Commit-ID: J8hmy7H4GKL

--HG--
extra : rebase_source : 220368d50a36707f7114a4c69580614b79b955e9
2017-12-07 22:05:18 +06:00
Brian Grinstead
46ff68fff1 Bug 1420934 - Ensure npm install on netmonitor before installing in webconsole;r=Honza
If the netmonitor hasn't had `npm install` ran, then running the webconsole tests fail,
because the webconsole depends on netmonitor, and the babel plugin "transform-object-rest-spread"
defined in netmonitor/.babelrc cannot be resolved unless if it's been installed.

MozReview-Commit-ID: KyQgja5rRpg

--HG--
extra : rebase_source : 9a8487fccd7c8641f47dcc405be3c8324bf8474c
2018-01-11 09:28:52 -08:00
Julian Descottes
1bc58767e9 Bug 1405636 - enable and rename browser_webconsole_netlogging_reset_filter.js;r=Honza
MozReview-Commit-ID: IcFW6itKo7I

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_netlogging_reset_filter.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_network_reset_filter.js
extra : rebase_source : 98a22f95f1f93ea799d9e789d02cf9913de14629
2018-01-09 09:48:30 +01:00
Julian Descottes
a4e273006e Bug 1404849 - migrate mochitest for generators autocompletion to xpcshell;r=nchevobbe
MozReview-Commit-ID: 74EaFkIZva7

--HG--
extra : rebase_source : 32dd75785d886134a012bb2bddb38c976441e065
2018-01-10 12:04:12 +01:00
Kate McKinley
e97980a95e Bug 1424917 - Remove support for HSTS Priming. r=mayhemer, r=ckerschb
This patch removes support and tests for HSTS priming from the tree.
2018-01-10 11:07:00 -05:00
Nicolas Chevobbe
e4b76ad2d1 Bug 1403907 - Enable browser_webconsole_duplicate_errors.js in new console frontend; r=bgrins.
MozReview-Commit-ID: 5LvsTa8zpdN

--HG--
extra : rebase_source : 6aec7a783637a3a66e354ad0afb741cff329af0f
2018-01-04 18:03:49 +01:00
Brian Grinstead
901ccdc1e8 Bug 1398904 - Request a longer timeout for browser_webconsole_network_messages_expand.js;r=bgrins
MozReview-Commit-ID: 5DGHBud7tTH

--HG--
extra : rebase_source : 5e6fa20b804143e6a1dbfa20f7421cb9067b8a0b
2018-01-08 20:11:35 -08:00
Julian Descottes
8a5629f928 Bug 1401953 - enable browser_webconsole_repeat_different_objects.js;r=nchevobbe
MozReview-Commit-ID: AVWJGeKrcCe

--HG--
extra : rebase_source : d0c3c1f44fbdb6b216eb84e075bb2c56541e622d
2018-01-08 21:06:25 +01:00
Nicolas Chevobbe
56b64bd286 Bug 1404392 - Enable and refactor browser_webconsole_filter_scroll.js to check that filtering does not affect scroll position; r=bgrins.
MozReview-Commit-ID: DEZDnblICnh

--HG--
extra : rebase_source : 259f1098f24f6418d5194c0840802ce52c77259f
2018-01-08 18:02:51 +01:00
Nicolas Chevobbe
44437622ab Bug 1428717 - Fix netProviderEnhancer for MESSAGE_OPEN action for non-network message;r=Honza.
There was an exception thrown by the netProviderEnhancer because it
retrieves the networkMessageUpdate and access a property on it.
On non-network message, the networkMessageUpdate is undefined, and
accessing the property throws.

We fix this by simply checking if message is not falsy before accessing
the property.

A couple of tests were added to make sure we don't regress this case. This
required changing the setupStore helper a bit to pass a hud stub to the
createStore function (the net enhancer is called only if the hud has a proxy
object). This made some test fail because they weren't dispatching enough
argument to the networkMessageUpdate action.

MozReview-Commit-ID: 7h35ebHSdbF

--HG--
extra : rebase_source : 089dce93d1de60e4b44936b514627803aa2c5100
2018-01-08 15:37:23 +01:00
James Teh
91694598dc Bug 1424156 part 4: Add test for aria-live in Web Console messages. r=nchevobbe
MozReview-Commit-ID: A1y18uTbjIJ

--HG--
extra : rebase_source : 186420ee3dd3fc0887cc89619ff452983c428826
2018-01-05 14:32:09 +10:00
James Teh
a7b8705ecc Bug 1424156 part 3: Add test for aria-live in Web Console message icon. r=nchevobbe
MozReview-Commit-ID: 9VXYjOoQOco

--HG--
extra : rebase_source : e7597f2b05d9a44461a05b582c531b7c057f0685
2018-01-04 16:02:48 +10:00
James Teh
06e00020fb Bug 1424156 part 2: Don't treat message icons in the Web Console as live content for accessibility. r=nchevobbe
Message icons now get the aria-live="off" attribute.
This stops screen readers from automaticaly reading icon descriptions, which might be interesting to read later but make things inefficient when automatically reading new output.
MozReview-Commit-ID: BQOUnTRVkBE

--HG--
extra : rebase_source : 47f1df96910a92961fc739582ffb49956735fdb3
2018-01-03 09:56:09 +10:00
James Teh
38bc58c8ee Bug 1424156 part 1: Don't treat Web Console input from the user as live content for accessibility. r=nchevobbe
Commands entered by the user now get the aria-live="off" attribute.
This stops screen readers from echoing commands the user typed, which is redundant and inefficient.
MozReview-Commit-ID: GJXiBPMe0W5

--HG--
extra : rebase_source : 9fac3b14115a9f2f54bc8180bed6c0442e0da3f0
2018-01-03 09:52:17 +10:00
Nicolas Chevobbe
ffa098ba78 Bug 1428014 - Fix intermittent on browser_webconsole_close_sidebar.js; r=bgrins.
The test was failing because it still had pending request to the server while shutting
down the toolbox. This request was probably the one to retrieve the properties of the
object we put in the sidebar.
By waiting the object properties to be fully loaded when opening the sidebar, we should
make the intermittent go away.

MozReview-Commit-ID: 7tY8hvbDVRp

--HG--
extra : rebase_source : cc5479f21c91df1fc0967900fb1022e3ec6dff3d
2018-01-08 09:47:50 +01:00
Nicolas Chevobbe
0f6571a3b4 Bug 1408893 - Enable browser_webconsole_eval_in_debugger_stackframe2.js in the new console frontend; r=bgrins.
MozReview-Commit-ID: Ej7flr2u3Ya

--HG--
extra : rebase_source : 71ced01a366d418a58cab5072ee4f00494da27bb
2018-01-05 12:52:59 +01:00
Nicolas Chevobbe
7a95fd143a Bug 1405333 - Enable browser_webconsole_execution_scope.js in new console frontend;r=jdescottes.
MozReview-Commit-ID: IE8AQdMR867

--HG--
extra : rebase_source : 44eac13e793aee293095e2d8f88f2db9ab623cb3
2018-01-05 14:03:43 +01:00
Nicolas Chevobbe
60fc06cede Bug 1405254 - Add console.count test cases in console mocha tests;r=bgrins.
This patch adds a few console.count stubs and check
that they all render as expected.

MozReview-Commit-ID: IejxMKnLTAz

--HG--
extra : rebase_source : a9df8bd9eb1b78c6f05106c16d48dd31d16087f6
2017-11-22 16:53:42 +01:00
Nicolas Chevobbe
849f7684b6 Bug 1428394 - Fix mocha network test; r=Honza.
The test was failing because we have more than one
networkUpdate in the store.
As it's not the purpose of this test case to assert the
number of updates, let's just check that we have some,
and that they are removed after MESSAGES_CLEAR.

MozReview-Commit-ID: FgZv8epfP0q

--HG--
extra : rebase_source : 269f8654fa0f9f06c8ece5fe6415f82385553e85
2018-01-05 18:51:41 +01:00
Nicolas Chevobbe
bddcac1672 Bug 1428394 - Fix mocha sidebar tests; r=Honza.
The tests were failing because all the sidebarToggle actions
were renamed to sideBarClose, which made the tests inacurate.

MozReview-Commit-ID: LBkqTzNhaqV

--HG--
extra : rebase_source : 5943924d6fb073cb2375df275665de206aaf857b
2018-01-05 18:40:44 +01:00
Nicolas Chevobbe
49fdddb62b Bug 1404853 - Enable browser_webconsole_highlighter_console_helper.js in new console frontend; r=Honza.
This changes the code of the test since it was relying on direct access to the content page.
In order to be able to interact with the element picker, the test-actor and test-actor-registery
files are loaded by head.js.

MozReview-Commit-ID: FyebIiyF31j

--HG--
extra : rebase_source : 83d7304303edc8e8a54cbcc2cc535987b8368207
2017-12-11 06:54:20 +01:00
Oriol Brufau
2f51c10cab Bug 1396434 - Test that symbols can be stored as global variables in the console. r=nchevobbe
MozReview-Commit-ID: Ba7Ir2BHEzw

--HG--
extra : rebase_source : 07ff416d5019eb9f2c92c616f2c3e53e55d8c929
2018-01-01 13:17:05 +01:00
Tiberius Oros
5dc770334b Backed out changeset af69a7e1b59f (bug 1427006)for failing devtools and test verify tests test/mochitest/browser_webconsole_console_group.js r=backout on a CLOSED TREE 2018-01-05 17:34:39 +02:00
abhinav
b2c45cf368 Bug 1427006 - Enhanced the browser_webconsole_console_group test; r=nchevobbe
MozReview-Commit-ID: Efe5xb8sq7C

--HG--
extra : rebase_source : 6194d5f4af96446162fcf9b2324fe596e4f299d4
2017-12-15 00:39:34 +05:30
Nicolas Chevobbe
797df76226 Bug 1428231 - Fix browser_webconsole_websocket.js intermittent failure; r=Honza.
The patch changes how log we wait before polling again in waitFor, since the timeout
is happening here.

MozReview-Commit-ID: 4ZteEmMBOZk

--HG--
extra : rebase_source : 44078fa03df8ce7650d71ac0ad401a30827f2d83
2018-01-05 11:18:44 +01:00
Mike Park
8fcfc68bd1 Bug 1408950 - Enable browser_webconsole_websocket.js in the new console frontend. r=nchevobbe
MozReview-Commit-ID: K0wKsAPmXxP

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.html => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-603750-websocket.js => devtools/client/webconsole/new-console-output/test/mochitest/test-websocket.js
extra : rebase_source : 942247eb82006d428d4dd4573154c767f4a72ea8
2017-11-21 14:25:23 -05:00
Jan Odvarko
c7d5d0cf13 Bug 1421335 - Update test; r=nchevobbe
MozReview-Commit-ID: Far6gsV6SXd

--HG--
extra : rebase_source : cdb77acf095e79a9b53942f12b6f3bbed38e5b40
2017-12-11 14:39:37 +01:00
Jan Odvarko
f51b48434f Bug 1421335 - Right response info link disappears after request is expanded; r=nchevobbe
MozReview-Commit-ID: 5WEqPQaWGGt

--HG--
extra : rebase_source : fb995b7c51ccba96bc12949079197467791bbe94
2017-12-07 16:28:33 +01:00
Nicolas Chevobbe
ac5956e0ec Bug 1404368 - Enable browser_webconsole_document_focus.js in new frontend;r=jdescottes.
MozReview-Commit-ID: Fd9p0oigRpB

--HG--
extra : rebase_source : 5eae9a37c92687e1f5f86d919e295ae33d9f1902
2018-01-04 12:35:06 +01:00
Nicolas Chevobbe
b745997208 Bug 1428006 - Remove skip-if for browser_webconsole_cspro.js;r=nchevobbe.
The test was refactored in Bug 1408932, but it wasn't actually enabled.

MozReview-Commit-ID: 85vI9iX5p2V

--HG--
extra : rebase_source : 03182ab24bd057ad0be9d2e3f3e884c346d53d98
2018-01-04 12:18:18 +01:00
Nicolas Chevobbe
49d939d990 Bug 1406038 - Rename and enable browser_webconsole_bug_1050691_click_function_to_source.js in new console frontend; r=bgrins.
The test differs a bit from the old one since we are now testing that there is
a button to jump to definition.

MozReview-Commit-ID: DnC5uJ3pAea

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.html => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug_1050691_click_function_to_source.js => devtools/client/webconsole/new-console-output/test/mochitest/test-click-function-to-source.js
extra : rebase_source : e0700658c4a88b0e16ebf8e14102dacd52aec71f
2018-01-03 18:06:34 +01:00
Mike Park
02f6a30000 Bug 1419088 - Hitting the Esc key on the console when sidebar is open should close it. r=bgrins
MozReview-Commit-ID: DqHjv0tXdTW

--HG--
extra : rebase_source : e72f342c480cb4b7a2dbe09e20dc963c295cc136
2017-12-19 10:54:57 -05:00
Nicolas Chevobbe
0e02075d22 Bug 1408932 - Rename and enable browser_webconsole_cspro.js in new frontend; r=Honza.
MozReview-Commit-ID: 2qSue0CIO1c

--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug_1010953_cspro.html => devtools/client/webconsole/new-console-output/test/mochitest/test-cspro.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug_1010953_cspro.html^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-cspro.html^headers^
extra : rebase_source : d52018cb0124cdddc5e8f33f34db298be6b8d9fb
2017-12-07 14:11:11 +01:00