Sylvestre Ledru
94c8d1a82b
Bug 1446809 - Remove some b2g leftover in a service worker test r=florian
...
MozReview-Commit-ID: EOLOB3Fe35X
2018-03-18 19:33:04 +01:00
Csoregi Natalia
f9fcfa011d
Backed out 10 changesets (bug 1446809) for failing on jsat/test_content_integration.html . CLOSED TREE
...
Backed out changeset 42146f3856d0 (bug 1446809)
Backed out changeset e6b888d19add (bug 1446809)
Backed out changeset 2293192557ef (bug 1446809)
Backed out changeset 643d30faeef8 (bug 1446809)
Backed out changeset 73639fbb3a61 (bug 1446809)
Backed out changeset df179cf0797d (bug 1446809)
Backed out changeset 04c46f107d24 (bug 1446809)
Backed out changeset 9b98c5aad44c (bug 1446809)
Backed out changeset 347d7259df0f (bug 1446809)
Backed out changeset 2a350e323713 (bug 1446809)
2018-03-21 11:17:38 +02:00
Sylvestre Ledru
c2826334da
Bug 1446809 - Remove some b2g leftover in a service worker test r=florian
...
MozReview-Commit-ID: EOLOB3Fe35X
2018-03-18 19:33:04 +01:00
Nathan Froyd
80d1329e71
Bug 1444971 - fix diagnostic assert condition in ReadStream; r=baku
...
Using MOZ_DIAGNOSTIC_ASSERT_ENABLED here is a little clearer than
RELEASE_OR_BETA and makes disabling diagnostic assertions globally
easier.
2018-03-13 09:47:07 -04:00
Kit Cambridge
46091ecc16
Bug 1435446 - Add a default transaction type for storage connections. r=mak
...
This patch adds a `mozIStorageConnection::defaultTransactionType`
attribute that controls the default transaction behavior for the
connection. As before, `mozStorageTransaction` can override the default
behavior for individual transactions.
MozReview-Commit-ID: IRSlMesETWN
2018-02-28 22:44:40 -08:00
Nika Layzell
2299f89dbf
Bug 1440771 - Part 2: Use nsCOMPtr<nsIInputStream> directly in PCacheStreamControl, r=baku
...
MozReview-Commit-ID: 1Ab49lZtxTI
2018-03-05 16:00:05 -05:00
arthur.iakab
55d75c6ab5
Merge inbound to mozilla-central. a=merge
2018-02-27 11:58:55 +02:00
Valentin Gosu
45366ffe50
Bug 1433958 - Change code that sets nsIURI.query to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: JKW8IsaFY10
2018-02-26 20:43:46 +01:00
Arthur Edelstein
897c8db65a
Bug 1434772 - Ensure caches.open() throws SecurityError in PBM workers r=ehsan
2018-02-13 12:11:00 +02:00
Andrew McCreight
272cee1e65
Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
...
This patch was autogenerated by my decomponents.py
It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.
It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.
It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)
MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Florian Quèze
c5f15a4700
Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop.
2018-02-01 20:45:22 +01:00
Andrea Marchesini
3e08265e73
Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug
2018-01-31 08:25:30 +01:00
Andrea Marchesini
5e357eed9f
Bug 1432963 - Fixing workers headers - part 14 - WorkerPrivate without workers namespace, r=smaug
2018-01-31 08:24:08 +01:00
Andrea Marchesini
30cbccd56d
Bug 1432963 - Fixing workers headers - part 13 - WorkerHolder without workers namespace, r=smaug
2018-01-31 08:23:44 +01:00
Andrea Marchesini
2f1868e3d6
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth
2018-01-08 14:05:04 +01:00
Andrea Marchesini
e6ea2a1fb1
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 4 - DOM Cache testing enabled, r=asuth
2018-01-08 14:05:04 +01:00
Andrea Marchesini
dde1b27e95
Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth
2018-01-08 14:05:03 +01:00
Florian Quèze
082ca8b2a3
Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs.
2017-12-21 11:08:17 +01:00
Tom Tung
1f4475c1bc
Bug 1422815 - P1: Fix for failing to get quotaObject unexpectedly. r=bkelly
...
This patch is for avoiding use quotaObject while it does not exist in Release.
Note that we sill catch this in Beta and Nightly by the assertion.
2017-12-06 10:12:24 +08:00
Gurzau Raul
f34ab0e6ee
Backed out 22 changesets (bug 1419771) for build bustage build/src/dom/base/FuzzingFunctions.cpp on a CLOSED TREE
...
Backed out changeset b2b7b46c8ad0 (bug 1419771)
Backed out changeset 0206657d2ea2 (bug 1419771)
Backed out changeset f0f4b98a07b6 (bug 1419771)
Backed out changeset 4b52904694f4 (bug 1419771)
Backed out changeset 9f40cc12d6c6 (bug 1419771)
Backed out changeset f500a61f564c (bug 1419771)
Backed out changeset 0bd9d964df8a (bug 1419771)
Backed out changeset 1397a6bbb446 (bug 1419771)
Backed out changeset 7e77a00fa8b5 (bug 1419771)
Backed out changeset 5f6df771459a (bug 1419771)
Backed out changeset 7624e70b2965 (bug 1419771)
Backed out changeset b9d674bdc723 (bug 1419771)
Backed out changeset 5e44aeda4196 (bug 1419771)
Backed out changeset 601b49f51b41 (bug 1419771)
Backed out changeset d12dc5557982 (bug 1419771)
Backed out changeset 6c863ab2e986 (bug 1419771)
Backed out changeset 0866d79873ab (bug 1419771)
Backed out changeset 8ecc91474621 (bug 1419771)
Backed out changeset 19b14deed8fe (bug 1419771)
Backed out changeset 000c8d5fbc03 (bug 1419771)
Backed out changeset 2e263a2519c5 (bug 1419771)
Backed out changeset b628d9298be8 (bug 1419771)
2017-12-13 23:41:49 +02:00
Andrea Marchesini
eb5f356927
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 9 - ServiceWorker testing enabled, r=asuth
2017-12-13 14:02:45 -06:00
Andrea Marchesini
0a78bca3bf
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 4 - DOM Cache testing enabled, r=asuth
2017-12-13 14:02:44 -06:00
Andrea Marchesini
3713ebb6db
Bug 1419771 - Introduce DOMPreferences, a thread-safe access to preferences for DOM - part 3 - DOM Caches enabled, r=asuth
2017-12-13 14:02:44 -06:00
Sylvestre Ledru
37064ac043
Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
...
MozReview-Commit-ID: 7duJk2gSd4m
2017-12-07 22:09:15 +01:00
Mark Banner
ee4e27c8e2
Bug 1421458 - Add more initial configuration setup and prepare .eslintignore for enabling ESLint on more xpcshell-test directories. r=mossop
...
MozReview-Commit-ID: 4nbTuNNnAdZ
2017-11-28 22:57:08 +00:00
Nika Layzell
5a9f61464e
Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm
...
Currently if you write an async IPDL method which has a return value, we expose
a SendXXX method which returns a MozPromise. This MozPromise can then be
->Then-ed to run code when it is resolved or rejected.
Unfortunately, using this API loses ordering guarantees which IPDL provides.
MozPromise::Then takes an event target, which the resolve runnable is dispatched
to. This means that the resolve callback's code doesn't have any ordering
guarantees relative to the processing of other IPC messages coming over the same
protocol.
This adds a new overload to SendXXX with two additional arguments, a lambda
callback which is called if the call succeeds, and a lambda callback which is
called if the call fails. These will be called in order with other IPC messages
sent over the same protocol.
MozReview-Commit-ID: FZHJJaSDoZy
2017-11-20 17:55:32 -05:00
Edouard Oger
1775282ce1
Bug 1416842 - Allow fetch to reject with nsresult in chrome code. r=bkelly
...
MozReview-Commit-ID: FD2NUJZtAhT
2017-11-15 14:53:42 -05: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
Jonathan Watt
4e2e2f0954
Bug 1417365 - Unified build issues in dom/cache. r=baku
2017-10-26 12:35:08 +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
Andrea Marchesini
de5ddecee3
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
cb19ddfd01
Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 12 - Cache API, r=asuth
2017-10-24 12:02:40 +02: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
Andrea Marchesini
304820957d
Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug
2017-10-19 11:39:30 +02:00
Sebastian Hengst
e60b9b46c6
Backed out changeset 4666cde20909 (bug 1409327)
2017-10-17 22:03:33 +02:00
Andrea Marchesini
715c7ec659
Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug
2017-10-17 20:38:05 +02: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
Kris Maglione
6abfb21ed3
Bug 1404198: Part 1 - Add non-virtual constructor for nsIObject(Input|Output)Stream and update existing callers. r=njn
...
MozReview-Commit-ID: 3eoh6AwDJyz
2017-10-04 20:06:28 -07: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
4706e1020d
Bug 1402581 - P4: Make the assertions for increaing and decreaing padding size be runtime checks. r=bkelly
2017-10-06 15:18:06 +08:00
Tom Tung
299716652c
Bug 1402581 - P3: Allow failures happen when restoring or wiping padding file. r=bkelly
2017-10-05 17:30:40 +08:00
Tom Tung
0fc7ca1663
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.
2017-10-03 18:44:56 +08:00
Tom Tung
96ad153131
Bug 1402581 - P1: Don't delete the body file and decrease the padding size when the transaction fails. r=bkelly
2017-10-03 18:36:44 +08:00
Ben Kelly
63935868ba
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
99e9b28351
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
fad54f15b0
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
05f0a13264
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
731fb43e27
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