Commit Graph

554 Commits

Author SHA1 Message Date
Sebastian Hengst
6c1d6be6fb Backed out 3 changesets (bug 1398229) for failing own browser-chrome browser/components/contextualidentity/test/browser/browser_saveLink.js. r=backout on a CLOSED TREE
Backed out changeset 5b3b0a38b2d1 (bug 1398229)
Backed out changeset a726fc7506ca (bug 1398229)
Backed out changeset 53dae7764e58 (bug 1398229)
2017-11-15 20:49:09 +02:00
Andrea Marchesini
11eefa61bb Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb 2017-11-15 18:16:29 +01:00
Jonathan Watt
5ea9cced68 Bug 1417365 - Unified build issues in dom/cache. r=baku 2017-10-26 12:35:08 +01:00
Andrea Marchesini
155b15b8e0 Bug 1414755 - Get rid of ContentPrincipalInfoOriginNoSuffix, r=bz, r=bkelly
This patch uses MozURL in ServiceWorkerRegistrar and in DBScheme to obtain the
origin of a URL. This is safe because the URL is always http/https/ftp.

It also changes the serialization of Principal in nsJSPrincipals in order to
pass the originNoSuffix together with the OriginAttributes and the spec.
2017-11-15 11:19:26 +01:00
Andrea Marchesini
73712f7d05 Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
Andrea Marchesini
cc1500cb67 Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 12 - Cache API, r=asuth 2017-10-24 12:02:40 +02:00
Tom Tung
4e98cbf03e Backed out changeset 9cf194a1ae45 (bug 1398167) for causing crash in assertion r=backout a=backout
--HG--
extra : amend_source : 44183a0a9edf179f12dd338f2008ade9dee4cdbd
2017-10-19 21:46:21 +08:00
Andrea Marchesini
6626e900f9 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-19 11:39:30 +02:00
Sebastian Hengst
66e04dcde6 Backed out changeset 4666cde20909 (bug 1409327) 2017-10-17 22:03:33 +02:00
Andrea Marchesini
d526801916 Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug 2017-10-17 20:38:05 +02:00
Andrew Sutherland
e936592b39 Bug 1404344 - Part 2: DOM Cache API schema 57-56 downgrade support. r=bkelly
Alter 57 and 58 DOM Cache API to use an on-disk schema version of 25 again,
as was used prior to the landing of bug 1290481 that bumped the disk schema
version to 26.  Patched versions will recognize this internally as schema 27
based on the presence of the column introduced by the 26 upgrade.

--HG--
extra : rebase_source : 03d6e361ef71de03e99bd27bc27a95ed65ecb846
extra : source : 523debab77daab9f69ca9ea19412c655e6d1e02f
2017-10-03 10:02:49 -04:00
Kris Maglione
3876d40960 Bug 1404198: Part 1 - Add non-virtual constructor for nsIObject(Input|Output)Stream and update existing callers. r=njn
MozReview-Commit-ID: 3eoh6AwDJyz

--HG--
extra : rebase_source : 92b18b6ef07d276cac79ce735ca0b592cffbf87e
2017-10-04 20:06:28 -07:00
Tom Tung
deed50af7d Bug 1398167 - Remove the temporary fix for not upgrading shema version from 25 to 26. r=bkelly 2017-10-09 11:36:14 +08:00
Tom Tung
82eb515a1a Bug 1402581 - P4: Make the assertions for increaing and decreaing padding size be runtime checks. r=bkelly
--HG--
extra : rebase_source : c5c2dd26334ed05c8143341ddfd47b85f0a0c9ef
2017-10-06 15:18:06 +08:00
Tom Tung
45c9e8c00b Bug 1402581 - P3: Allow failures happen when restoring or wiping padding file. r=bkelly
--HG--
extra : rebase_source : 6582320e3c942c37a8b031e16569a4900871f458
2017-10-05 17:30:40 +08:00
Tom Tung
753c5b5960 Bug 1402581 - P2: Ensure the temporary file exists when failure happens. r=bkelly
There are three changes in this patch: 1. Make sure deleting padding file before
the temporary padding file. 2. Not deleting temporary file when failure happens.
3. Endure failure happens after the transaction commit.

--HG--
extra : rebase_source : d6de5cc63c7cb9bb073e00a61237440bb65fd011
2017-10-03 18:44:56 +08:00
Tom Tung
c337197339 Bug 1402581 - P1: Don't delete the body file and decrease the padding size when the transaction fails. r=bkelly
--HG--
extra : rebase_source : b6b9b6688973eec2058eb55218988dfea54db083
extra : amend_source : 1446cdf0fe948705bb23687902b8e0f483304622
2017-10-03 18:36:44 +08:00
Ben Kelly
211be553a3 Bug 1402586 Hold the worker alive while Cache API completes a lazy body open IPC operation. r=asuth 2017-09-25 10:45:58 -07:00
Tom Tung
6d9ce87f57 Bug 1400282 - Add a test to verify cache's operations won't run out of fd. r=bkelly
MozReview-Commit-ID: G8ztQs1mB6l
2017-09-13 17:24:13 +08:00
Ben Kelly
f3bd79bbe8 Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
9e8538fa6a Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
65f88cc067 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
acf4cdb7d2 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
2cf80de4ff Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
9ef03c8751 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 12:25:41 -07:00
Ben Kelly
b88c4699cd Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 12:25:40 -07:00
Ben Kelly
9bbbfca014 Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 12:25:40 -07:00
Ben Kelly
66eb21a04b Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 12:25:40 -07:00
Sebastian Hengst
285f502fd9 Backed out changeset 3f1e68da9634 (bug 1397128) for bustage at mozilla/dom/cache/CacheStorage.h:108. r=backout on a CLOSED TREE 2017-09-15 18:29:41 +02:00
Sebastian Hengst
150c6ab212 Backed out changeset 15edfaab92f6 (bug 1397128) 2017-09-15 18:28:54 +02:00
Sebastian Hengst
8114378053 Backed out changeset bfbcc07fcb4b (bug 1397128) 2017-09-15 18:28:48 +02:00
Sebastian Hengst
2ecdeffe66 Backed out changeset 389e9f39d6b8 (bug 1397128) 2017-09-15 18:28:43 +02:00
Sebastian Hengst
8463726683 Backed out changeset 5988716b66bb (bug 1397128) 2017-09-15 18:28:37 +02:00
Sebastian Hengst
ea5ea33329 Backed out changeset bb52082d2d3c (bug 1397128) 2017-09-15 18:28:32 +02:00
Sebastian Hengst
b42f970139 Backed out changeset b28740aedf34 (bug 1397128) 2017-09-15 18:28:27 +02:00
Sebastian Hengst
f14ea2acaf Backed out changeset e37614cb41e1 (bug 1397128) 2017-09-15 18:28:21 +02:00
Sebastian Hengst
4b9a1e0644 Backed out changeset b5ea37e08220 (bug 1397128) 2017-09-15 18:28:16 +02:00
Ben Kelly
188fc706fb Bug 1397128 P9 Make content script usage of Cache API use lazy body loading. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
6847f129b1 Bug 1397128 P8 Track which storage "namespace" each Cache object is associated with. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
66d9e5a447 Bug 1397128 P7 Add an OpenMode enumeration to control if individual Cache API requests eagerly or lazily opens bodies. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
60cc17beb8 Bug 1397128 P6 Allow ReadStream to be created with an initially nullptr base stream. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
1cc7cde5c0 Bug 1397128 P5 Add ReadStream::Inner::EnsureStream() to synchronously open stream when Availabe/Read/ReadSegments is called. r=tt 2017-09-15 09:11:23 -07:00
Ben Kelly
cd504ea7b0 Bug 1397128 P4 Add a PCacheStreamControl message to open a stream based on its body ID. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
6e5e0f4a24 Bug 1397128 P3 Add an OpenStreamAction class to open the file stream on the io thread. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
31a34132cb Bug 1397128 P2 Refactor StreamList::Add() to use move constructors and accept a nullptr stream. r=tt 2017-09-15 09:11:22 -07:00
Ben Kelly
ba86302f10 Bug 1397128 P1 Make CacheReadStream ipdl struct contain an OptionalIPCStream. r=tt 2017-09-15 09:11:22 -07:00
Tom Tung
3e445962b3 Bug 1398231 - P2: Add a test to verify cache work when there is a temporary padding file. r=bkelly
MozReview-Commit-ID: JhPuL7AmteM

--HG--
extra : rebase_source : b2c60f288f4f5424ea11212db26676cb467daf77
2017-09-09 15:34:59 +08:00
Tom Tung
d56be4c5f0 Bug 1398231 - P1: Make file exist check before assertion. r=bkelly
MozReview-Commit-ID: 8t7P97Ttrv1

--HG--
extra : rebase_source : 2d44a42da181612af36f129f692bd4961caf2824
2017-09-09 09:30:05 +08:00
Tom Tung
c3b6fcbefc Bug 1398649: Capture the result from MigrateFrom25To26(). r=bkelly
MozReview-Commit-ID: DoVqSs53is5

--HG--
extra : rebase_source : 69aad8fae9821371bd0f47c6c13c961469199557
2017-09-11 14:57:06 +08:00
Wes Kocher
2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00