Commit Graph

236 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
f1e24af91b Bug 1452143: Fix webconsole tests. r=jryans
MozReview-Commit-ID: ClzJ0Ee1n5I
2018-04-17 11:24:42 +02:00
Brian Grinstead
ec705d56f7 Bug 1448936 - Remove unused server side logging code;r=jryans
MozReview-Commit-ID: 3X14cDdj0qp

--HG--
extra : rebase_source : 552132acda4af79dd32aefdd14ff6504632fda71
2018-04-13 11:36:13 -07:00
Nicolas Chevobbe
41edb0dc48 Bug 1449931 - Remove old-event-emitter usage from devtools/shared/webconsole; r=bgrins.
MozReview-Commit-ID: HkbUm0XkeJs

--HG--
extra : rebase_source : 6b75408de3370cc2f0047996532dceaab4403a34
2018-03-29 16:06:24 +02:00
Franziskus Kiefer
806baa5430 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

--HG--
extra : rebase_source : 61e2d94cb21ef4c02b81448531609205c85a9707
2018-03-27 13:31:52 +02:00
Vincent Lequertier
b6a27be22a Bug 1313511 - Add certificate transparency status in the netmonitor security tab; r=Honza
MozReview-Commit-ID: C1gyiOEzpno

--HG--
extra : rebase_source : 747d8cb73cdafa3ed7d79b419f2492249b1fcae0
2018-02-28 21:27:33 +01:00
Jan Odvarko
990ab32239 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

--HG--
extra : rebase_source : 86117d796357defad79afac890655c28f4d44587
2018-03-12 08:10:39 +01:00
Nicolas Chevobbe
9321958641 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

--HG--
extra : rebase_source : 61fa671d0f6c31b68d9b94a388454d39446a12bf
2018-03-19 18:09:41 +01:00
Nicolas Chevobbe
d8779b51f0 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

--HG--
extra : rebase_source : beeec437f12592b2229c89a5ab9125cc66d1971e
extra : source : 041a5ee841a41db1afca180d6b67890622543123
2018-03-19 16:42:09 +01:00
J. Ryan Stinnett
23ff4cc75d 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
4a083dee60 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
ae32006cef 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

--HG--
extra : rebase_source : c6328f3ce8552b49caaca09489cf10c0685af58b
2018-03-12 08:10:39 +01:00
Florian Quèze
c714053d73 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
97119973ca 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

--HG--
extra : rebase_source : 971bf99f709b8d2afe300f3693665724f747aa5e
2018-02-27 11:29:59 -08:00
Alexandre Poirot
ae019f78bc Bug 1440320 - Convert Task.jsm to async/await in devtools/shared. r=jryans
MozReview-Commit-ID: IK8BzlYuOWm

--HG--
extra : rebase_source : f2ac7eee538490a3db18e7290f144037592b3f89
2018-02-22 00:49:06 -08:00
Boris Zbarsky
3d785e53b2 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
7b5702c3b8 Bug 1434374 - Remove useless Cu imports. r=jdescottes
MozReview-Commit-ID: FUeBcCrmHPL

--HG--
extra : rebase_source : bfd8ad108c7859f7271f91572e63ecf625004166
2018-02-06 11:08:31 -08:00
Alexandre Poirot
e563788ea7 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs

--HG--
extra : rebase_source : bb2805652c85d74a3e888326f4afa4b6857afa64
2018-02-07 01:37:36 -08:00
Andrew McCreight
5dec0e0beb 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

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Florian Quèze
2b1c8dccb6 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
a273cd43a5 Bug 1432803 - Prevent using timeline actor to get DOMContentLoaded and load timings. r=Honza
MozReview-Commit-ID: Kkn36gDFTKN

--HG--
extra : rebase_source : e52861432f5651b864cada0c70568d504d883c6c
2018-01-24 08:48:26 -08:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 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
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb 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
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Julian Descottes
46f8ae7efd Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : dc25347c977b7890231b7434622d171d217f7bc6
2018-01-20 00:24:41 +01:00
Narcis Beleuzu
e449275782 Backed out changeset 41262016e149 (bug 1431758) for build bustage. on a CLOSED TREE 2018-01-22 18:42:13 +02:00
Julian Descottes
4fa078bd65 Bug 1431758 - do not use netmonitor data to fetch stylesheets over 1MB;r=jryans
MozReview-Commit-ID: Gz6dRLiLREm

--HG--
extra : rebase_source : 74d73ecd50cc1e56a66c6e45d43b1ca48f136cf2
2018-01-20 00:24:41 +01:00
Jan Odvarko
b8ea144988 Bug 1427718 - Display multiple headers with the same name; r=rickychien
MozReview-Commit-ID: 2nV51xLyCni

--HG--
extra : rebase_source : c5d368d84ce4766fe40e4b750441e1d4474db504
2018-01-17 09:56:09 +01:00
Alexandre Poirot
5ceadbffb1 Bug 1429365 - Prevent this.sink is undefined exception for resources loaded from bytecode cache. r=rickychien
MozReview-Commit-ID: C9VFVoK0pPG

--HG--
extra : rebase_source : 94809550ccb0a8efe06d4c29407bc32a8aea0e85
2018-01-15 07:23:08 -08: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
Florian Quèze
0f55cd45be 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
032c961e0a 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
4c73da7933 Bug 1403536 - Protect all protocol request methods against unsafe objects r=ochameau
MozReview-Commit-ID: 4fDaap9QCdF

--HG--
extra : rebase_source : bec3bcbf422b51cef12005b035eec94203d5027d
2017-10-18 04:38:13 +02:00
Narcis Beleuzu
5e274d0743 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
51b81fc070 Bug 1403536 - Protect all protocol request methods against unsafe objects r=ochameau
MozReview-Commit-ID: 4fDaap9QCdF

--HG--
extra : rebase_source : 7fbf01156e13c1e9d528d4bd063cd1ac818d203f
2017-10-18 04:38:13 +02:00
Bogdan Tara
bf712dca70 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
ba0ffccb08 Bug 1403536 - Protect all protocol request methods against unsafe objects r=ochameau
MozReview-Commit-ID: 4fDaap9QCdF

--HG--
extra : rebase_source : 0774e230ddc9b8fe1bc03be45cd5732d3a161e41
2017-10-18 04:38:13 +02:00
Jan Odvarko
3bd627cefb Bug 1416201 - HTTP request stack trace should be lazy loaded;r=rickychien
MozReview-Commit-ID: 5SWLLcNqORz

--HG--
extra : rebase_source : 400e5d48848b087f8965652df6b9c37686fb4b40
2017-11-23 13:35:04 +01:00
Julian Descottes
af2e5d5dd1 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

--HG--
extra : rebase_source : 7704264e84d96e03a0c789103ff466980913d4d2
2017-11-13 21:22:15 +01:00
Julian Descottes
7324ecc861 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

--HG--
extra : rebase_source : a6fce209baf5e019b6a216761c01832a30332343
2017-11-13 21:04:43 +01:00
Julian Descottes
4cac7dcb25 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

--HG--
extra : rebase_source : c7f20edf503b944ef2582b5fe73bd6d899c0d1cc
2017-11-13 20:29:55 +01:00
Alexandre Poirot
08419a75f3 Bug 1372115 - Prevent exception in network monitor when JS file is loaded throught the bytecode cache. r=Honza
MozReview-Commit-ID: 5w6Bj9213ba

--HG--
extra : rebase_source : 13b4ff6ca93066c9e029e1c326353962407a12ec
2017-11-15 06:12:09 -08:00
Tooru Fujisawa
315ac4f42b Bug 1416249 - Remove conditional catch consumers in devtools/. r=jmaher 2017-11-18 22:57:17 +09:00
Nicolas Chevobbe
923cfeaa4e Bug 1383711 - Make addOneTimeListener return a Promise; r=ochameau.
Switch some calls to addOneTimeListener from callback-style to Promise.

MozReview-Commit-ID: F9AlSvK0MAH

--HG--
extra : rebase_source : 076522e89004f8a4634b4f7732800a5ec14ce633
2017-11-06 08:40:39 +01:00
Mark Banner
0370057096 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

--HG--
extra : rebase_source : f0095f7a9bc3020c1a36387cd033d1b1238a61cf
2017-11-06 14:01:33 +00:00
Nicolas Chevobbe
183ca1cdf2 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

--HG--
extra : rebase_source : 10101ebd0f300e6794b37db7f19c41c936683d7d
2017-10-24 10:45:29 +02:00
Dragana Damjanovic
39172d5b1b Bug 1384679 - Fix network-monitor.js. 2017-10-17 17:08:42 +02:00
Dragana Damjanovic
ea3c619848 Bug 1384679 - Fix timing for TFO. r=mcmanus r=honza 2017-10-17 15:28:33 +02:00
Ben Kelly
caf912a42a Bug 1391693 P10 Don't expect extraneous console message from service worker any more. r=bgrins 2017-10-09 10:03:41 -07:00