Commit Graph
237 Commits
Author SHA1 Message Date
Kris Maglione b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Emilio Cobos Álvarez d4b3fee9f4 Bug 1452143: Fix webconsole tests. r=jryans
MozReview-Commit-ID: ClzJ0Ee1n5I
2018-04-17 11:24:42 +02:00
Brian Grinstead 6d333a8aa0 Bug 1448936 - Remove unused server side logging code;r=jryans
MozReview-Commit-ID: 3X14cDdj0qp
2018-04-13 11:36:13 -07:00
Nicolas Chevobbe 0a4a416719 Bug 1449931 - Remove old-event-emitter usage from devtools/shared/webconsole; r=bgrins.
MozReview-Commit-ID: HkbUm0XkeJs
2018-03-29 16:06:24 +02:00
Franziskus Kiefer bf83b05857 Bug 1415279 - Move error strings for certError and netError pages to frontend, r=johannh,keeler,Honza,snorp
This patch moves all TLS error string handling to the frontend.
Dev-tools doesn't show the same error code as the page does anymore but only the error code as string.
All logging of these error messages has been removed.

Bug #: 1415279

Differential Revision: https://phabricator.services.mozilla.com/D607
2018-03-27 13:31:52 +02:00
Vincent Lequertier a83380301c Bug 1313511 - Add certificate transparency status in the netmonitor security tab; r=Honza
MozReview-Commit-ID: C1gyiOEzpno
2018-02-28 21:27:33 +01:00
Jan Odvarko 749d1d6d1f Bug 1223726 - Customize response body interception; r=ochameau
* Introduce pref for custom response body limit
* Introduce pref for saving request/response bodies

MozReview-Commit-ID: 7DrAU1did1a
2018-03-12 08:10:39 +01:00
Nicolas Chevobbe e787d481ba Bug 1405243 - Extract consoleAPICall helper function in common.js; r=bgrins.
The function was used through multiple tests so it makes sense
to have it in common.js.
We take this as an opportunity to unify the style of the tests, and
to make closeDebugger return a Promise.

MozReview-Commit-ID: 7y8dMNErYZp
2018-03-19 18:09:41 +01:00
Nicolas Chevobbe 21bfd744d0 Bug 1405243 - Migrate browser_webconsole_bug_1006027_message_timestamps_incorrect.js to a server test; r=bgrins.
The test was testing that the 3 messages we display when
evaluating a console.log (text of the input, evaluation result,
consoleAPI message) all had a timestamp in a 2000ms range.
This wasn't really what it should have been about, since the
original bugfix (for Bug 1405243), was only in Console.cpp (and
the fix is still up there).
So here we only assert that the timestamp in the ConsoleAPI packet
is between the moment the log was requested and the time we receive
the packet.

MozReview-Commit-ID: HikGCJGHXMy
2018-03-19 16:42:09 +01:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Cosmin Sabou ac66216e42 Backed out 3 changesets (bug 1223726) for mochitest devtools failures on devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js
Backed out changeset 1a09e6c3c0a3 (bug 1223726)
Backed out changeset 41da2897f549 (bug 1223726)
Backed out changeset fa0a1e88a238 (bug 1223726)
2018-03-12 14:51:37 +02:00
Jan Odvarko 07e4f2d1c4 Bug 1223726 - Customize response body interception; r=ochameau
* Introduce pref for custom response body limit
* Introduce pref for saving request/response bodies

MozReview-Commit-ID: 7DrAU1did1a
2018-03-12 08:10:39 +01:00
Florian Quèze f6add2cafd Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Brian Grinstead c116f51a86 Bug 1440094 - Remove imports to Console.jsm that only access the 'console' object;r=mossop
Importing this object is unnecessary after the updates to the WebIDL console from Bug 1425574
and the follow-ups blocking Bug 1430810. There are still callers that access Console.jsm
to create custom ConsoleAPI objects, but those will be handled separately.

MozReview-Commit-ID: 9ojFxtkpPId
2018-02-27 11:29:59 -08:00
Alexandre Poirot c693997506 Bug 1440320 - Convert Task.jsm to async/await in devtools/shared. r=jryans
MozReview-Commit-ID: IK8BzlYuOWm
2018-02-22 00:49:06 -08:00
Boris Zbarsky 2f8423ff8d Bug 1437921 part 1. Add an attribute on document that is a Promise that resolves when the document has fired DOMContentLoaded _and_ maybe started layout. r=mystor
MozReview-Commit-ID: LpPFPKlHTXe
2018-02-22 16:55:40 -05:00
Alexandre Poirot d8fcb140f2 Bug 1434374 - Remove useless Cu imports. r=jdescottes
MozReview-Commit-ID: FUeBcCrmHPL
2018-02-06 11:08:31 -08:00
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Florian Quèze c5f15a4700 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Alexandre Poirot 7b9e7e0b6c Bug 1432803 - Prevent using timeline actor to get DOMContentLoaded and load timings. r=Honza
MozReview-Commit-ID: Kkn36gDFTKN
2018-01-24 08:48:26 -08:00
Kris Maglione 0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian 483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione 683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Julian Descottes 92c916136b Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm
2018-01-20 00:24:41 +01:00
Narcis Beleuzu d4a1754b65 Backed out changeset 41262016e149 (bug 1431758) for build bustage. on a CLOSED TREE 2018-01-22 18:42:13 +02:00
Julian Descottes 9c8b9a5f12 Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm
2018-01-20 00:24:41 +01:00
Jan Odvarko f2c6366eab Bug 1427718 - Display multiple headers with the same name; r=rickychien
MozReview-Commit-ID: 2nV51xLyCni
2018-01-17 09:56:09 +01:00
Alexandre Poirot fc432809f4 Bug 1429365 - Prevent this.sink is undefined exception for resources loaded from bytecode cache. r=rickychien
MozReview-Commit-ID: C9VFVoK0pPG
2018-01-15 07:23:08 -08:00
Julian Descottes 2dadb08fc2 Bug 1404849 - migrate mochitest for generators autocompletion to xpcshell;r=nchevobbe
MozReview-Commit-ID: 74EaFkIZva7
2018-01-10 12:04:12 +01:00
Florian Quèze 1838aa9e08 Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze 082ca8b2a3 Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Oriol Brufau 9342329bc4 Bug 1403536 - Protect all protocol request methods against unsafe objects r=ochameau
MozReview-Commit-ID: 4fDaap9QCdF
2017-10-18 04:38:13 +02:00
Narcis Beleuzu 63affa5582 Backed out changeset 9fb71b0692a6 (bug 1403536) for devtools-chrome failures on browser_console_dead_objects.js r=backout on a CLOSED TREE 2017-12-01 00:41:09 +02:00
Oriol Brufau 88965e0661 Bug 1403536 - Protect all protocol request methods against unsafe objects r=ochameau
MozReview-Commit-ID: 4fDaap9QCdF
2017-10-18 04:38:13 +02:00
Bogdan Tara fae5eda0ef Backed out 1 changesets (bug 1403536) for failing ES Linting tests on /builds/worker/checkouts/gecko/devtools/server/tests/unit/test_objectgrips-21.js r=backout on a CLOSED TREE
Backed out changeset 897f029f8ef6 (bug 1403536)
2017-11-29 23:37:15 +02:00
Oriol Brufau 51b1162e7d Bug 1403536 - Protect all protocol request methods against unsafe objects r=ochameau
MozReview-Commit-ID: 4fDaap9QCdF
2017-10-18 04:38:13 +02:00
Jan Odvarko 2414274d71 Bug 1416201 - HTTP request stack trace should be lazy loaded;r=rickychien
MozReview-Commit-ID: 5SWLLcNqORz
2017-11-23 13:35:04 +01:00
Julian Descottes 21b6d9f77b Bug 1416711 - Add registerAllActors API;r=ochameau
Most of the codebase that needs to create a debugger server
can use a server with all actors registered.

Define an additional method registerAllActors to do that.

By previous implementations, all the call sites that were
using browser: true were indirectly using tab & root: true
as well. So all the call sites using browser: true have been
migrated to registerAllActors and the specific behavior of
the browser: true case has been removed. Passing browser:true
to registerActors now only registers browser specific actors.

MozReview-Commit-ID: F3sx71eGrdG
2017-11-13 21:22:15 +01:00
Julian Descottes 6e8668e849 Bug 1416711 - Stop guarding consumer calls to DebuggerServer.init();r=ochameau
DebuggerServer.init() already bails out if it was previously initialized
so we could avoid guarding the calls to init() with it everywhere.

Registering an actor module several times is also a noop as the Server
keeps a map of all the already registered modules and will bail out if
the module is already known.

MozReview-Commit-ID: 4ONLlx9253i
2017-11-13 21:04:43 +01:00
Julian Descottes 2c1ef484ef Bug 1416711 - Migrate addBrowser/TabActors to registerActors;r=ochameau
DebuggerServer has old APIs addBrowserActors & addTabActors that can be
replaced by calls to registerActors.

MozReview-Commit-ID: KpYJpbSHM8I
2017-11-13 20:29:55 +01:00
Alexandre Poirot ea459fe86b Bug 1372115 - Prevent exception in network monitor when JS file is loaded throught the bytecode cache. r=Honza
MozReview-Commit-ID: 5w6Bj9213ba
2017-11-15 06:12:09 -08:00
Tooru Fujisawa ed35ba8fe9 Bug 1416249 - Remove conditional catch consumers in devtools/. r=jmaher 2017-11-18 22:57:17 +09:00
Nicolas Chevobbe fd8ff6dda8 Bug 1383711 - Make addOneTimeListener return a Promise; r=ochameau.
Switch some calls to addOneTimeListener from callback-style to Promise.

MozReview-Commit-ID: F9AlSvK0MAH
2017-11-06 08:40:39 +01:00
Mark Banner ac3e440190 Bug 1371293 - Fix various devtools warnings after upgrading to ESLint 4. r=miker
ESLint 4 will turn on all rules after an eslint-enable with no arguments. Therefore be more specific about which rules are being disabled.

MozReview-Commit-ID: IoPBG72zySm
2017-11-06 14:01:33 +00:00
Nicolas Chevobbe 1be39f71c2 Bug 1403458 - Convert browser_webconsole_assert.js to a backend test; r=bgrins.
The test ensures that packet are sent for falsy console.assert calls,
and that no packet are sent for truthy console.assert.calls, using a timeout.
Mochitest and support files are removed from the new frontend.

MozReview-Commit-ID: C9QpXfBySLo
2017-10-24 10:45:29 +02:00
Dragana Damjanovic 425236a2cf Bug 1384679 - Fix network-monitor.js. 2017-10-17 17:08:42 +02:00
Dragana Damjanovic 5d2b7d09a7 Bug 1384679 - Fix timing for TFO. r=mcmanus r=honza 2017-10-17 15:28:33 +02:00