Commit Graph
69 Commits
Author SHA1 Message Date
Nicolas Chevobbe ccc695e796 Bug 1505393 - Add better handling of unsafe getters in JsPropertyProvider; r=bgrins.
This patch adds two things to JsPropertyProvider:
- when provided an input which try to access an unsafe
getter properties, the function will indicate that an
unsafe getter should be invoked, with its name.
- a new boolean argument that when set to true would
invoke any unsafe getter that might be in the expression
to be completed.

For simplicity sake, the function only warns the user
of the presence of an unsafe getter when it's the last
property of the expression:

`object.myGetter.` will return that `myGetter` should be invoked
`object.myGetter.a.b.` will not (because then, a and b could
also be getters, and it's getting complex to handle both in
the function itself as in the UI).

Tests are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D11170
2018-11-08 15:47:53 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Boris Zbarsky c3b43a0bda Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Greg Tatum a0d41348c4 Bug 1454000 - Add documentation for DevTools flags and their logging behavior; r=jryans
MozReview-Commit-ID: EU5OsfXXY6Q
2018-04-13 10:46:46 -05:00
Nika Layzell f614b85fbe Bug 1443379 - Stop pretending cacheKey can be anything other than uint32_t, r=smaug 2018-04-10 17:49:46 -04:00
Michael Ratcliffe 34e6287300 Bug 1440609 - Uncouple DEBUG_JS_MODULES and DEBUG in devtools code r=jryans
MozReview-Commit-ID: 6qiu3D5eYyn
2018-03-13 12:49:39 +00: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
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
Alexandre Poirot 36be948d0f Bug 1434374 - Replace usages of Cu.import in modules (where ChromeUtils isn't defined) r=jdescottes
MozReview-Commit-ID: 8kw2H4R2VIZ
2018-02-05 08:43:50 -08:00
Ben Kelly c0f39bd441 Bug 1231211 P19 Make DevToolsUtils.newChannelForURL() set the loadingNode so that the SW controller is set on the channel. r=jryans 2018-01-23 10:38:54 -05:00
Alexandre Poirot 96ccd9af97 Bug 1408708 - Fetch stylesheet content via stylesheet window instead of top level content window. r=pbro
MozReview-Commit-ID: AKXQLNAwy8t
2017-12-07 08:22:43 -05: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
Oriol Brufau 1cf70ea491 Bug 1406660 - Remove all wrappers when checking if a getter is safe. r=jimb
MozReview-Commit-ID: KcTGDuwqFYu
2017-10-07 18:27:29 +02:00
Oriol Brufau 710cbf1623 Bug 1390701 - Let devtools consider system principal proxy objects to be unsafe. r=jimb 2017-08-24 06:38:00 -04:00
Brian Grinstead 8548dee1e0 Bug 1382833 - Don't throw when dealing with CPOWs in the Object Actor;r=jimb
MozReview-Commit-ID: CaIS2IpaQme
2017-07-26 11:22:56 -07:00
Andrew McCreight 3ab27444cb Bug 1365767 - Stop bootlegging TextEncoder and TextDecoder from osfile.jsm in devtools. r=jryans
MozReview-Commit-ID: DI4OqSGdzgl
2017-05-17 13:52:39 -07:00
Florian Queze ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Sebastian Hengst 4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Florian Queze 35cd8ba883 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Florian Quèze 361ec85a2e Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Jared Wein 21fc75d491 Bug 1326479 - Fix 'indent' eslint errors now that eslint scans multiline array and object definitions. r=Gijs
MozReview-Commit-ID: 99mWjxu8PPn
2017-01-03 10:07:50 -05:00
Tom Tromey a67980a817 Bug 1321839 - make devtools/shared eslint-clean; r=jryans
MozReview-Commit-ID: AGSdhrT4Z3D
2016-12-02 10:32:04 -07:00
James Andreou 1e947fec6c Bug 1282124 - Remove nsILoadInfo.usePrivateBrowsing and the SEC_FORCE_PRIVATE_BROWSING flag; r=smaug,jryans 2016-09-27 16:56:44 -04:00
a2589a09b9 Bug 1224073 - Use the Debugger.Object API to call Error.toString directly. r=bgrins 2016-09-21 15:31:40 +02:00
Tom Tromey f6aabee50a Bug 1301854 - detect BOM when determining resource encoding; r=pbro
MozReview-Commit-ID: 6akivZSRwVN
2016-09-16 13:02:33 -06:00
Tom Tromey 96f00c8290 Bug 1287910 - move devtools stack-related APIs to per-platform require; r=jryans
MozReview-Commit-ID: CgT1VGJnJqB
2016-08-05 13:17:17 -06:00
James Long 24266d6355 Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04:00
Tom Tromey c8e6faf303 Bug 1273941 - replace uses of promise.defer in devtools/shared; r=jryans
MozReview-Commit-ID: 2n3uJ5QKsKL
2016-06-09 09:03:47 -06:00
Alexandre Poirot 6c0a0b737b Bug 1273311 - Prevent DevToolsUtils.fetch from throwing when no policy is given. r=ejpbruel 2016-05-31 03:54:05 -07:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Tom Tromey 3a49936872 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-05-04 08:02:03 -06:00
Carsten "Tomcat" Book 74de773d2c Backed out changeset 797e8190073f (bug 1265876) for memory leaks in browser_markup_mutation_02.js 2016-04-28 08:13:42 +02:00
Tom Tromey 323443bd29 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-04-21 11:20:14 -06:00
Alexandre Poirot e906100572 Bug 1060732 - Load sources from page loaded via POST from cache in the debugger. r=ejpbruel 2016-04-27 09:43:59 -07:00
Dragana Damjanovic 1080454580 Bug 1125916 - Fix code that miss proper flags and originAttributes in LoadInfo. Also fix some tests. r=sicking, r=jduell 2016-04-13 15:34:36 +02:00
Nick Fitzgerald 7df204612a Bug 1237054 - Part 0: Make tests fail if DevToolsUtils.assert fails; r=jryans 2016-04-05 19:21:00 +02:00
Nick Fitzgerald 76033e6ea4 Bug 1235458 - Move a bunch of utilities from DevToolsUtils to ThreadSafeDevToolsUtils. r=jsantell 2016-01-21 12:07:17 -08:00
J. Ryan Stinnett a06f3b6e80 Bug 1234600 - executeSoon async stacks only when DEBUG_JS_MODULES enabled. r=fitzgen 2016-01-07 18:37:12 -06:00
Nick Fitzgerald 3c27e3ee73 Bug 1235457 - Create ThreadSafeDevToolsUtils for the utilities that can be used in workers; r=jsantell
This commit adds the ThreadSafeDevToolsUtils module for utilities that are
guaranteed to work off the main thread. It also makes DevToolsUtils re-export
the thread-safe utilities. This is similar to ChromeUtils and
ThreadSafeChromeUtils webidl interfaces.
2015-12-30 09:37:01 -08:00
J. Ryan Stinnett bed55bdeac Bug 1233865 - Remove deprecated dbg_assert. r=fitzgen 2015-12-18 17:02:00 -06:00
J. Ryan Stinnett ae2db88834 Bug 1151413 - Set async caller in DevToolsUtils.executeSoon r=ejpbruel 2015-12-18 14:53:25 -06:00
James Long d94fbef9bd Bug 1200798 - refactor sources and breakpoints in debugger to use redux r=ejpbruel 2015-12-01 16:59:00 -05:00
Carsten "Tomcat" Book f3d45a4d77 Backed out changeset 258cff340229 (bug 1200798) for new intermittent test failures in browser_dbg_breakpoints-button-02.js 2015-11-30 12:45:12 +01:00