Commit Graph

16 Commits

Author SHA1 Message Date
Jonathan Kew
a32f03590b Bug 1469104 - Fix testcase in browser_sanitize-timespans to not fail immediately after midnight. r=mak 2018-06-20 12:34:05 +01:00
Marco Bonardo
bb40ab662a Bug 1458910 - Merge nsPIPlacesDatabase into nsINavHistoryService. r=standard8
MozReview-Commit-ID: LacXKR32Jn3
2018-05-10 10:39:12 +02:00
Andrea Marchesini
4b664ee691 Bug 1400678 - quota storage should be cleared on exit if user has requested cookies to be cleared on exit - tests, r=johannh 2018-05-09 11:30:47 +02:00
Michal Novotny
b0fcd7f102 Bug 1448476 - Cache entry corruption after writing the alternate data. r=honzab
When writing to alt-data output stream fails for whatever reason, we now try to
truncate alternative data and keep the original data instead of dooming the
whole entry. The patch also changes how is the predicted size passed to the
cache. Instead of a dedicated method it's now an argument of openOutputStream
and openAlternativeOutputStream methods which fail in case the entry would
exceed the allowed limit.
2018-04-25 07:01:00 +03:00
Kris Maglione
b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
sreeise
a641c4640f Bug 1448081 - Replaced tests using updatePlaces with PlaceTestUtils.addVisits. r=Standard8
PlacesTestUtils.addVisits provides a better api for adding history visits to the database for testing.

MozReview-Commit-ID: 3VIeWz59ErM
2018-04-22 00:33:55 -07:00
Dorel Luca
216454e5e1 Backed out changeset 9c339f571d35 (bug 1448081) for browser chrome failures on browser/components/places/tests/browser/browser_library_downloads.js. a=backout" 2018-04-21 04:49:45 +03:00
sreeise
6a5b0ac89a Bug 1448081 - Replaced tests using updatePlaces with PlaceTestUtils.addVisits. r=Standard8
PlacesTestUtils.addVisits provides a better api for adding history visits to the database for testing.

MozReview-Commit-ID: 3VIeWz59ErM
2018-04-20 16:24:10 +01:00
Johann Hofmann
b2f009224c Bug 1252998 - Fix sanitize-offlineData test failures, move SW utility functions to SiteDataTestUtils.jsm. r=baku
This patch fixes a bunch of intermittent/perma failures in sanitize-offlineData.js by:

- Ignoring localStorage for now. LocalStorage is cleared by sending an
  observer notification. The flush often happens after several seconds, heavily
  interfering with our own test or with subsequent tests. We can not reliably wait
  on the operation to finish. Waiting for "domstorage-test-flushed" after calling
  Sanitizer.sanitize() fixes the problem, but that notification is intermittently
  not triggered for other unknown reasons, which makes it not really viable to use.

- Creating and checking indexedDB data in the chrome process (using SiteDataTestUtils).

- Cleaning up after running the test.

- Ignoring a stray NS_ERROR_ABORT that's hard to track down and doesn't seem to
  do any damage right now.

I've also moved the ServiceWorker utility functions into SiteDataTestUtils,
which we're planning to use in all other browser tests that handle site data.
2018-04-11 16:53:50 +02:00
Andrea Marchesini
afa9f0dd13 Bug 1252998 - StorageActivityService - part 9 - Test for nsIStorageActivityService, r=gijs, r=asuth 2018-04-04 23:08:57 +02:00
Johann Hofmann
c65e29db34 Bug 1348223 - Part 1 - Add SiteDataTestUtils.jsm. r=mak
This commit adds a helper module for doing common tasks
related to site data, such as adding dummy data and getting usage.

There are many places that would potentially need to be cleaned
up to use this module instead, but I consider that work (and the
likely try failure fallout) out of scope for this bug.

MozReview-Commit-ID: 5eMDgHhClsO
2018-03-22 17:08:20 +01:00
Gijs Kruitbosch
0ca6e1b639 Bug 1358815 - remove sync reflow from find bar initialization, r=jaws
This removes the sync reflow from almost all cases. The only case where we keep it is when a keypress
caught in content triggers a sync message to the parent process. We should clean this up in bug 1371523.

I've tried to fix the tests, but a lot of them seem to be disabled anyway...

MozReview-Commit-ID: 9k36p7q8MKy
2018-03-12 14:01:44 +00:00
Brindusan Cristian
a6e62d8ce3 Backed out 2 changesets (bug 1358815) for bc failures on browser_pdfjs_main.js CLOSED TREE
Backed out changeset 880736d97de3 (bug 1358815)
Backed out changeset a2a0a0990e1a (bug 1358815)
2018-03-15 21:23:12 +02:00
Gijs Kruitbosch
54e2568278 Bug 1358815 - remove sync reflow from find bar initialization, r=jaws
This removes the sync reflow from almost all cases. The only case where we keep it is when a keypress
caught in content triggers a sync message to the parent process. We should clean this up in bug 1371523.

I've tried to fix the tests, but a lot of them seem to be disabled anyway...

MozReview-Commit-ID: 9k36p7q8MKy
2018-03-12 14:01:44 +00:00
Nathan Watson
5d40195377 Bug 1434262 - Remove PlacesTestUtils.clearHistory() r=mak
MozReview-Commit-ID: In2RaM0LBsc
2018-01-31 22:03:05 -08:00
Johann Hofmann
e1911f08a5 Bug 1167238 - Part 4 - Move sanitize tests into a topical directory and clean up sanitize.js usage. r=mak
We're changing the way sanitize.js/Sanitizer.jsm works and need to adjust a lot of tests to that.
I'm using this opportunity to also move the sanitization tests into their
own topical directory and out of b/b/c/test/general.

MozReview-Commit-ID: GHOqr4hT52b
2018-01-18 16:05:36 +01:00