Commit Graph
3681 Commits
Author SHA1 Message Date
Andrea Marchesini 74bc0e9cfd Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
Andrea Marchesini 34a23530f7 Bug 1388413 - ServiceWorkerClients::openWindow() - OriginAttributes test, r=smaug 2017-09-28 10:38:58 +02:00
Andrea Marchesini 60cfc4a918 Bug 1388413 - ServiceWorkerClients::OpenWindow() should use the triggeringPrincipal, r=bz
This is done using a JS Sandbox with the triggering Principal.
2017-09-28 10:38:58 +02:00
Kris Maglione 0ce73ea65d Bug 1403348: Include details about AsyncShutdown failure in crash reason. r=baku data-r=rweiss
MozReview-Commit-ID: L6U2MVshZl8
2017-09-27 15:11:43 -07:00
Wes Kocher f28f5c479d Backed out 3 changesets (bug 1388413) for failures in browser_userContextId_openWindow.js a=bustage
Backed out changeset aa2f3c4c3242 (bug 1388413)
Backed out changeset 8f8b7e60f397 (bug 1388413)
Backed out changeset a4d6924a59f1 (bug 1388413)

MozReview-Commit-ID: Gp0AwTKEAGO
2017-09-28 16:57:21 -07:00
Andrea Marchesini 2836ae9377 Bug 1388413 - ServiceWorkerClients::openWindow() - OriginAttributes test using tabs, r=me 2017-09-28 16:42:23 +02:00
Andrea Marchesini 792189dd57 Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug 2017-08-06 20:47:00 +03:00
Andrea Marchesini 2fb3bdaa70 Bug 1388413 - ServiceWorkerClients::openWindow() - OriginAttributes test, r=smaug 2017-09-28 10:38:58 +02:00
Andrea Marchesini 23323a23d0 Bug 1388413 - ServiceWorkerClients::OpenWindow() should use the triggeringPrincipal, r=bz
This is done using a JS Sandbox with the triggering Principal.
2017-09-28 10:38:58 +02:00
Sebastian Hengst 8360facddc merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Andrea Marchesini 7cddbe2280 Bug 1402317 - Remove dom.abortController.enabled and dom.abortController.fetch.enabled prefs, r=qdot 2017-09-27 03:50:46 +02:00
Alexandre Poirot b5cffeea3f Bug 1392540 - Keep running debugger Promise while debugging workers. r=baku
MozReview-Commit-ID: JsA0Y943egB
2017-08-10 13:27:07 +02:00
Andrea Marchesini 93901ebca1 Bug 1402888 - Remove nsIInputStreamPump::Init() offset and limit params, r=smaug 2017-09-26 07:21:44 +02:00
Sebastian Hengst 5bfd734b53 merge autoland to mozilla-central.r=merge a=merge
MozReview-Commit-ID: JRQXsnsRpCS
2017-09-25 11:56:13 +02:00
Chris Peterson 90bcd3c611 Bug 870698 - Part 8: Replace Equals(NS_LITERAL_CSTRING("")) with EqualsLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: B5Y8KyExPQ8
2017-09-06 15:00:31 -07:00
Chris Peterson 494ce0375a Bug 870698 - Part 7: Replace Insert(NS_LITERAL_CSTRING("")) with InsertLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: DbTW5Bhd9E1
2017-09-07 18:15:42 -07:00
Samael Wang abc471c799 Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq
2017-09-05 16:02:04 +08:00
Samael Wang 17bb0e5542 Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl
2017-09-05 15:57:21 +08:00
Chris Peterson 6137e4ff8b Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U
2017-09-03 22:14:11 -07:00
Ben Kelly f201d106ad Bug 1402085 P1 Maybe fire ServiceWorkerContainer.ready promise when a registration is resurrected. r=asuth 2017-09-22 12:38:09 -07:00
Nicholas Nethercote e8236888ee Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.
2017-09-22 14:35:46 +10:00
Andrea Marchesini 85dec61858 Bug 1047098 - "Clear Recent History" must clean up all the ServiceWorkers, r=bkelly
This includes minor shutdown fixes by :asuth as discussed on
https://bugzilla.mozilla.org/show_bug.cgi?id=1047098#c56 and c57.
2017-09-21 21:32:00 +02:00
Ben Kelly 948ebc622d Bug 1336364 P9 Block storage denied windows from ServiceWorker.postMessage() and clients.matchAll(). r=asuth 2017-09-20 09:24:07 -07:00
Ben Kelly 3509526bfe Bug 1336364 P8 Expand test_third_party_iframes.html to verify worker scripts are intercepted. r=asuth 2017-09-20 09:24:07 -07:00
Ben Kelly 8e642a41fe Bug 1336364 P7 Add a mochitest to verify subresource fetch events still work with 3rd party iframe cookies disabled. r=asuth 2017-09-20 09:24:07 -07:00
Ben Kelly f5bc2bd861 Bug 1336364 P6 Ensure that we don't control a document if its window cannot access storage. r=asuth 2017-09-20 09:24:07 -07:00
Ben Kelly bd8ef4ab41 Bug 1336364 P5 Disable service worker getRegistrations() if storage is disallowed for a window. r=asuth 2017-09-20 09:24:07 -07:00
Ben Kelly e41672cc04 Bug 1336364 P4 Disallow service worker register() is storage is forbidden for the window. r=asuth 2017-09-20 09:24:07 -07:00
Ben Kelly bca9af1161 Bug 1336364 P3 Restrict service worker interception for more cookie policies. r=asuth 2017-09-20 09:24:06 -07:00
Blake Kaplan 2feaf02c41 Bug 1398396 - Initialize the locale stuff on runtimes instead of contexts. r=billm
MozReview-Commit-ID: Il9HAqYdTzK
2017-09-11 15:46:14 -07:00
Boris Zbarsky 69e8f0e795 Bug 1401171 - Make nsIMultiplexInputStream not inherit from nsIInputStream. r=bkelly
This is a preexisting issue that makes nsMultiplexInputStream multiple-inherit
from nsIInputStream: once via nsIMultipartInputStream and once via
nsIAsyncInputStream.  This causes problems once we end up with more multiplex
streams that are async streams, because then some assingments to
nsCOMPtr<nsIInputStream> start asserting.  This patch just removes the footgun
by getting rid of the multiple inheritance.
2017-09-19 16:26:21 +02:00
Sebastian Hengst ded9a64296 Backed out changeset 3c9e25405f59 (bug 1401204) an request from baku for landing with wrong bug number. r=backout 2017-09-19 16:25:20 +02:00
Boris Zbarsky 16e792c08f Bug 1401204 - Make nsIMultiplexInputStream not inherit from nsIInputStream. r=bkelly
This is a preexisting issue that makes nsMultiplexInputStream multiple-inherit
from nsIInputStream: once via nsIMultipartInputStream and once via
nsIAsyncInputStream.  This causes problems once we end up with more multiplex
streams that are async streams, because then some assingments to
nsCOMPtr<nsIInputStream> start asserting.  This patch just removes the footgun
by getting rid of the multiple inheritance.
2017-06-11 00:07:23 -04:00
Ben Kelly 67b274f38d Bug 1400372 P1 Support redirected importScripts() when updating a service worker script. r=hopang 2017-09-18 06:36:16 -07:00
Nicholas Nethercote 1e8cb8bfc1 Bug 1400081 - Don't use -1 to represent an unset JSGCParamKey. r=sfink.
Because UBSan complains about casting -1:

> runtime error: load of value 4294967295, which is not a valid value for type 'JSGCParamKey'
2017-09-15 10:50:33 +10:00
Andrew Sutherland 52caea61c4 Bug 1378949 - Fix SW notification tests that assumed activated SW to wait for activation. r=bkelly
Bug 1378949 found test_notificationclick_focus.html timing out because the
ServiceWorker activation raced the creation of an iframe document that wanted
to be controlled by the serviceworker.

The documents that wanted to be controlled had a half-hearted attempt at
dealing with this by using navigator.serviceWorker.ready, but that would only
work if the SW's attempted to claim the clients if they already existed, which
they did not.

This patch cleans up the defective test and its sibling tests that follow the
same idioms.
2017-09-15 16:05:16 -04:00
Kris Maglione 6b566f0c2d Bug 1399646: Part 2 - Use the async shutdown service for ServiceWorkerRegistrar. r=baku
The current shutdown handling code is susceptible to deadlocks, since it spins
the event loop while it holds mMonitor, and other main thread methods which
try to acquire mMonitor can be called from code that runs while the event loop
is spinning.

My initial solution was just to release mMonitor before spinning the event
loop, but at this point I think it makes more sense to switch to the
standardized AsyncShutdown routines, which provide better diagnostics and
allow us to avoid one more nested event loop during shutdown.

MozReview-Commit-ID: 1RtFN585IR7
2017-09-14 11:30:50 -07:00
Shawn Huang 38b0eaff64 Bug 1399038 - Enable Storage API on beta/release. r=janv, baku 2017-09-13 21:46:36 +08:00
Ben Kelly 758bb39a6c Bug 1398484 Only assert that the channel does not change for top level service worker scripts. r=baku 2017-09-13 05:53:54 -07:00
Andrea Marchesini 9413495416 Bug 1359017 - onmessageerror for Workers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Ryan VanderMeulen e07311eba2 Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)
2017-09-12 13:21:17 -04:00
Thomas Wisniewski 4be60cb09e Bug 1392220 - do not parse or return body for XHRs with HEAD or CONNECT method; r=baku
MozReview-Commit-ID: 40CxCiSFdjC
2017-09-09 15:34:48 -04:00
Samael Wang f453bbca1e Bug 1364364 - Part 5.2: Remove browser.sessionhistory.cache_subframes and fix test cases relying on it. r=smaug
browser.sessionhistory.cache_subframes has been disabled for 12yrs. It's not
actually maintained and it leaks content viewers. Using this unreliable feature
in test cases is a bad practice, so remove the pref completely and fix existing
test cases.

MozReview-Commit-ID: 3tQLpsqmmaq
2017-09-05 16:02:04 +08:00
Samael Wang e4e358bb96 Bug 1364364 - Part 5.1: Rename frame/iframe.html of to-be-modifed test cases. r=smaug
Since git lacks of native rename command, git-cinnabar can only recognize
and convert plain mv to hg rename, so I need a separated patch for renaming.

MozReview-Commit-ID: 4M6n5wIWoFl
2017-09-05 15:57:21 +08:00
David Parks d67acde44c Bug 1397445: Remove expiring FILE_EMBEDDED_SERVICEWORKERS telemetry probe. r=bkelly
This measured service workers registered in https iframes contained in file:// pages.
2017-09-08 11:21:27 -07:00
Wes Kocher 53da9bec37 Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Andrea Marchesini 26b14d70a4 Bug 1397627 - Fetch API and other components should pass the length of the stream to necko when known, r=smaug 2017-09-08 16:06:26 +02:00
Andrea Marchesini c12be973a9 Bug 1397810 - FileReaderSync should use Blob::GetSize() to known the size of the stream and not stream::Available(), r=smaug 2017-09-08 11:23:02 +02:00
Ryan VanderMeulen 3b59e5e66d Bug 1397982 - Update the expectations for test_interfaces.js and test_worker_interfaces.js now that Abort API is being shipped by default. r=baku 2017-09-08 08:28:30 -04:00
Hiroyuki Ikezoe 47bdc5c478 Bug 1397980 - Drop nightly only flag for PerformanceObserver and PerformanceObserverEntryList. r=baku
They have been already enabled on all channels in bug 1386021.

MozReview-Commit-ID: BCin6tCweqV
2017-09-08 12:18:13 +09:00