Commit Graph
191 Commits
Author SHA1 Message Date
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
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
J. Ryan Stinnett ccaa99fa95 Bug 1311178 - Remove various duplicate DevTools files. r=ntim
MozReview-Commit-ID: ABtuFPC85OQ
2016-10-19 15:59:09 -05:00
Towkir Ahmed ba2fe1c09b Bug 1301815 - Delete all snapshots button in memory tools has been disabled while there are no snapshots taken. r=ntim 2016-10-20 10:16:00 -04: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
Julian Descottes 9b3e52fbcf Bug 1305007 - set dir attribute value only if document.hasAttribute("dir");r=bgrins
MozReview-Commit-ID: EnDi7iuoJ5P
2016-09-28 17:35:40 +02:00
Julian Descottes 2e468e5eab Bug 1305007 - RTL: set dir attr. when loading devtools HTML document;r=bgrins
Toolbox sets the dir attribute on a panel document element when loading a panel,
if the panel is using a HTML document.

Using the ForceRTL addon, the dir attribute should be automatically updated whenever
the direction is changed by the addon.

MozReview-Commit-ID: 2r18APw7IBs
2016-09-23 19:50:41 +02:00
Alexandre Poirot e689948770 Bug 1303288 - Pass the window object instead of current scope to prevent wrapper issues when using the devtools reload addon. r=jlongster
If we happen to pass the current scope (`this`), the browser-loader codebase fails
when passing it as sandboxPrototype. It only works when passing an xray wrapper.
The document scope happen to not be an xray when using the addon, whereas `window`
always is no matter if we are using the addon or not.

MozReview-Commit-ID: GjYHkaCGBDd
2016-09-21 08:07:02 -07:00
Julian Descottes 3479010529 Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu
2016-08-25 17:02:50 +02:00
Julian Descottes 91ae3dcc39 Bug 1294220 - part5: Remove the "chrome://" protocol when using LocalizationHelper;r=tromey
MozReview-Commit-ID: JzT8RyPhHwA
2016-08-20 21:59:34 +02:00
Julian Descottes dd7585e67d Bug 1294220 - part3: Escape % characters in localized strings;r=bgrins
MozReview-Commit-ID: AcUOjfgp9lS
2016-08-23 00:13:04 +02:00
Nick Fitzgerald 2fd52235eb Bug 1292197, Bug 1289087, Bug 1283703, Bug 1283702, Bug 1283701, Bug 1283700, Bug 1283699 - Add requestLongerTimeout for slow memory tests; r=jimb
Pretty much all of the browser mochitests for the memory panel have very
infrequent (about once a month) timeouts. In every case, the test has not hung
and just sat there, but is still actively doing work and just loses the race
against the timeout timer by fractions of a second. Ideally, we would speed up
the tests, but given that we already use small (in terms of heap size) test
cases and do as many analyses as we can in parallel, I think the best we can do
is increase the timeout threshold for these problematic tests.
2016-08-10 17:05:41 -07: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
Steve Chung 2419c9586a Bug 1253330 - Fix heap-tree-item-field heap-tree-item-name inline style (margin-left) in RTL. r=ntim
MozReview-Commit-ID: Irz2x4P7hx4
2016-08-03 14:24:19 +08:00
"Helen V. Holmes" ad3150e30d Bug 1247331: Make import snapshot an icon,r=ntim
MozReview-Commit-ID: 4p73KYag0sT
2016-07-12 20:26:00 +02:00
Ruturaj 789137ad80 Bug 1253195 - Separate filter and search boxes visually, and make the text styling consistent. r=ntim
MozReview-Commit-ID: 1KZQA9X44Qi
2016-07-08 23:03:00 +02:00
Nick Fitzgerald 29461839ae Bug 1261869 - Fix leaks in devtools; r=ejpbruel
There are two leaks addressed in this commit:

1. The thread actor's `_debuggerSourcesSeen` set was never cleared. This set
exists only as a performance optimization to speed up `_addSource` in cases
where we've already added the source. Unfortunately, this set wasn't getting
cleared when we cleared debuggees out and it ended up keeping the
`Debugger.Source`, its referent, and transitively its referent's global alive. I
figured it was simpler to make it a `WeakSet` than to add it as a special case
in `ThreadActor.prototype._clearDebuggees` and manage the lifetimes by hand. I
think this fits well with its intended use as an ephemeral performance
optimization.

2. Due to a logic error, we were not clearing debuggees in the memory actor's
`Debugger` instance on navigations. This isn't really a "proper" leak, in that
if you forced a GC, the old debuggees would go away as `Debugger` holds them
weakly, however if there was no GC between navigations, then you could still see
the old windows (and everything they "retained") as roots in the snapshot. This
issue is straightforward to fix once identified: ensure that `_clearDebuggees`
is actually called on navigation.

Finally, this commit adds a test that we don't leak Window objects when devtools
are open and we keep refreshing a tab. When it fails, it prints out the leaking
window's retaining paths.
2016-07-06 08:37:57 -07:00
Tom Tromey 474aade274 Bug 1273941 - replace uses of promise.defer in devtools/client/framework; r=jryans
MozReview-Commit-ID: GwgbcXOmvtK
2016-06-09 09:04:58 -06:00
Nick Fitzgerald d1b4cd56b2 bug 1265723 - Decouple the MemoryFront from the MemoryActor; r=ejpbruel 2016-06-10 13:28:15 -07:00
J. Ryan Stinnett 169c44d5f6 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05: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
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
J. Ryan Stinnett 7bdf3cf623 Bug 1270619 - Add missing imports instead of using globals. r=pbro
MozReview-Commit-ID: 28Xn7N9FSZr
2016-05-09 13:35:09 -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
Greg Tatum 35cfb425c6 Bug 1263397 - The tree map should zoom at centering around the mouse pointer. r=fitzgen 2016-04-14 07:17:00 +02:00
Greg Tatum 6a489c59d7 Bug 1242628 - Add ability to remove a single snapshot from the list. r=fitzgen 2016-04-15 09:36:00 +02:00
Nick Fitzgerald f2954353a1 Bug 1249788 - Follow up: Remove debug logs and TODO comments that should not have landed. r=jimb 2016-04-12 14:34:00 -04:00
Nick Fitzgerald f2a6ddf449 Bug 1249788 - Implement the census individuals view; r=jsantell
This adds the INDIVIDUALS view state to the memory panel, renames "dominator
tree display" to "label display", and adds a view for listing the individual
nodes in a census group and inspecting each nodes' retaining paths.
2016-04-11 18:04:31 -07:00
Wes Kocher d34e61e3ec Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9YZdlIARozU
2016-04-08 16:47:03 -07:00
Greg Tatum bc76b1a280 Bug 1261159 - Tree map zooming is awkward. r=fitzgen 2016-04-07 07:27:00 -04:00
Nick Fitzgerald 31cff7b4b0 Bug 1262480 - Clean up getCurrentCensusTaker style; r=jimb 2016-04-08 09:36:34 -07:00
Nick Fitzgerald 59b798a66b Bug 1237054 - Part 2: Get the devtools/client/memory/test/unit/* tests passing without DevToolsUtils.assert failures; r=jryans 2016-04-05 19:21:00 +02:00
Nick Fitzgerald 1ee8846119 Bug 1237054 - Part 1: Get the devtools/client/memory/test/chrome/* tests passing without DevToolsUtils.assert failures; r=jryans 2016-04-05 19:21:00 +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 4e3f65bcce Bug 1253803 - Ensure that we maintain the focused node state when changing labels in the dominators view; r=jsantell 2016-04-04 17:36:00 +02:00
Chris Manchester a3478d13f6 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Greg Tatum e123c43b02 Bug 1238695 - Render census data as a treemap. r=fitzgen, r=vporof 2016-04-01 10:56:00 -04:00
Jarda Snajdr b6c74118ca Bug 1220208 - Move clear button to top left corner in toolbars r=bgrins
MozReview-Commit-ID: 5xIjd2TkvP6
2016-03-25 10:01:12 -07:00
Lin Clark 8458d982bf Bug 1239436 - Remove in-place mutation of trees' expanded sets in reducers. r=fitzgen 2016-03-16 13:19:00 +01:00
Nick Fitzgerald fc96061ea1 Bug 1241815 - Show a message when filtering yields no matches; r=jsantell 2016-03-23 13:08:29 -07:00
Julian Descottes 724045b436 Bug 1255804 - fix dominator view infinite loading when importing snapshot;r=fitzgen
Extracted new snapshot action to compute snapshot data: take census + compute
dominator-tree if the current view is the dominator-view (logic extracted from
takeSnapshotAndCensus action). This action is reused when importing a snpashot.

Added a new unit test to test the import from the dominator tree view.
Modified exising import unit test to check snapshot.census.display instead of
snapshot.display (which was undefined).

MozReview-Commit-ID: 8JN1arfaI1H
2016-03-21 17:14:16 +01:00
Victor Porof bfccfa9153 Bug 1258305 - Update all occurences of ViewHelpers.L10N and MultiL10N to use the new module, r=jsantell 2016-03-22 10:17:21 +01:00
Julian Descottes d49214ab2d Bug 1254726 - fix intermittent test_action-clear-snapshots_06 (osx10.6);r=fitzgen
After enabling diff view and selecting two snapshots, wait for TAKE_CENSUS_DIFF_END
action in the test before deleting all snapshots. Otherwise, TAKE_CENSUS_DIFF_END
might be dispatched after clearSnapshots toggled diff mode off.

MozReview-Commit-ID: HNmIVn1SC8c
2016-03-11 03:04:07 +01:00
Jordan Santell 9632efd3fe Bug 1251033 - Part 1 - BrowserLoader now has an option to only load shared components and not require an additional directory. r=jryans 2016-03-08 19:19:09 -08:00
Lin Clark 22c4f4aa33 Bug 1253650 - Fix React propType warnings. r=fitzgen 2016-03-04 18:23:00 +01:00
Julian Descottes ff06b8081e Bug 1253881 - memory profiler: toggle diffing when clearing snapshots;r=fitzgen
When clearing all snapshots, if currently displaying a diff, dispatch the
diffing.toggleDiffing action.

MozReview-Commit-ID: 1DyPZ7tHC1X
2016-03-07 21:23:32 +01:00