Commit Graph

6889 Commits

Author SHA1 Message Date
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
Vincent Lequertier
450fb4980c Bug 1393464 - Remove Heritage from devtools helper view-helpers.js; r=pbro
Calling "devtools/shared/extend" instead.

MozReview-Commit-ID: HbonI7vq8Be

--HG--
extra : rebase_source : 5c9f2ccd0f5cddfcdb1949354932fd492564cc93
2018-01-04 18:54:52 +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
Csoregi Natalia
b3409f0581 Backed out changeset c28c6de838a2 (bug 1428521) for failing devtools/client/netmonitor/test/browser_net_post-data-01.js. r=backout on a CLOSED TREE 2018-01-08 06:53:22 +02:00
Ricky Chien
0f818e5c99 Bug 1428521 - Draw editor's horizontal scrollbar in Response panels r=gasolin
MozReview-Commit-ID: LK3TdfDCApo

--HG--
extra : rebase_source : 6c3a79e7ef5bf3118635dc3bd6a9699852e7ea3a
2018-01-06 13:16:38 +08: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
abhinav
7ec4689c74 Bug 1420982 - Fix for copy as cURL ignoring PATCH data. r=Honza
MozReview-Commit-ID: 8GDV8ykAIsH

--HG--
extra : rebase_source : 49aced8366e742320a87834acf0a7ab50c789fd7
2017-12-22 00:41:50 +05:30
Sebastian Hengst
d52c7b3231 merge inbound to central. r=merge a=merge 2018-01-06 00:27:10 +02:00
abhinav
006d24a0a4 Bug 1428338 - Stop resetting -moz-border-*-colors in addons.css; r=dao
MozReview-Commit-ID: AxkN4CovCnf

--HG--
extra : rebase_source : ab7c9abeed9477790f8e5671171a07b5fd6d3197
2018-01-05 20:34:37 +05:30
Gabriel Luong
8b2109ede1 Bug 1427392 - Scroll into view the grid container when clicking on the inspect icon. r=pbro 2018-01-05 12:28:39 -05: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
Ricky Chien
9c5ca18b62 Bug 1426908 - Asynchronously enable CodeMirror syntax highlight for large content r=Honza
MozReview-Commit-ID: v4GcMOnrWy

--HG--
extra : rebase_source : f0498f4e3325debd7948bbeea9b6239118b2a1fa
2018-01-05 17:18:34 +08:00
Ricky Chien
403caf94bf Bug 1426920 - Netmonitor ResponsePanel's editor-row-container should occupy the available vertical space r=gasolin
MozReview-Commit-ID: Jkn26LAyovK

--HG--
extra : rebase_source : 2a3c935d083c04de629880fab6995f21fca26abf
2018-01-05 15:13:58 +08: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
Tiberius Oros
11f2a4970b Merge mozilla-central to inbound. r=merge a=merge CLOSED TREE 2018-01-05 12:03:34 +02:00
Jason Laster
17769f5562 Bug 1427187 - Update Debugger frontend (12-27). r=jdescottes
MozReview-Commit-ID: 37viQIZZzGj
2018-01-05 09:44:09 +01:00
Andreea Pavel
212980366d Backed out changeset ec05347a3fae (bug 1425393) for failing devtools/client/aboutdebugging/test/browser_service_workers.js r=backout
--HG--
extra : rebase_source : adca675a3e6a3041d0517f612b8769958718061a
2018-01-04 23:18:04 +02:00
Mike Park
8117abd4fd 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 : 38b6a5527c296912c8399255dce0bedf7513bcc5
2017-11-21 14:25:23 -05:00
Jan Odvarko
1606d1c614 Bug 1421335 - Update test; r=nchevobbe
MozReview-Commit-ID: Far6gsV6SXd

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

--HG--
extra : rebase_source : eaf338dcf3ea3a1c4c3644cc4a1a2c2c988cbd9f
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
Ricky Chien
c32b43da30 Bug 1426809 - Prevent fetching network update packet again after packet arrived r=Honza
MozReview-Commit-ID: 5Ifgj1opsNW

--HG--
extra : rebase_source : 6ceb827520761049f79f420d3305ac9fe8844187
2017-12-23 14:03:24 +08:00
Nicolas Chevobbe
6a750a05bc Bug 1427184 - devtools-reps v0.18.0: update reps bundle from GitHub;r=Honza.
MozReview-Commit-ID: 86gvJSI7grM

--HG--
extra : rebase_source : 525bb92f9c348b7ac648bea47224274f6c8b49c7
2018-01-04 09:02:55 +01:00
Daisuke Akatsuka
afb89c1360 Bug 1426194 - Part 2: Add test. r=pbro
MozReview-Commit-ID: 9A0hRjiYGTE

--HG--
extra : rebase_source : 95a5310a5755f951baeabf62ddc8f9c7eb3abe9d
2017-12-22 00:49:18 +09:00
Daisuke Akatsuka
7d7ca7e5f3 Bug 1426194 - Part 1: Correspond to the keyframes which have same offset. r=pbro
The problem with this bug was that it did not correspond to animations that
have multiple keyframes with the same offset.

In summary graph, although we were changing the resolution for the graph
creation by the distance of offset between keyframes, as the calculation of
resolution between keyframes with equivalent offset was infinite, generation
was not completed and it was in a state of freezing.
In here, in case of zero distance of offsets, we make avoiding to affect to
changing the resolution.

In addition, the detail graph did not display correctly.
For example, there is an animation below.

div.animate(
  [
    {
      offset: 0,
      opacity: 1,
    },
    {
      offset: 0.5,
      opacity: 0.5,
    },
    {
      offset: 0.5,
      opacity: 0.1,
    },
    {
      offset: 1,
      opacity: 1,
    },
  ],
  1000
);

In this animation, opacity changes from 1 to 0.5 during 0 - 499ms, from 0.1 to 1
after 500ms.
So, opacity at offset 0.5 behaves 0.5 during 0 - 499ms, 0.1 after 500ms.
Since current animation inspector creates the graph with computed value of the
time of offset, the opacity of offset 0.5 always is 0.1 in the example,
was not correct.
As a solution, same to the actual animation work, create the graph between each
keyframes with range that from start keyframe offset time to just before the
time of end keyframe offset time.
Also, in same offsets, connects between just before the time of the offset time
and the offset time.
So, in the example, we separate as below, then calculate the each coordinates,
then combine as graph shape.

1: 0 ~ 499.999ms
2: 499.999 ~ 500ms (same offsets)
3: 500 ~ 999.999ms
4: 1000ms

MozReview-Commit-ID: p4Cn2N9iFt

--HG--
extra : rebase_source : 0f175fa0b7a3c882171e59a6e4a94bb4802e96d2
2017-12-22 00:49:10 +09:00
Nicolas Chevobbe
4813426592 Bug 1404368 - Enable browser_webconsole_document_focus.js in new frontend;r=jdescottes.
MozReview-Commit-ID: Fd9p0oigRpB

--HG--
extra : rebase_source : 8a3eb4701abaf310c6347ffbedc2a20552ed844c
2018-01-04 12:35:06 +01:00
Nicolas Chevobbe
17b0c62378 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 : 928c85e00e1b690129345a03c4741f1d8175a2ad
2018-01-04 12:18:18 +01:00
Ricky Chien
5baf806cde Bug 1426809 - Prevent fetching network update packet again after packet arrived r=Honza
MozReview-Commit-ID: 5Ifgj1opsNW

--HG--
extra : rebase_source : 9ddd273520657db459df15c9a52cef120d669c51
2017-12-23 14:03:24 +08:00
Nicolas Chevobbe
1e02011a6f Bug 1427184 - devtools-reps v0.18.0: update reps bundle from GitHub;r=Honza.
MozReview-Commit-ID: 86gvJSI7grM

--HG--
extra : rebase_source : ffa32f67d08eb463d3dc3eac98f52d03a9a08473
2018-01-04 09:02:55 +01:00
Daisuke Akatsuka
d740edad77 Bug 1426194 - Part 2: Add test. r=pbro
MozReview-Commit-ID: 9A0hRjiYGTE

--HG--
extra : rebase_source : e4f2f93a78f096d8cd99ecba8c33c42a1b1711f3
2017-12-22 00:49:18 +09:00
Daisuke Akatsuka
c7d88e3c8e Bug 1426194 - Part 1: Correspond to the keyframes which have same offset. r=pbro
The problem with this bug was that it did not correspond to animations that
have multiple keyframes with the same offset.

In summary graph, although we were changing the resolution for the graph
creation by the distance of offset between keyframes, as the calculation of
resolution between keyframes with equivalent offset was infinite, generation
was not completed and it was in a state of freezing.
In here, in case of zero distance of offsets, we make avoiding to affect to
changing the resolution.

In addition, the detail graph did not display correctly.
For example, there is an animation below.

div.animate(
  [
    {
      offset: 0,
      opacity: 1,
    },
    {
      offset: 0.5,
      opacity: 0.5,
    },
    {
      offset: 0.5,
      opacity: 0.1,
    },
    {
      offset: 1,
      opacity: 1,
    },
  ],
  1000
);

In this animation, opacity changes from 1 to 0.5 during 0 - 499ms, from 0.1 to 1
after 500ms.
So, opacity at offset 0.5 behaves 0.5 during 0 - 499ms, 0.1 after 500ms.
Since current animation inspector creates the graph with computed value of the
time of offset, the opacity of offset 0.5 always is 0.1 in the example,
was not correct.
As a solution, same to the actual animation work, create the graph between each
keyframes with range that from start keyframe offset time to just before the
time of end keyframe offset time.
Also, in same offsets, connects between just before the time of the offset time
and the offset time.
So, in the example, we separate as below, then calculate the each coordinates,
then combine as graph shape.

1: 0 ~ 499.999ms
2: 499.999 ~ 500ms (same offsets)
3: 500 ~ 999.999ms
4: 1000ms

MozReview-Commit-ID: p4Cn2N9iFt

--HG--
extra : rebase_source : e4a89ebfbb409dede26a4aaf4a45cdd2e3a31d16
2017-12-22 00:49:10 +09:00
Julian Descottes
aec4f03b2a Bug 1425393 - open sw tabs in background in about:debugging tests;r=ochameau
MozReview-Commit-ID: 8UyrTDtHa7b

--HG--
extra : rebase_source : 2737c3a0b354215713714e6b03c0e76e638fef9d
2017-12-12 15:49:36 -06:00
Noemi Erli
2da14c0702 Backed out changeset 591cf97d4777 (bug 1427077) for ES failures in /builds/worker/checkouts/gecko/devtools/client/shared/webpack/rewrite-lazy-getter.js r=backout on a CLOSED TREE 2018-01-04 10:42:44 +02:00
pd4d10
32c41ce3c9 Bug 1427077 - Make devtools/client/netmonitor work correctly at browser r=rickychien
Replace `loader.lazyGetter` pattern with normal variable assignment

MozReview-Commit-ID: I08f8hnQ0nN

--HG--
extra : rebase_source : 18d9108d1b49aad92f0c9a2223c2fff58e1dddb1
2018-01-03 21:33:57 +08:00
Ricky Chien
255b132d6a Bug 1426057 - Move chart style from skin/widgets.css StatisticsPanel.css r=Honza
MozReview-Commit-ID: B08TtEdZ9h

--HG--
extra : rebase_source : efdef2ac32111fe0fd40fc0f8c1d23c87e5b6214
2017-12-22 15:55:10 +08: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
Oriol Brufau
ff98f5e44d Bug 1426094 - Add test for URL linkification in the JSON Viewer r=Honza
MozReview-Commit-ID: Xbn28TLcMu

--HG--
extra : rebase_source : d2249d7fc9ddc392b3b907b3e9b9b9b938939e2f
2017-12-22 17:41:09 +01:00
Gijs Kruitbosch
5e38a0cf55 Bug 1425356 - remove various dead XUL sort attributes, r=bz,florian
- sort-statics-last is no longer meaningful now non-static (ie template) items don't exist
- we don't use the 'resource' attribute anywhere in XUL.
- sortResource/sortResource2 are unused.
- we don't have meaningful consumers for sortSeparators

MozReview-Commit-ID: C31vC9MCrDo

--HG--
extra : rebase_source : 539fd84201eaeead62ac73b3213bfdf6f4333e9a
2017-12-20 15:08:27 +00:00
Nicolas Chevobbe
e2178a02fc Bug 1427595 - Fix ObjectInspector css regressed by devtools-reps-0.16.0; r=Honza.
In the 0.16.0 bundle, we removed most of the ObjectInspector CSS custom properties
because they were being slow. This means that some of the styles we overrided in the
console weren't overriden anymore.
This patch fixes that so we get to the same style we have prior to the new bundle.

MozReview-Commit-ID: JP35pkX6PHZ

--HG--
extra : rebase_source : 194c90856730348e6b7ce6f9bbff52d9ae6c8151
2018-01-03 10:38:14 +01:00
Ricky Chien
2bd53a749d Bug 1425733 - Add requestLongerTimeout() in browser_net_filter-flags.js r=Honza
MozReview-Commit-ID: By6Zjxw1oqw

--HG--
extra : rebase_source : 2b6bba97c1b20e68183b206e821cfa3fde373689
2018-01-03 10:20:57 +08: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
Julian Descottes
7cbf0a6657 Bug 1425280 - Fix localization note mismatch in devtools files;r=pbro
MozReview-Commit-ID: FVJUjB25smI

--HG--
extra : rebase_source : acdf3b9dca3fede5c3b621f8f8064002bd77e978
extra : source : 9a75a20d6fba62635c6646af38cffabb5701a77a
2017-12-14 15:43:37 -06:00