Commit Graph
88 Commits
Author SHA1 Message Date
Oriol Brufau 30271434ac Bug 1395276 - Make $ and $$ console commands throw errors created in the debuggee global. r=jimb 2017-08-30 11:50:00 -04:00
Alexandre Poirot 4290449b4f Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf
2017-08-01 16:17:22 +02:00
Wes Kocher 85ba4e7ea1 Backed out 3 changesets (bug 1382968) for breaking browser_addons_debug_webextension.js a=backout
Backed out changeset e25b4bd21ac8 (bug 1382968)
Backed out changeset 5a2260bc98ca (bug 1382968)
Backed out changeset 869a9b46b5cc (bug 1382968)

MozReview-Commit-ID: DSKWAHxdXI
2017-08-08 09:17:56 -07:00
Alexandre Poirot 946ab8adea Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART3: Manual fixes
- Go manually fix: http://searchfox.org/mozilla-central/source/devtools/client/dom/dom-panel.js
  which has duplicated import of defer symbol (it already used to import it)
- execute eslint, see all the places where we import of 'promise' is no longer use it
  (there may be leftovers not covered by eslint that will be covered in bug 1387128)
  devtools/server/tests/mochitest/inspector-helpers.js needs to keep importing promise as it is a shared test script.
- fix devtools/client/performance/panel.js and devtools/client/webconsole/console-output.js
  which use loader.lazyRequireGetter(this, "promise") and miss the defer import
- fix devtools/server/worker.js to use 'worker.require(devtools/shared/defer")'

MozReview-Commit-ID: HIOB5Et87Wc
2017-08-08 15:19:56 +02:00
Alexandre Poirot 3d76320218 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART2: Substitutes promise.defer usages with defer
$ sed -i 's/promise.defer/defer/gI' $(egrep -lir "promise.defer\(\)" devtools)
  Reset modification to the following files as they are using deprecated syncable promises as we don't want to touch them.
  http://searchfox.org/mozilla-central/search?q=deprecated-sync-thenables&case=true&regexp=false&path=
$ git checkout devtools/client/debugger/test/mochitest/
$ git checkout devtools/shared/client/main.js
$ git checkout devtools/client/debugger/
$ git checkout devtools/server/main.js

MozReview-Commit-ID: DGN5ae68wtn
2017-08-08 15:24:04 +02:00
Alexandre Poirot 1f1a801a56 Bug 1387123 - Replace all usages of require(promise).defer by require(devtools/shared/defer).defer. r=tromey
In prevision of Promise.jsm removal, use defer helper module instead of Promise.jsm
as that's the only one feature that DOM Promise don't support.

PART1: Import devtools/shared/defer
$ sed -i '/require("promise")/a const defer = require("devtools/shared/defer");' $(egrep -lir "promise.defer\(\)" $(egrep -rl "require\(\"promise\"\)" devtools))
But ignore debugger as it still uses sync promises and would better be handled manually
$ git checkout devtools/client/debugger/
MozReview-Commit-ID: 7FvhNxULB2x
2017-08-08 15:33:56 +02:00
Alexandre Poirot dda591f32b Bug 1382968 - Move console actor helper modules to a dedicated folder. r=jryans
MozReview-Commit-ID: 6l1kcHFglDf
2017-08-01 16:17:22 +02:00
Sebastian Hengst 32ea619857 Backed out changeset 192d517219c1 (bug 1369801)
MozReview-Commit-ID: KeLy0a8hjVF
2017-07-27 18:14:38 +02:00
Julian Descottes 8c0c562ada Bug 1369801 - dt-addon-xpcshell: load devtools addon for xpcshell tests;r=bgrins
MozReview-Commit-ID: 4EyclGKca0t
2017-07-11 12:30:22 +02:00
Yoshi Huang 55fbfd1425 Bug 1381771 - Part 2: use legacy data: URI behavior to run test. r=bgrins
These two tests just creates a dummy window, however it makes the test
more difficult to write if we just simply use a seperate file for them.

Because these are chrome: tests, and they are opening a content window,
for the chrome side, it won't receive the window.onload because they are
not the same origin.

For the content side, it cannot access 'postMessage' because it looks
there's some protection when trying to read chrome object.
2017-07-24 10:00:31 +08:00
Christoph Kerschbaumer 5452a95b49 Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Dragana Damjanovic 7103eb740f Bug 1334776 - ResponseHeader Visitor will get original header casing. We need to fix it at some places in devtools. 2017-04-27 16:48:43 +02:00
nchevobbe f595ae60f1 Bug 1088900 - Add backend tests for console.group custom styling. r=bgrins
MozReview-Commit-ID: IINPZWea2En
2017-04-12 10:27:30 +02:00
Sebastian Hengst d48806b86c Backed out changeset c844ec70bdb4 (bug 1342178) for frequently timing out in test_network_security.html on Linux. r=backout a=backout
MozReview-Commit-ID: 3NVZcUPRc2c
2017-04-11 11:28:59 +02:00
Sebastian Hengst 1d80aa2d8b Backed out changeset 87912394d7d7 (bug 1342178)
MozReview-Commit-ID: FyZbX7H2TFu
2017-04-11 11:28:15 +02:00
Sebastian Hengst 0d23f3b314 Backed out changeset db96edf786de (bug 1342178)
MozReview-Commit-ID: 2tMaP9n3ug5
2017-04-11 11:28:10 +02:00
Jonathan Hao e1413ee143 Bug 1342178 - Regression tests for HSTS/HPKP information in private browsing window. r=Honza,keeler
MozReview-Commit-ID: FqRj6RL7noP
2017-04-11 10:14:09 +08:00
Jonathan Hao bdc5bb9a8e Bug 1342178 - Rename test_network_security-hpkp.html. r=Honza,keeler
MozReview-Commit-ID: I82vZXxJgTI
2017-04-11 10:14:08 +08:00
Jonathan Hao c5f9f458c1 Bug 1342178 - Combine test_network_security-{hsts/hpkp}.html. r=Honza,keeler
MozReview-Commit-ID: 3xXdOa1j7hm
2017-04-11 10:14:08 +08:00
Wes Kocher 91aa56ee3f Backed out 4 changesets (bug 1342178) for frequent test_network_security.html failures a=backout
Backed out changeset 7f9114ffbcae (bug 1342178)
Backed out changeset f19289f0cfef (bug 1342178)
Backed out changeset 4afce44bc2b9 (bug 1342178)
Backed out changeset db9b64a44012 (bug 1342178)
2017-04-10 12:34:10 -07:00
Jonathan Hao e2c58a1fc1 Bug 1342178 - Regression tests for HSTS/HPKP information in private browsing window. r=Honza,keeler
MozReview-Commit-ID: FqRj6RL7noP
2017-04-06 15:43:32 +08:00
Jonathan Hao 5988b6b957 Bug 1342178 - Rename test_network_security-hpkp.html. r=Honza,keeler
MozReview-Commit-ID: I82vZXxJgTI
2017-04-06 15:43:32 +08:00
Jonathan Hao 8a5a45eeaa Bug 1342178 - Combine test_network_security-{hsts/hpkp}.html. r=Honza,keeler
MozReview-Commit-ID: 3xXdOa1j7hm
2017-04-06 15:43:31 +08:00
Mark Banner ec9074e132 Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Masatoshi Kimura 4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00
Tooru Fujisawa ad063f0c54 Bug 104442 - Part 2: Add a testcase for devtools and note. r=nchevobbe 2017-02-25 12:52:33 +09:00
Tim Nguyen 2c0f72af0e Bug 1326412 - Fix ESLint issues in devtools/shared/webconsole/test/common.js. r=jryans
MozReview-Commit-ID: A07SFMexvSL
2017-02-13 19:16:56 +00:00
Micah Tigley 3007a220c3 Bug 1326412 - Fix eslint issues in devtools/shared/webconsole/test/ r=ntim
MozReview-Commit-ID: HRrPP2p7MVs
2017-01-19 20:26:00 +00:00
Florian Quèze 0696633dc9 Bug 1334261 - script-generated patch to remove more newURI null parameters, r=jaws. 2017-01-27 10:51:02 +01:00
Florian Quèze 91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Mark Banner 55868dde7c Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Brian Grinstead d3c7b73f76 Bug 1259603 - Use ConsoleEvents for cached messages and observing messages when webconsole actor is running;r=ejpbruel
MozReview-Commit-ID: E3oG451qPe9
2016-11-30 10:32:48 -08:00
Jarda Snajdr 57fe972ae3 Bug 1320110 - WebConsoleClient API calls should return promises r=ochameau
MozReview-Commit-ID: 1mmGGUgIwqA
2016-11-24 16:12:25 +01:00
Sebastian Hengst 2e047ceb32 Backed out changeset c816bcb8572d (bug 1320110) for mass devtools failures. r=backout on a CLOSED TREE 2016-11-24 19:23:28 +01:00
Jarda Snajdr 27971664c7 Bug 1320110 - WebConsoleClient API calls should return promises r=ochameau
MozReview-Commit-ID: 1mmGGUgIwqA
2016-11-24 16:12:25 +01:00
oschei 8636c76009 Bug 1317745 - Rename 'round trip time' to 'latency' in network throttling. r=jryans 2016-11-15 22:51:44 -07:00
Tom Schuster 9dbf6d683f Bug 755821 - Parse arguments of Function constructor properly. r=shu 2016-10-15 11:47:00 +09:00
Sebastian Hengst 2fecbac0d0 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: devtools. r=RyanVM
MozReview-Commit-ID: DZit0XSS1yk
2016-11-05 11:29:14 +01:00
Mark Banner 233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Carsten "Tomcat" Book 31cc011b59 Merge mozilla-central to mozilla-inbound 2016-09-08 12:42:45 +02:00
Brian Grinstead 41cc5b3ef3 Bug 1298230 - Use a more descriptive Syntax Error when querySelector / querySelectorAll fails;r=bz
MozReview-Commit-ID: DtIlA8ocMh0
2016-08-31 15:31:59 -07:00
Alexandre Poirot b38e2f3feb Bug 1243452 - Make DebuggerClient.close return a Promise. r=jryans
MozReview-Commit-ID: 26PNAS431Hc
2016-08-31 09:39:42 -07:00
Tom Tromey ebe3b790e3 Bug 1244227 - Add network throttling. r=Honza
MozReview-Commit-ID: Iy6buFxUrGg
2016-08-23 07:36:52 -06:00
sudhanva 9d968c6d1d Bug 1282910 - Fix issuerOrganizationUnit property name in test_security-info-certificate.js. r=jsnajdr 2016-08-18 13:03:08 +05:30
Brian Grinstead 4e42260d3e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H
2016-08-05 10:44:38 -07:00
Tom Tung 1f61d7f9c3 Bug 1187335 - P1 - Add a way to report error to all clients for ServiceWorker and SharedWorker. r=bkelly. 2016-05-23 14:56:46 +08:00
Sami Jaktholm bb13aed6f5 Bug 1237492 - Hold a strong reference to the Worker used in webconsole tests. r=ejpbruel
If a reference is not kept, the Worker might be GCd before the test
compteles. If that happens, the test times out as it tries to detach
a worker that has already been destroyed.

The state object is kept around for the duration of the tests so
keeping a reference in the state object ensures the worker
lifetime matches that of the test.

MozReview-Commit-ID: 31F54vHlm3z
2016-07-17 10:10:08 +03:00
Alexandre Poirot 3507349618 Bug 1237492 - Fix test_jsterm_autocomplete.html intermittents by connecting to the expected worker actor. r=ejpbruel 2016-05-30 03:06:21 -07:00
Wes Kocher 2acc77027c Merge fx-team to central, a=merge 2016-05-20 14:14:00 -07:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00