Commit Graph

75 Commits

Author SHA1 Message Date
Michael Ratcliffe
9b08b49b68 Bug 1073967 - Storage Inspector columns should use natural sort r=nchevobbe
Changlist:
  - Added Jim Palmer's well proven natural sort algorithm.
  - Added natural sort license (MIT).
  - Use natural sort everywhere inside TableWidget.js wherever we use .sort()
  - Changed browser_storage_overflow.js so that the test is faster and more maintainable. The test now also tests column sorting (ascending and descending).
  - Use natural sort everywhere inside storage.js wherever we need to slice the array. Without natural sort here we get e.g. row-1, row-10, row-100, row-2 etc.

MozReview-Commit-ID: FUY7pcLIYml
2017-04-10 18:04:25 +01:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Michael Ratcliffe
cdc6582ec5 Bug 1350525 - Storage Inspector should trim port from hosts for cookies r=pbro
MozReview-Commit-ID: FfsfiXTt96o
2017-04-11 17:09:40 +01:00
J. Ryan Stinnett
fa4577f320 Bug 1334252 - Find IDB storage for host more directly. r=jdescottes
After bug 1276339, storage inspector started iterating over all directories in
the profile's storage to find IDB data for a host.  This approach is too general
and can go through thousands of directories in a large profile.

By using more of what we know about the host and storage layout, we can pinpoint
the directories of interest more quickly.

MozReview-Commit-ID: 563GNMX1Ges
2017-02-14 12:13:01 -06:00
Tim Huang
f279ac801d Bug 1263324 - Part 1: Fixing the cache storage inspector to obey originAttributes and indexedDB storage inspector to use correct database file name with originAttributes. r=miker 2017-01-24 17:00:01 +08:00
Dalimil Hajek
b4e6cbd057 Bug 1322085 - Make devtools/server/actors/*.js eslint-clean. r=ntim 2017-01-16 12:51:00 -05:00
Michael Ratcliffe
4f227d850f Bug 1302989 - Make storage inspector work with file:// when # is in the URL r=nchevobbe
Changes:
  -  Added storage-listings-with-fragment.html and browser_storage-listings-with-fragment.js. The only difference between these and storage-listings.html and browser_storage-listings.js is that they contain url fragments wherever URLs are loaded e.g. #abc, #def etc.
  - When referencing cookies in tests we used to only use the hostname but a full URL was needed for other storage types. For consistency we now use the full URL for all storage types.
  - storage.js used to contain various getHostName() methods depending on which storage type was needed. This has been changed to a single method that acts according to which protocol is in use. Cookies are the only storage type that requires just a hostname for the http and https protocols so we strip them inside the cookies actor where required. null is returned when storage types are not available for a particular protocol e.g. data:// URLs.
  - browser_storage_dynamic_windows.js and browser_storage_listings.js now detect cookies that were previously missed. This is a result of the getHostName() improvements.

MozReview-Commit-ID: 8ZzM1Xz5hwU
2017-01-06 10:14:55 +00:00
Florian Quèze
b36a8b8f42 Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
Florian Quèze
361ec85a2e Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Michael Ratcliffe
4575f95145 Bug 1321820 - Storage Inspector fails with dom.caches.enabled=false r=nchevobbe
MozReview-Commit-ID: Gzwap5NL1w7
2016-12-23 16:53:20 +00:00
Michael Ratcliffe
2556b92d84 Bug 1320362 - Move indexedDb storage type in the storage inspector into a new column r=jdescottes
Ideally we would have used the GUID to join fields to build the compound key but because we show the uniqueId in the tree that would lead to an ugly user experience. As an
alternative we simply use e.g. db1 (default) as the uniqueId. This works as a unique key, is informative for the user and means minimal changes to tests.

MozReview-Commit-ID: I0XxTIoV33p
2016-11-29 10:57:18 +00:00
Carsten "Tomcat" Book
05f032d409 Merge mozilla-central to autoland 2016-11-29 16:50:35 +01:00
Andrea Marchesini
a54f2df639 Bug 1311707 - dom-private-storage2-changed notification, r=janv 2016-11-29 07:19:08 +01:00
Michael Ratcliffe
807a61f5f0 Bug 1276339 - Storage inspector doesn't work on chrome:// pages and web extensions r=jdescottes
MozReview-Commit-ID: IP33bBo0yfn
2016-11-22 14:47:22 +00:00
Michael Ratcliffe
95697409bc Bug 1146194 - Multiple cookies with the same name not shown r=gl
Stubborn debugger statement.

MozReview-Commit-ID: F2qgWofemHG
2016-11-11 15:57:51 +00:00
J. Ryan Stinnett
0a11c5fc5f Bug 1315391 - Clean up actor destruction after changing to destroy. r=ochameau
The `destroy` method in some actors would throw errors or was incomplete,
leading to various issues closing the toolbox after the previous patch.

This cleans up all such cases noticed through manual testing of the toolbox.

MozReview-Commit-ID: 6EZYFwjSri
2016-11-11 18:24:41 -06:00
Jarda Snajdr
550da13ea0 Bug 1304297 - Support for deleting Cache and Response objects in Storage Inspector r=miker
MozReview-Commit-ID: BdK4rKhmzTo
2016-09-22 12:29:48 +02:00
fbdb0dae94 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
J. Ryan Stinnett
62f457fd9a Bug 1240912 - Add browser swap support to multiprocess actors. r=ochameau
Watch for browser swap events and update the message manager as necessary for
each of the actors that use the `setupInParent` multiprocess functionality.

MozReview-Commit-ID: HPibSONSYk4
2016-08-19 10:01:33 -05:00
J. Ryan Stinnett
ffff5b8bc4 Bug 1240912 - Change storage actor messages to use debug prefix. r=ochameau
MozReview-Commit-ID: 89EcywFnJCI
2016-08-19 10:01:31 -05:00
b0fa44c98a Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Tom Tromey
f56dca3a4c Bug 1291834 - make indexDB a global via devtools loader; r=jryans
MozReview-Commit-ID: 3NnhUWaBBra
2016-08-03 13:26:34 -06:00
Fischer.json
8303c282bd Bug 1264582 - Table headers are not removed when selecting an empty storage. r=mratcliffe
MozReview-Commit-ID: Hcfw7dyrDpV
2016-07-01 17:42:07 +08:00
Jarda Snajdr
efe398485b Bug 1231445 - Part 3: Support for removing IndexedDB records in storage inspector r=mratcliffe 2016-07-04 04:10:00 +02:00
Jarda Snajdr
3902efd3fe Bug 1231445 - Part 2: Change format of stores-cleared event data to support clearing any store r=mratcliffe 2016-07-04 04:09:00 +02:00
Jarda Snajdr
977ab5bdc2 Bug 1194208 - Remove storage inspector stores-reloaded event. r=mratcliffe 2016-07-04 02:48:00 +02:00
Jarda Snajdr
28a6876cec Bug 1283800 - Storage inspector throws unhandled exception trying to access localStorage on about:home r=mratcliffe
MozReview-Commit-ID: D5EVRMk8zEG
2016-07-01 06:26:00 +02:00
Michael Ratcliffe
5ec982ead7 Bug 1271257 - Protocol error (unknownError) can't convert undefined to object r=pbrosset 2016-06-29 15:27:02 +01:00
Tim Huang
f3c87ef67d Bug 1267910 - Part 2: Update all existing functions of add() and getCookiesFromHost() to make them origin attributes aware. r=jdm, r=mratcliffe 2016-05-25 11:54:21 +08:00
Wes Kocher
18fc6fa5e3 Backed out 3 changesets (bug 1267910) for reports of it breaking session restore a=backout
Backed out changeset 5962f8e6d030 (bug 1267910)
Backed out changeset f8afc5cf9e0e (bug 1267910)
Backed out changeset cc202e0ac0dd (bug 1267910)
2016-05-20 21:15:17 -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
Jarda Snajdr
af22b95c69 Bug 1268460 - Part 3: ESLint cleanup of storage.js r=mratcliffe 2016-05-17 11:57:44 -07:00
Jarda Snajdr
45b190298e Bug 1268460 - Part 2: Use sendAsyncMessage in IndexedDB storage actor r=mratcliffe 2016-05-17 11:57:30 -07:00
Jarda Snajdr
3bc49fbbd0 Bug 1268460 - Part 1: Errors when deleting an IndexedDB database are not handled r=mratcliffe 2016-05-17 11:57:21 -07:00
Tim Huang
0a60cbfed3 Bug 1267910 - Part 2: Update all existing functions of add() and getCookiesFromHost() to make them origin attributes aware. r=jdm, r=mratcliffe 2016-05-18 20:42:00 -04:00
Jennifer Fong
bb0e5b8001 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02: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
Jarda Snajdr
ceb212fd44 Bug 1265729 - Decouple fronts from actors in storage inspector. r=ejpbruel 2016-04-29 04:34:00 +02: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
Jarda Snajdr
aae0b4adc0 Bug 1205123 - Part 1: 'Remove IndexedDB database' action in storage inspector - backend. r=mratcliffe 2016-04-25 06:01:00 +02:00
Jarda Snajdr
8f1303741e Bug 1149497 - Wildcard domain cookies are not displayed. r=mratcliffe 2016-04-20 22:50:00 +02:00
Jarda Snajdr
9dfc2b0ccd Bug 1261785 - Part 3: make affected JS files eslint-clean. r=mratcliffe 2016-04-19 01:44:00 +02:00
Sebastian Hengst
6cddfe1405 Backed out changeset 735739a3a13a (bug 1261785) 2016-04-17 12:27:22 +02:00
Tim Huang
555db7f399 Bug 1262813 - Fix the getWindowFromHost to allow it gets correct window. r=mratcliffe 2016-04-15 19:02:00 +02:00
Jarda Snajdr
57bb6b0575 Bug 1060947 - Listing indexedDB databases throws if any of them have 0 objectStores. r=mratcliffe 2016-04-13 02:00:00 -04:00
Jarda Snajdr
2978e47a2a Bug 1261785 - Part 3: Make affected JS files eslint-clean. r=mratcliffe 2016-04-15 07:00:00 -04:00