Commit Graph

148 Commits

Author SHA1 Message Date
Nika Layzell
377d7ee2b0 Bug 1444151 - Part 4: Remove the now-unnecessary xpcom-style segment getters, r=valentin 2018-04-10 17:49:50 -04:00
Dave Townsend
a37ff0462a Bug 1448500: Add speculative request content policy type. r=bz, r=kmag
Adds a new TYPE_SPECULATIVE to nsIContentPolicy uses it as the type for
speculative connection channels from the IO service. I believe I've added it to
all the content policies in tree to make sure it behaves the same as TYPE_OTHER
used to.

The webextension test shows that the webextension proxy API sees speculative
lookups requested through the IO service.

MozReview-Commit-ID: DQ4Kq0xdUOD
2018-03-23 15:27:08 -07:00
Andrea Marchesini
fe3a24fe74 Bug 1398229 - Save-link-as feature should use the loading principal - part 3 - implementation of nsIContentPolicy.TYPE_SAVE_AS_DOWNLOAD, r=ckerschb, r=tanvi 2017-11-16 12:27:01 +01:00
Sebastian Hengst
9e98fec8c6 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
ccfac04710 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
Andrea Marchesini
47d900c6e2 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
Tom Tung
3c309324ad Backed out changeset 9cf194a1ae45 (bug 1398167) for causing crash in assertion r=backout a=backout 2017-10-19 21:46:21 +08:00
Andrew Sutherland
7ec869d94a 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.
2017-10-03 10:02:49 -04:00
Tom Tung
5c3a44db5b 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
312d8ae8be Bug 1398649: Capture the result from MigrateFrom25To26(). r=bkelly
MozReview-Commit-ID: DoVqSs53is5
2017-09-11 14:57:06 +08:00
Tom Tung
a28a3237a5 Bug 1398043 - P2: Temporary fix for updating the existing response_padding_size to 0 when it's an opaque response with null padding size. r=bkelly
MozReview-Commit-ID: EKcUwqfTWvj
2017-09-08 17:23:52 +08:00
Tom Tung
e33d9c07a2 Bug 1398043 - P1: Add a space between strings concatenation. r=bkelly
MozReview-Commit-ID: mHQq4J2Kv6
2017-09-08 15:56:53 +08:00
Tom Tung
2412394204 Bug 1290481 - P9: Implement a function to get overall padding size for an origin from cache.sqlite. r=bkelly
MozReview-Commit-ID: KlVsaGhpABk
2017-07-18 18:58:56 +08:00
Tom Tung
3e0688e8c5 Bug 1290481 - P3: Record padding size into cache.sqlite. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 16:54:20 +08:00
Tom Tung
c181244800 Bug 1290481 - P2: Upgrade the version of cache.sqlite to store opaque responses' padding size in SQLite. r=bkelly
MozReview-Commit-ID: 6poDeyErBjc
2017-07-10 16:45:56 +08:00
Chris Peterson
5ca04e829e Bug 1373525 - dom: Remove some unused member functions. r=billm
dom/asmjscache/AsmJSCache.cpp:371:3 [-Wunused-member-function] unused member function 'IsOnOwningThread'
dom/cache/DBSchema.cpp:303:3 [-Wunused-member-function] unused member function 'IdCount'
dom/filesystem/GetFilesHelper.cpp:26:3 [-Wunused-member-function] unused member function 'ReleaseRunnable'
dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp:298:10 [-Wunused-member-function] unused member function 'IsFlagSet'

MozReview-Commit-ID: 2A11iqF7u9X
2017-06-11 15:34:21 -07:00
Sylvestre Ledru
ef2b4e37ec Bug 1368106 - Use the new MOZ_DIAGNOSTIC_ASSERT_ENABLED instead of several defines r=glandium
MozReview-Commit-ID: KOM35SQnoRh
2017-05-26 18:53:35 +02:00
Andrea Marchesini
2902e0810c Bug 1340163 - Introducing originNoSuffix as attribute in ContentPrincipalInfo, r=smaug 2017-03-20 16:03:45 +01:00
Sebastian Hengst
47a783fba4 Backed out changeset 54a1f0cb64d9 (bug 1340163) for crashing e.g. in browser/components/originattributes/test/browser/browser_cacheAPI.js. r=backout 2017-03-20 15:38:19 +01:00
Andrea Marchesini
d5025905cf Bug 1340163 - Introducing originNoSuffix as attribute in ContentPrincipalInfo, r=smaug 2017-03-20 14:51:54 +01:00
Ben Kelly
43213586b7 Bug 1341206 Relax Cache API schema version assertion since mismatches can happen in release profiles. r=asuth 2017-02-21 10:14:31 -05:00
Ben Kelly
0cb5a0e553 Bug 1322111 P4 Update the Cache API schema to account for new nsIContentPolicy type. r=asuth 2017-02-15 09:55:58 -05:00
Ben Kelly
ece4408178 Bug 1322111 P1 Add TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS content policy type. r=ckerschb 2017-02-15 09:55:58 -05:00
Ben Kelly
5d692f5fd3 Bug 1331949 Make service worker and cache diagnostic assert code compile on beta. r=asuth 2017-01-19 08:11:41 -08:00
Andrea Marchesini
46a9207d60 Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Ben Kelly
077c137d4a Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth 2017-01-06 12:41:15 -08:00
Tom Tung
011c26743b Bug 1290933 - Part 1 - Cache API should not match() non-GET requests. r=bkelly. 2016-12-14 16:26:48 +08:00
Thomas Nguyen
5e424350fb Bug 1264792 - Update request'referrer policy when redirect.r=bkelly,dragana.
MozReview-Commit-ID: 3V6W0fuRomZ
2016-11-14 15:15:32 +08:00
Tom Tung
8224b73089 Bug 1264178 - Part 1: Expose URL fragment to request but not response. r=bkelly 2016-11-07 10:16:34 +08:00
Jan Varga
6f35c0b91b Bug 768074 - A follow-up fix. Increase schema version of DOM cache databases to prevent a Cache with the data serialized using the newer snappy from trying to be opened in a firefox that only understands the older version; r=bkelly 2016-10-25 15:27:01 +02:00
Tim Huang
b5bdd675d4 Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-10-13 15:43:54 +08:00
Wes Kocher
85edded572 Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Tim Huang
28bb063301 Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-10-12 17:32:03 +08:00
Tom Tung
aedb197f83 Bug 1187335 - P4 - Integrate fetch and cache with SRI & add nsIConsoleReportCollector to show console report. r=bkelly. 2016-09-07 10:20:23 +08:00
Chris Peterson
c35faf4632 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Andrew Sutherland
f30328239a Bug 1272436 - P0: Implement "only-if-cached" RequestCache mode. r=mayhemer, r=bkelly, r=bzbarsky for WebIDL change
The fetch spec has re-introduced "only-if-cached" mode which loads only from
the cache.  There are privacy implications to this so for the time being it
is required that "same-origin" mode is used.
2016-06-08 12:10:15 -04:00
Ben Kelly
2f4f1442e4 Bug 1093357 P3 Convert Cache to use IPCStream and AutoIPCStream. r=asuth
* * *
Bug 1093357 P3 interdiff 001 Use AutoIPCStream in dom/cache
2016-05-15 10:32:09 -07:00
Tom Tung
f00b0417a2 Bug 1271069 - caches.match with wrong name should resolve to undefined. r=bkelly 2016-05-11 09:52:48 +08:00
Tom Tung
15cf287086 Bug 1243792 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku. 2016-05-03 09:48:40 +08:00
Carsten "Tomcat" Book
33a3f16175 Backed out changeset dc42de66de8c (bug 1243791) landing with wrong bug number 2016-05-10 12:50:15 +02:00
Tom Tung
18d5be2fe8 Bug 1243791 - P1 implement response.redirected - Fetch API & Cache API & ServiceWorker changed. r=bkelly, r=baku. 2016-05-03 09:48:40 +08:00
Ehsan Akhgari
6efa0b920b Bug 1265941 - Rename the ReferrerPolicy "origin-only" enum value to "origin"; r=jdm 2016-04-20 14:21:34 -04:00
Nathan Froyd
eaa8e05f0f Bug 1265056 - don't needlessly construct nsAutoCString temporaries in dom/; r=baku 2016-04-15 19:46:45 -04:00
Ehsan Akhgari
019a09d276 Bug 1251872 - Part 2: Store the Request referrerPolicy in the DOM Cache; r=bkelly
This patch also fixes an existing bug where we used to call
RewriteEntriesSchema at the end of each individual migration,
which is wrong since after the first call, sqlite will think
that it's dealing with the final schema.  So far we were lucky
that we only changed the actual schema once.
2016-03-03 16:43:59 -05:00
Trevor Saunders
2f59432b50 bug 1252687 - make Migration's ctor constexpr r=bz 2016-03-02 13:37:00 -05:00
Birunthan Mohanathas
bfee0fb40c Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda
d871b9515f Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
245cd6a02f Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Sylvestre Ledru
1f07806bda Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan 2016-01-22 16:58:49 +01:00
Ehsan Akhgari
9f9e8bfb19 Bug 1209081 - Part 2: Upgrade the saved Requests in the DOM Cache to reflect the "navigate" RequestMode if they represent navigation content policy types; r=bkelly 2016-01-19 17:46:10 -05:00