Граф коммитов

2257 Коммитов

Автор SHA1 Сообщение Дата
dimi 98c100092c Bug 1143717 - Implement the ServiceWorkerMessageEvent interface. r=baku
--HG--
extra : rebase_source : 7ff8853c04d5c2c09cbfb9ec20f248df1233486a
2015-09-22 16:56:48 +08:00
Andrea Marchesini abdc1eebce Bug 1193414 - SharedWorkers thread should be kept alive also when the SharedWorker object is CCed, r=khuey 2015-09-23 06:54:29 +01:00
Nikhil Marathe 48d53f38df Bug 1184798 - Ensure workers loads are treated as non-subresource fetches. r=jdm
--HG--
extra : commitid : KSrA2sDx3MI
extra : rebase_source : c28988811316aa40e38752669a928d27750001b6
2015-09-17 11:56:41 -07:00
Henry Chang b6b5862949 Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley 2015-09-18 15:11:58 +08:00
Ehsan Akhgari 5d40efa578 Bug 1206894 - Enable asynchronous dispatching of fetch events; r=jdm
This refactoring patch separates the preparation of the fetch event
object from its dispatching, so that consumers would be able to
dispatch the event asynchronously.
2015-09-21 20:59:27 -04:00
Christoph Kerschbaumer 2fac10d123 Bug 1048048 - add preload content policy types for scripts (r=baku)
--HG--
extra : source : 450d4a13c90e95a58caa398e4fcc0a71f4800071
2015-09-20 14:56:21 -07:00
Wes Kocher cd079d2bf9 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer c938714dba Bug 1048048 - add preload content policy types for scripts (r=baku) 2015-09-20 14:56:21 -07:00
Mike Hommey 538706caba Bug 1203840 - Trigger dirty pages purge after CC. r=njn,r=smaug,r=mccr8
Jemalloc 4 purges dirty pages regularly during free() when the ratio of dirty
pages compared to active pages is higher than 1 << lg_dirty_mult.  We set
lg_dirty_mult in jemalloc_config to limit RSS usage, but it also has an impact
on performance.

So instead of enforcing a high ratio to force more pages being purged, we keep
jemalloc's default ratio of 8, and force a regular purge of all dirty pages,
after cycle collection.

Keeping jemalloc's default ratio avoids cycle-collection-triggered purge to
have to go through really all dirty pages when there are a lot, in which case
the normal jemalloc purge during free() will already have kicked in. It also
takes care of everything that doesn't run the cycle collector still having
a level of purge, like plugins in the plugin-container.

At the same time, since jemalloc_purge_freed_pages does nothing with jemalloc 4,
repurpose the MEMORY_FREE_PURGED_PAGES_MS telemetry probe to track the time
spent in this cycle-collector-triggered purge.
2015-09-20 17:43:43 +09:00
Bobby Holley 15e1767e1c Bug 1189668 - Check CSP before completing channel interception. r=ehsan 2015-09-20 00:32:14 -07:00
Kit Cambridge 7f516ea381 Back out bug 1205109 for Push mochitest failure.
--HG--
extra : commitid : 8uF5cA3R489
extra : rebase_source : 32dcfc2a2816dabecb7a102d7b44b8f2d2c89160
2015-09-18 18:15:23 -07:00
Kit Cambridge 731f585e6c Bug 1205109 - Make `pushsubscriptionchange` extendable. r=mt,nsm
--HG--
extra : commitid : 4ziWEfRBlb4
extra : rebase_source : 8998aaf2f21825c93aba12de2a8543ecb64d7c1b
2015-09-17 05:15:45 -07:00
Kit Cambridge 556109257e Bug 1205112 - Make `PushEvent.data` nullable. r=mt,smaug
--HG--
extra : commitid : 8kofiFgB7WB
extra : rebase_source : 1ff780efd336a9a4214800149c397d9fd3fd6429
2015-09-17 05:13:04 -07:00
Kit Cambridge cc7189cb64 Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug
--HG--
extra : commitid : 10hopC95zuL
extra : rebase_source : c3c9cfac62d1acb234bba2f16b443783354c43a4
2015-09-17 05:10:42 -07:00
Nikhil Marathe 6d235278db Bug 1203324 - disable notifications on serviceworkers. r=ehsan,wchen
Per the product discussion, the Notification API should be disabled in
ServiceWorker in release builds for 42 since the UX isn't great [1].

The aim is to release in 44.

Apologies for the code duplication for pref checking in Notification and
ServiceWorkerRegistration. There isn't a easy way to get
ServiceWorkerRegistration's generated binding to include Notification.h without
having an attribute/method that uses Notification.

[1]: https://mana.mozilla.org/wiki/x/TgAJAw

--HG--
extra : commitid : 5dtc2E63kuM
extra : rebase_source : 4265dcd154462aa4f3b915e9e898fe7b82bf9afc
2015-09-15 12:58:32 -07:00
Carsten "Tomcat" Book c5551bace9 Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE
Backed out changeset 47ccf6689101 (bug 1169633)
Backed out changeset 503eab197a2d (bug 1163254)
2015-09-17 16:01:25 +02:00
hchang 2e884ff477 Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley 2015-09-16 19:42:00 +02:00
Albert Crespell b2e334e690 Bug 1182113 - Test XSLT serviceworker load. r=bkelly 2015-09-10 12:42:02 +02:00
Phil Ringnalda 92751c5b3e Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Nicholas Nethercote f429eae6a5 Bug 1203427 (part 5) - Add logging of timer firings. r=froydnj. 2015-09-10 00:50:51 -07:00
Ehsan Akhgari 3792ea0f2a Bug 1204397 - Fix the test expectations to expect service workers to be enabled only on Nightly for Fennec; r=baku
The semantics of the new attributes are as follows:
* nightlyAndroid only takes effect on Android.
* If both nightlyAndroid and android are specified, nightlyAndroid takes
* precedence.

These two rules allow us to check for the current situation.
2015-09-16 23:10:03 -04:00
Ehsan Akhgari 622b6a36e2 Bug 1204596 - Part 3: Store the responses with manual redirect in the tests added for bug 1164397; r=bkelly
This needs to be done so that we match the manual redirect mode
for navigations when the response is stored in the cache.
2015-09-16 20:38:23 -04:00
Ehsan Akhgari 59c135c176 Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi 2015-09-16 19:15:30 -04:00
Andrea Marchesini f0aa7a8c5f Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Wes Kocher ab3e843b68 Backed out changeset ccfddcbccdac (bug 1204775) for sharedworker bustage 2015-09-15 11:08:09 -07:00
Ben Kelly 061dd411a3 Bug 1203680 P5 Make ServiceWorkerManager ensure channel upload stream is cloneable. r=nsm 2015-09-15 10:15:45 -07:00
Ben Kelly bc6fd423a1 Bug 1203680 P1 Test file blob uploads with service worker interception. r=nsm 2015-09-15 10:15:45 -07:00
Andrea Marchesini ff25288854 Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 00:47:19 +08:00
Wes Kocher a336f83a0a Backed out 9 changesets (bug 1203680) for mochitest bustage CLOSED TREE
Backed out changeset e4733b9eb53c (bug 1203680)
Backed out changeset fb33eb2a55b0
Backed out changeset eb42e21bbb96 (bug 1203680)
Backed out changeset 86642d84e604 (bug 1203680)
Backed out changeset 1026da4b02fb (bug 1203680)
Backed out changeset 311f9810e0b3 (bug 1203680)
Backed out changeset 6fedc85dc0d9 (bug 1203680)
Backed out changeset b25230c0a193 (bug 1093357)
Backed out changeset 2369d63ef14a (bug 1203680)
2015-09-14 14:27:57 -07:00
Wes Kocher b4b28bfb9d Backed out 2 changesets (bug 1204397) for serviceworkers bustage
CLOSED TREE?

Backed out changeset 01cf8bf2f3d7 (bug 1204397)
Backed out changeset 6abdb99b2b30 (bug 1204397)
2015-09-14 12:46:57 -07:00
Ben Kelly 65770e7d7b Bug 1203680 P5 Make ServiceWorkerManager ensure channel upload stream is cloneable. r=nsm 2015-09-14 12:04:56 -07:00
Ben Kelly 2da1208f50 Bug 1203680 P1 Test file blob uploads with service worker interception. r=nsm 2015-09-14 12:04:56 -07:00
Ehsan Akhgari 1f3d931c95 Bug 1204397 - Part 2: Recover from a double negative trap, r=me 2015-09-14 14:22:49 -04:00
Nikhil Marathe d5c8bfc780 Bug 1197012 - Fix ThrowTypeError in Notification. r=mccr8
--HG--
extra : commitid : EfR8HuHT7WA
extra : rebase_source : 9d713b3293a1b0e08f2be6015a81a179e4aa1c0e
2015-08-20 22:18:49 -07:00
Ehsan Akhgari 474c7a9e36 Bug 1204397 - Fix the test expectations to expect service workers to be enabled only on Nightly for Fennec; r=baku 2015-09-14 12:26:51 -04:00
Josh Matthews 6841a351b6 Bug 1198544 - Prevent FetchDriver from creating multiple responses if OnStopRequest yields a failing status code. r=nsm 2015-09-14 11:05:35 -04:00
Michael Layzell 0097c41e01 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Michael Layzell fb6ddae47f Bug 1200337 - Part 1: Don't expose standard HTTP headers during interception in non-e10s mode, r=mcmanus 2015-09-12 12:46:09 -04:00
Botond Ballo 04bf303d99 Bug 1198451 - Disambiguate mozilla::dom::Function from mozilla::Function. r=froydnj
--HG--
extra : source : aa0c472e2f7ed9ca9f71682c47f19d5f4b880e7d
2015-09-11 17:25:23 -04:00
Wes Kocher bab9b5abf4 Backed out changeset 132aa442af95 (bug 1198544) for browser_ManifestObtainer_obtain.js failures CLOSED TREE 2015-09-11 11:53:52 -07:00
Josh Matthews 7e4893bc7a Bug 1198544 - Prevent FetchDriver from creating multiple responses if OnStopRequest yields a failing status code. r=nsm 2015-09-11 13:23:29 -04:00
Nicholas Nethercote ef4348692c Bug 1203357 - Fix MSVC warning in dom/workers/test/gtest/TestReadWrite.cpp. r=baku.
The particular warning here was complaining about an unsafe comparison between
a uint32_t and a bool.

Also, remove ALLOW_COMPILER_WARNINGS=True for this directory.

--HG--
extra : rebase_source : e2ce5c425a48bf9cf29182f222d1f2dd44eb9bc8
2015-09-10 08:02:30 -07:00
Nikhil Marathe cd9d0eb7ab Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
Update web-platform-tests expected data

--HG--
extra : commitid : 4dM6kivKeAc
extra : rebase_source : 64e40258a98b79064d5073422811fb8e1f688735
2015-09-04 12:00:24 -07:00
Ehsan Akhgari 0cb3e73aaa Bug 1203160 - Part 2: Fix the interfaces tests to allow SW interfaces for non-release Fennec; r=baku 2015-09-10 01:05:17 -04:00
Ehsan Akhgari 06394a9a8b Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-09 07:54:33 -04:00
Ehsan Akhgari 0d3d9044a6 Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm 2015-09-09 07:53:50 -04:00
Nigel Babu 2ac21d8fc7 Backed out changeset 3555d4b1ab1e (bug 815299) for M4 bustage. 2015-09-09 09:12:31 +05:30
Nigel Babu ee4f599e0f Backed out changeset 0a2a9972b4c7 (bug 815299) for M4 bustage. 2015-09-09 09:12:28 +05:30
Nigel Babu 14c4d4b047 Backed out changeset 9f3adfd2ca52 (bug 815299) for M4 bustage. 2015-09-09 09:12:24 +05:30
Ehsan Akhgari 3625cc93e2 Bug 815299 - Part 4: Address jdm's review comments 2015-09-08 20:38:33 -04:00
Ehsan Akhgari 617067e78e Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-08 20:08:32 -04:00
Ehsan Akhgari 4d0639bd0c Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm 2015-09-08 20:08:31 -04:00
Andrea Marchesini 893e3bb469 Bug 1198814 - Use StructuredCloneHelper in PromiseWorkerProxy, r=smaug 2015-09-05 12:22:13 +03:00
Nikhil Marathe 548809dc68 Bug 1197421 - Fix promise worker proxy cleanup and update callers. r=catalinb
Get rid of having users dispatch control runnables. It was error prone and
required too much reasoning. It was also possible to end up in a state where
callers would dispatch a WorkerRunnable, which would succeed, so they would not
dispatch a WorkerControlRunnable. Then the worker would stop Running,
canceling and releasing the runnable leading to releasing the proxy in an
unclean state. Instead, we AddRef() and add the feature and remove the feature
and Release() on Notify(). If callers successfully run a WorkerRunnable they
clean the proxy. If not, the proxy stays alive until the worker switches to
Canceling state.

--HG--
extra : commitid : BnnijSibVYe
extra : rebase_source : 15f6810dfbd0c88a983196de401c55e782b1d1d8
2015-09-02 10:07:26 -07:00
Andrea Marchesini efd3b25c78 Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug
--HG--
rename : dom/ipc/StructuredCloneUtils.cpp => dom/ipc/StructuredCloneIPCHelper.cpp
rename : dom/ipc/StructuredCloneUtils.h => dom/ipc/StructuredCloneIPCHelper.h
2015-09-02 17:20:30 +01:00
Ben Kelly d280435063 Bug 1184967 P3 Switch mochitest redirect tests back to returning a CORS Response. r=nsm 2015-09-01 07:58:34 -07:00
Ben Kelly 3cc300f189 Bug 1184967 P1 Set RequestMode based on LoadInfo securityMode and client request content policy. r=nsm 2015-09-01 07:58:34 -07:00
Ben Kelly 1da0e73e32 Bug 1184607 P8 Fix mochitests to store opaqueredirect responses in Cache for navigation URLs. r=nsm 2015-08-31 14:26:30 -07:00
Ben Kelly 10350eb242 Bug 1184607 P4 Handle the RequestRedirect mode during service worker interception. r=nsm
* * *
Bug 1184607 P4 interdiff 001 fix manual redirect assertion for navigations r=nsm
* * *
Bug 1184607 P4 interdiff 002 dom/worker nits
2015-08-31 14:26:29 -07:00
Ehsan Akhgari db2d2576d7 Bug 1199693 - Test CORS preflight interception with and without an internal redirect; r=jdm 2015-08-31 08:45:56 -04:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Kyle Huey d6d7537d63 Bug 1198982: Test fixups. r=me 2015-08-30 11:42:28 -07:00
Kyle Huey d4f49ff9e9 Bug 1198982: Don't fail the SW load for an importScripts failure. r=bkelly 2015-08-30 10:31:52 -07:00
Michael Layzell cd6e65d4d5 Bug 1147821 - Update IndexedDB to use common StorageAllowedForWindow logic, r=khuey 2015-08-28 10:10:30 -04:00
Nikhil Marathe 1c97261710 Bug 1176988 - Patch 3 - Tests. r=jdm
Update web-platform-tests expected data

--HG--
extra : commitid : KmmRlr87yvj
extra : rebase_source : 7e7ba00d6f0da2c0dfdfe98c50675d4721a6f2a2
2015-08-26 08:59:04 -07:00
Andrea Marchesini fdbfd864e7 Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 17:19:13 +01:00
Nigel Babu d5f46aaf6c Backed out a19daae11647 (Bug 1186307) for W8 and W4 bustage on CLOSED TREE 2015-08-27 15:04:25 +05:30
Andrea Marchesini b68734b7da Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 09:06:09 +01:00
Phil Ringnalda 700dfcd3d1 Back out f9edb5fe8fb9 (bug 1198982) for webplatform registration.https.html failures
CLOSED TREE
2015-08-26 21:36:40 -07:00
Kyle Huey 517ebc93c6 Bug 1198982: Don't fail the SW load for an importScripts failure. r=bkelly 2015-08-26 19:21:03 -07:00
Nikhil Marathe fe819ad8d7 Bug 1180861 - Various ServiceWorker registration fixes to get test passing. r=bkelly,jgraham.
This commit implements the following changes to get registration.https.html working.
1) Fail with NS_ERROR_DOM_SECURITY_ERR where the spec requires it.
2) Propagate JSExnType to ServiceWorkerManager::HandleError() so that a JS
   exception object with the correct .name can be created.
3) Fail with security error on redirect failure.
4) Check fetched script's mimetype.
5) Add missing python server files for web-platform-tests.
6) Update web-platform-tests expected data.
7) Several tests have been changed to use TypeError or more appropriate JS
   errors based on my reading of the spec.

--HG--
extra : commitid : IxWo2IVUweU
extra : rebase_source : c3c1ead153027bf84e7f239fd7125224fe25c3c0
2015-08-19 16:21:25 -07:00
Andrea Marchesini 24bd2e4412 Bug 1185640 - serviceworker register() should not accept escaped slashes. r=bkelly
--HG--
extra : commitid : 7XFc06lyJkq
extra : rebase_source : 4be886456a92e53e69ac35afd5213d7b7751cb7c
2015-08-19 13:23:58 -07:00
Kyle Huey 0b8e80b981 Bug 1164834: MessageEvents coming from postMessage should not be cancelable. r=Ms2ger 2015-08-25 13:30:19 -07:00
Nikhil Marathe c04b01b1ed Bug 1189675 - Make all ServiceWorker events non cancelable. r=catalinb
Update web-platform-tests expected data

--HG--
extra : commitid : 5HEP46MV77P
extra : rebase_source : 5234b551a4e9cf2bf014f4ee0396d9dcdd9f6dac
2015-08-21 17:38:18 -07:00
Nikhil Marathe b540329bb9 Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.

Update web-platform-tests expected data

--HG--
extra : commitid : IawOgxEfc79
extra : rebase_source : e6fcc47c873fd9f71f51a67303a6566bf0c0dd21
extra : amend_source : 787990406129722a3c58ff78782d778823daf2bf
2015-08-24 14:42:14 -07:00
Ryan VanderMeulen ad4abd6428 Backed out 7 changesets (bug 1189678, bug 1193128, bug 1189661, bug 1189644, bug 1189675) for various serviceworker mochitest and wpt failures.
Backed out changeset 696463139720 (bug 1189661)
Backed out changeset 7babb5b9d74a (bug 1189644)
Backed out changeset d4fa5cfc4b86 (bug 1189678)
Backed out changeset a7c27770b861 (bug 1189675)
Backed out changeset 471a45b97ce2 (bug 1189644)
Backed out changeset 4d96f2d48077 (bug 1193128)
Backed out changeset a9d5366288ff (bug 1189661)

CLOSED TREE
2015-08-24 18:09:47 -04:00
Nikhil Marathe 680d1fe469 Bug 1189644 - Follow up to fix test. a=bustage
CLOSED TREE

--HG--
extra : commitid : 5MFDWqWODAV
extra : amend_source : 9ea1f0c0ea7f99ff4267f435454895fd9522d43b
2015-08-24 13:54:25 -07:00
Jose Antonio Olivera Ortega 3ff1bb96f6 Bug 1182103 - Test EventSource scenarios with fetch interception. r=bkelly 2015-08-24 06:32:00 -04:00
Nikhil Marathe d812469212 Bug 1189675 - Make all ServiceWorker events non cancelable. r=catalinb
Update web-platform-tests expected data

--HG--
extra : commitid : 61GwTtITUOa
extra : rebase_source : e5b0dfe482d4104cdab97c511e09c4b346f0eacd
2015-08-21 17:38:18 -07:00
Nikhil Marathe 0a089b35b0 Bug 1189644 - Update waitUntil() and activation to spec. r=catalinb
waitUntil() has been updated to accept multiple calls and concatenate them into Promise.all().
activation does not fail any more even if the promise(s) passed to waitUntil() reject.

Update web-platform-tests expected data

--HG--
extra : commitid : 1jnUWlyw4zQ
extra : rebase_source : 3e2ac14a2f1ebc6fbfc322bb1914feb47f261349
2015-08-21 16:13:54 -07:00
dimi 888dac0c00 Bug 1187766 - Test loading plugins scenarios with fetch interception. r=bkelly 2015-08-21 15:09:46 +08:00
Nikhil Marathe 1c3ca8257a Bug 1194562 - Pass wide strings to ThrowTypeError. r=mccr8 2015-08-18 12:59:44 -07:00
dimi 04198b30cb Bug 1189235 - Use originAttribute for ServiceWorkerRegistrar. r=baku 2015-08-20 18:20:19 +08:00
Nikhil Marathe 0047229d92 Bug 1187350 - update() should return a Promise. r=ehsan,catalinb
--HG--
extra : commitid : 2SkKnobC9jo
extra : rebase_source : 5f5d5c3ca57237fb63044c66a48861a1a4bf19f3
extra : amend_source : 5ea042fc5cc2be52594eca1fd6cda2f36057b3eb
2015-08-14 15:06:00 -07:00
Nikhil Marathe 0756a03abe Bug 1181056 - waitUntil() should throw if called when event is not dispatching. r=smaug
--HG--
extra : commitid : 5Caz3xiFQQe
extra : rebase_source : ef708cda07cbaf897ec3201e19defcf02d85e06f
2015-08-18 16:28:04 -07:00
Nikhil Marathe 5cf1847cde Bug 1181037 - Use entry settings object's base URL. r=ehsan
The second test, which checks for NetworkError is incorrect.
[[Update]] step 12 states:
"If response is a network error or response's status is not in the range 200 to 299, then:
  1. Reject p with a TypeError."

which specifically converts the NetworkError (due to 404) to a TypeError.

Also fixes controller-on-reload.https.html

Update web-platform-tests expected data

--HG--
extra : commitid : LUdPR44iiv2
extra : rebase_source : 6774faa1417ce585161750f14bf233d7382bea68
2015-08-20 13:56:37 -07:00
Salvador de la Puente ba23b80bbc Bug 1196157 - Marks left by performance marks should print the domain of the application and not the complete URL. r=baku 2015-08-20 14:34:22 -07:00
dimi 758be55430 Bug 1191647 - Listen to clear-origin-data in ServiceWorkerManager.cpp. r=bkelly
--HG--
extra : source : ee8d28602bc21f5d5c32c66e3bb7e3e78d18ad4f
2015-08-19 14:46:53 +08:00
Nigel Babu d78ab7197e Backed out changeset f447f7b8190b (bug 1185640) for W8 failures on CLOSED TREE
--HG--
extra : amend_source : 1fca18be89fda404fb71c3f0c8550011ded2d7de
2015-08-20 16:12:00 +05:30
Andrea Marchesini c59e2e345a Bug 1185640 - ServiceWorkers - Passing a scope or scriptURL to register() with escaped '/' or '\' should fail, r=bkelly 2015-08-20 08:46:01 +01:00
Andrea Marchesini ce594e8b18 Bug 1196514 - remove dom.messagechannel.enabled pref, r=smaug 2015-08-20 08:34:38 +01:00
Wes Kocher 7548b216ca Backed out changeset ee8d28602bc2 (bug 1191647) for build bustage CLOSED TREE 2015-08-19 15:55:05 -07:00
dimi 04c040ba8d Bug 1191647 - Listen to clear-origin-data in ServiceWorkerManager.cpp. r=bkelly
--HG--
extra : rebase_source : 9401b09e0d6708fa8455d8629a321569a6e6abe9
2015-08-19 14:46:53 +08:00
Andrea Marchesini d8e7c636ae Bug 1192350 - XMLHttpRequest::Open() should check if mProxy has been already released in a nested ::Open() calls, r=khuey 2015-08-19 18:26:13 +01:00
Bill McCloskey c2ac89de85 Bug 1163735 - Ensure that we don't hand out a destroyed TabChild from WorkerPrivate::InterfaceRequestor (r=khuey)
If the actor we hand out has been __delete__d, then we'll crash when
Necko tries to send the actor to the parent to open connections.
2015-08-19 09:40:55 -07:00
Nikhil Marathe b5681e95be Bug 1193911 - Ensure synthetic Responses gets a valid channel info. r=ehsan
Right now, synthetic Responses did not have a valid channel info. When these
were saved in the Cache, and then restored, the restored Response did have
a ChannelInfo, but that ChannelInfo did not have a valid security info.
Passing this to respondWith() then caused the interception to fail.

This patch modifies Response::Constructor() to initialize its ChannelInfo from
the global. ChannelInfo can now initialize itself from a nsIDocument. All
workers now store their ChannelInfo on the WorkerLoadInfo.

--HG--
extra : commitid : L1wltwPICd8
extra : rebase_source : 8dab4c414eb50e02a00dd2cb3ee848b811060e70
2015-08-17 15:08:58 -07:00
Jinank Jain f67a04e158 Bug 1162333 - Add stronger assertions to PromiseWorkerProxy in debug builds. r=catalinb
--HG--
extra : commitid : 2jVPtywuF92
extra : rebase_source : 85d8854a7f3eec8c1fd31ed0e57f33d3b83a2d04
2015-06-11 00:35:18 +02:00
Hiroyuki Ikezoe 07f62b2d0a Bug 1165796 - Part 2: Implement PerformanceObserver.r=baku
--HG--
extra : rebase_source : 9ccd3f9c8932841aed6a13986a4466fac0197902
2015-08-17 15:13:20 -07:00
Catalin Badea 04bb71d075 Bug 1193133 - Throw when calling postMessage from a Service Worker dom object with no global. r=bkelly 2015-08-17 10:38:34 -07:00
Catalin Badea 678a410089 Bug 1193133 - Drop the document and window references from ServiceWorker. r=bkelly 2015-08-17 10:38:34 -07:00
Ryan VanderMeulen 61f091d8c5 Backed out changesets 2381f29f63c2 and 9f2469ea7f01 (bug 1193133) for frequent w-p-t crashes/asserts. a=me 2015-08-14 09:00:59 -04:00
Catalin Badea 7de33f8307 Bug 1193133 - Throw when calling postMessage from a Service Worker dom object with no global. r=bkelly 2015-08-13 13:35:10 -07:00
Catalin Badea d6eb43737c Bug 1193133 - Drop the document and window references from ServiceWorker. r=bkelly 2015-08-13 13:35:10 -07:00
Ryan VanderMeulen 1e86901d36 Backed out changeset 4a8f45990368 (bug 1185640) for causing serviceworker w-p-t permacrashes.
CLOSED TREE
2015-08-13 10:13:55 -04:00
Andrea Marchesini 2792224a7f Bug 1185640 - Passing a scope or scriptURL to register() with escaped '/' or '\' should fail, r=bkelly 2015-08-13 11:34:52 +01:00
Andrea Marchesini 5a264a19df Bug 1187470 - ServiceWorker scripts should not be treated parser warnings as errors, r=bkelly
--HG--
rename : dom/workers/test/serviceworkers/strict_mode_error.js => dom/workers/test/serviceworkers/strict_mode_warning.js
rename : dom/workers/test/serviceworkers/test_strict_mode_error.html => dom/workers/test/serviceworkers/test_strict_mode_warning.html
2015-08-13 10:52:15 +01:00
Albert Crespell 8e93c098d1 Bug 1182120 - Test XMLDocument.load() with fetch interception. r=bkelly 2015-08-12 06:43:27 +02:00
Andrea Marchesini a2c5d2836e Bug 1193414 - Telemetry for SharedWorker spawning. r=bkelly 2015-08-12 06:00:00 -04:00
Aryeh Gregor 5aeef0231d Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Seth Fowler 3c08b48c3a Bug 1193125 - Avoid corrupting image data in test_fetch_event.html. r=bkelly 2015-08-11 23:50:28 -07:00
Kyle Huey 76e3009ab8 Bug 1179909: Refactor stable state handling. r=smaug
This is motivated by three separate but related problems:

1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).

2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).

3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.

The solve this, this patch does the following:

1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Ben Kelly 5c5cefb2b2 Bug 1192986 Also mark Cache/CacheStorage as release interfaces on workers. r=ehsan a=bustage 2015-08-10 19:49:22 -07:00
Andrea Marchesini f7220514cc Bug 1186307 - part 2 - Compilation failures fixed, CLOSED TREE 2015-08-10 17:28:43 +01:00
Andrea Marchesini b4c30ecaf9 Bug 1186307 - part 1 - Unify the StructuredCloneCallbacks in WorkerPrivate.cpp, r=smaug 2015-08-10 16:33:23 +01:00
Ben Kelly c7e4c1b91c Bug 983301 Add a test for FetchEvent.respondWith(5). r=bz 2015-08-06 18:12:14 -07:00
Nikhil Marathe 970731b146 Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : GQaiqrErWLz
extra : rebase_source : 3f01566803616b221b883b51ab079d8868e8e502
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Nikhil Marathe 25e263af21 Bug 1144660 - client.focus() adds window interaction checks and directly uses DOMServiceWorkerFocusClient to focus window. r=ehsan,dao
client.focus() now directly uses the DOMServiceWorkerFocusClient event. The
platform popup checking is not available on service workers. Instead each
worker maintains a counter of if it is allowed to interact with windows. This
counter is currently only incremented by the notificationclick event and
dropped after the event has been dispatched.

Since acquiring a client is an async operation most service workers will
perform in notificationclick, an additional extension is granted after the event
during which the service worker may focus a client. This extension is only granted
if the script invokes NotificationEvent.waitUntil() at which point the timer begins.
The extension is terminated when the Promise passed to waitUntil() is fulfilled, or
the timer expires, whichever comes first.

--HG--
extra : commitid : 5wavKTRZWcy
extra : rebase_source : fc8ab4ef6c9bf384b5525b0bc979b3cedc4e1d6c
2015-07-23 08:30:27 -07:00
Nikhil Marathe 744a8d6f14 Bug 1144660 - Make KeepAliveHandler threadsafe refcounted. r=ehsan
This works because KeepAliveHandler only holds nsMainThreadPtrHolder<> which is
itself thread safe.  It has assertions that the PromiseNativeHandler overrides
are only called on the worker and these assertions are satisfied.

--HG--
extra : commitid : Kqgfb87dkFH
extra : rebase_source : 56371d2993c681d99814535a4b5289330763f9c3
2015-08-05 20:58:10 -07:00
Carsten "Tomcat" Book 2df123b59f Backed out 1 changesets (bug 1153499) for test failures in browser_force_refresh.js
Backed out changeset 252814d5e628 (bug 1153499)
2015-08-06 09:47:38 +02:00
Nikhil Marathe ea58277c0d Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : GLh29700Ofi
extra : rebase_source : 850c4534d62d9db98b890a5239c8f5c647baa8ef
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Wes Kocher 5e90ccec17 Backed out 3 changesets (bug 1191495, bug 1153499, bug 1144660) for mochitest-push crashes
Backed out changeset 8917e7323399 (bug 1191495)
Backed out changeset 13ed6f60d3f9 (bug 1144660)
Backed out changeset 95bd6642e4b1 (bug 1153499)
2015-08-05 15:18:05 -07:00
Nikhil Marathe 0d07229d06 Bug 1190703 - Relax scope resolution assertion in ServiceWorkerContainer::Register. r=bkelly
--HG--
extra : commitid : 2VyBa3KOyIV
extra : rebase_source : 81940c62d45ce34df1ce60f33ac90f762acee937
extra : amend_source : d0c955ca481b3a473d698176fea9aed407443ff4
2015-08-05 14:33:50 -07:00
Nikhil Marathe 9c77fa0bcd Bug 1144660 - client.focus() adds window interaction checks and directly uses DOMServiceWorkerFocusClient to focus window. r=ehsan,dao
client.focus() now directly uses the DOMServiceWorkerFocusClient event. The
platform popup checking is not available on service workers. Instead each
worker maintains a counter of if it is allowed to interact with windows. This
counter is currently only incremented by the notificationclick event and
dropped after the event has been dispatched.

Since acquiring a client is an async operation most service workers will
perform in notificationclick, an additional extension is granted after the event
during which the service worker may focus a client. This extension is only granted
if the script invokes NotificationEvent.waitUntil() at which point the timer begins.
The extension is terminated when the Promise passed to waitUntil() is fulfilled, or
the timer expires, whichever comes first.

--HG--
extra : commitid : 5DUAOg4j41K
extra : rebase_source : 775d36e41c3d3b62e5189b032220fa2469ac237d
extra : source : 8300859f8e9751ca663f96fae3375dfda8b2ad13
2015-07-23 08:30:27 -07:00
Nikhil Marathe 4d3d992a72 Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : JbPfHDqXUbo
extra : rebase_source : c1114f39f003e9109da73ab49e30b73826ef8f04
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Nikhil Marathe 7fe3f37d58 Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
--HG--
extra : commitid : 6i4eexsw50U
extra : rebase_source : 9147a2f5e3996d104ff40e32da3e82ca1cc3917d
2015-08-03 11:04:41 -07:00
Fernando Jimenez 5d630742c6 Bug 1180148 - Clear service workers registered for a site when clearing the cookies and stored data is not working in b2g. r=baku 2015-08-03 22:51:07 +02:00
Nikhil Marathe 839a3bc3fb Bug 1183954 - Fix Notification.data structured cloning on workers. r=robertbindar,mccr8
Rather than store a non-thread-safe refcounted nsIStructuredCloneContainer, store the base64 representation.
Caches a jsval the first time an attempt to access data is made from content script.

--HG--
extra : commitid : Ijd82LTJaYo
extra : rebase_source : f82e837842037ea02efae3a0fc9b2b35c2a0d7d0
2015-07-30 12:44:14 -07:00
Boris Zbarsky dba569f117 Bug 983301 part 2. Change Promise to not be distinguishable from any other type. r=peterv 2015-07-31 13:30:55 -04:00
Kaku Kuo 9f9f5a83d7 Bug 1044102 - Part 3 - Support StructuredClone. r=baku
--HG--
extra : rebase_source : 714950441e109436a9d70a24a8ab4efb269024c5
2015-07-30 20:50:00 +02:00
Kaku Kuo 9c3f995e43 Bug 1044102 - Part 1 - Implement ImageBitmap. r=roc, sr=smaug
--HG--
extra : rebase_source : c26f327064125a6d5690b03571f25ea0e25347eb
2015-07-30 20:47:00 +02:00
Kaku Kuo b6da468928 Bug 1044102 - Part 0 - Test cases. r=smaug.
--HG--
extra : rebase_source : 59e9690e7c5b029cab5f35b544151366025876bf
2015-07-30 20:45:00 +02:00
Andrea Marchesini d0d22b2a08 Bug 1188265 - No manual JS_ClearPendingException when StructuredCloneHelper is used, r=smaug 2015-07-31 01:38:00 +01:00
Wes Kocher 98e5242831 Backed out changeset 2bdaed564656 (bug 1125961) for b2g emulator mochitest-21 failures starting in test_fetch_event_client_postmessage.html 2015-07-30 14:53:38 -07:00
Josh Matthews 77fd3928cf Bug 1125961 - Allow sending null PBrowser actors when there's a triggering principal which can be used for security checks. r=bkelly,ddamjano 2015-06-03 15:07:42 -04:00
Ehsan Akhgari aeacbc159a Bug 1188062 - Unship Request.context; r=baku 2015-07-30 08:14:00 -04:00
Ehsan Akhgari 547404788d Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-30 01:06:38 -04:00
Andrea Marchesini 7655790d94 Bug 1185820 - XMLHttpRequest::Open() in worker should count the recursion using a uint32_t and not a boolean. r=khuey 2015-07-29 16:10:15 -04:00
Bobby Holley 97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Kyle Huey c5c0116764 Bug 1158031: Don't return empty arrays from MultiPartBlobImpl::GetSubBlobImpls(). r=baku 2015-07-28 15:59:56 -07:00
Kyle Huey 512e1a6d95 Bug 1188141: Make Worker error events not bubble. r=baku 2015-07-28 15:59:55 -07:00
Kyle Huey b4476f96d4 Bug 1188115: Expose IDBCursorWithValue in workers. r=baku 2015-07-28 15:59:55 -07:00
Francisco Jordano 4008b170ad Bug 1186880 - Performance timing api in workers should output entries if preference is enabled. r=baku 2015-07-28 17:33:37 +01:00
Ryan VanderMeulen 96b36b5855 Backed out changeset c88d1138bc38 (bug 1188091) for Mulet test_serviceworker_interfaces.html failures.
CLOSED TREE
2015-07-28 13:28:39 -04:00
Ehsan Akhgari 6e916540f5 Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-28 12:28:53 -04:00
Andrea Marchesini c0a2c6f1d9 Bug 1184995 - StructuredCloneHelper for BroadcastChannel and DataStore, r=smaug 2015-07-28 08:38:16 +01:00
dimi 7ddb221e8c Bug 1158735 - FetchEvent.client asserting in onFetch when there's no document. r=bkelly 2015-07-27 19:01:37 +08:00
Anup Kumar 1e19a034c9 Bug 1171941 - Removed an incorrect URL prefix from fetch_tests.js. r=jdm 2015-07-25 08:44:00 +02:00
Eitan Isaacson 3055640112 Bug 1184626 - Add a per-process push message listener. r=smaug
--HG--
rename : dom/push/PushServiceChildPreload.js => dom/push/PushServiceChildPreload.jsm
extra : commitid : JVUONa2Klhc
extra : transplant_source : %8D%A86%94%B2%D7%3F%99%D6%C0%BE/%D8%8A%60%95%EE4%CCt
2015-07-17 14:54:38 -07:00
Nikhil Marathe cf6e7ed78b Bug 1184574 - Allow access to PushManager on ServiceWorker. r=kitcambridge,smaug,catalinb
Refactoring to allow access to PushManager in ServiceWorkerGlobalScope. See comment in PushManager.h for details.

--HG--
extra : commitid : A7RvB9rm8av
extra : transplant_source : %20%99%CA%B0%EB%B9%82%27D%F7e%B8UQ%12%E6%9B%18%BB5
2015-07-23 08:30:15 -07:00
Josh Matthews 4130ff6d80 Bug 1186589 - Ensure CORS preflight requests are never intercepted. r=sicking 2015-07-23 10:25:12 -04:00
Boris Zbarsky 829fdf0599 Bug 1186489. Apply the performance.now() resolution clamping in workers as well. r=froydnj 2015-07-22 13:22:16 -04:00
Andrew McCreight 621e57b2b7 Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor 2015-07-21 11:31:44 -07:00
Ryan VanderMeulen fb3e0b058e Backed out changeset 553a3e1e7b18 (bug 1176341) for bustage.
CLOSED TREE
2015-07-21 13:00:55 -04:00
Andrew McCreight 5cbc3abf39 Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor 2015-07-21 09:44:37 -07:00
Ehsan Akhgari 3d45149452 Bug 1148030 - Correctly reflect object and embed RequestContext values; r=smaug
Note that these elements cannot be intercepted for now.  See bug
1168676 for the background.
2015-07-18 16:44:28 -04:00
Jan de Mooij 9d74419a90 Bug 1184564 part 2 - Use Value instead of jsval in dom/ and storage/. r=bz 2015-07-18 21:45:35 +02:00
Ehsan Akhgari 020deeb507 Bug 1148044 - Correctly reflect frame and iframe RequestContext values; r=smaug 2015-07-18 13:18:06 -04:00
Olli Pettay 8a40d313a1 Bug 1183882, properly implement wrapper caching on PushMessageData, r=nsm
--HG--
extra : rebase_source : 779ada29196c741b6e34bb5e9adc6f0f7ce02623
2015-07-18 01:17:14 +03:00
Kyle Huey 74f03750da Bug 1182316: Part 3 - Add assertions to most other WebIDL entry points, clean up nsIDOMJSWindow cruft. r=peterv 2015-07-16 22:10:35 -07:00
Jason Orendorff 3a5f570d6f Bug 987514, part 3 - Make every global have a (usually empty) Reflect object; rename JS_InitReflect -> JS_InitReflectParse. r=Waldo.
The bit in MIRGenerator.h fixes a straight-up bug in the code, masked until now by unified builds (and unmasked because this patch adds a .cpp file, perturbing the unified build boundaries).

--HG--
extra : rebase_source : aa6bf55dc1ce87b9fc10af76cb506560b14c3de9
2014-11-04 21:41:43 -06:00
Ehsan Akhgari 17dae132ba Bug 1180275 - Part 2: Disable test_app_protocol.html in release builds; r=ferjm 2015-07-16 14:47:53 -04:00
Ryan VanderMeulen d05bc1e9af Backed out changesets 9a048b598b1e and 56e9597b1257 (bug 1180275) for OSX test_android_eclipse.py failures.
CLOSED TREE
2015-07-15 23:40:06 -04:00
Ehsan Akhgari 59bd7ca0e4 Bug 1180275 - Part 2: Disable test_app_protocol.html in release builds; r=ferjm 2015-07-15 20:00:00 -04:00
Ben Kelly 55e3066722 Bug 1181887 Fall back to network if ServiceWorker script fails to load. r=ehsan r=khuey 2015-07-15 12:21:40 -07:00
Olli Pettay 2cdd3a4561 Bug 1183907, properly wrappercache worker URL object, r=baku 2015-07-15 14:50:59 +03:00
Nikhil Marathe 3f86a6f1dd Bug 1183813 - PushEvent.data should be same instance every time. r=smaug
--HG--
extra : commitid : 1NJMNKiGa9p
extra : rebase_source : 6ea076e0969ae3312a094f533e29bc9a7da895de
2015-07-14 13:10:58 -07:00
Eric Rahm 6ce89615f9 Bug 1183894 - Remove warning if MessagePort::CloseInternal is called before start. r=khuey 2015-07-14 18:06:32 -07:00
Catalin Badea e031508bf0 Bug 1179685 - Fix messageport assert in wpt service worker test. r=baku 2015-07-14 17:41:13 -07:00
Andrea Marchesini 804881c9a1 Bug 1160890 - Part 2: ImportScripts() should return muted errors with 3rd party scripts. r=smaug 2015-07-14 16:08:38 +01:00
Andrea Marchesini 6aa2608c1c Bug 1160890 - Part 1: Remove unneeded code from ImportScripts(). r=smaug 2015-07-14 16:08:36 +01:00
Ben Kelly 1d8798cbc9 Bug 1173912 Fail opaque responses for client requests. r=ehsan 2015-07-14 13:11:26 -07:00
Ben Kelly e2321797dc Bug 1173934 Show a message if a docshell fails to load due to SW intercept failure. r=ehsan r=jdm 2015-07-14 13:11:26 -07:00
Nikhil Marathe 16a5e3f9b8 Bug 1114554 - Patch 8 - Support waitUntil() on notificationclick event. r=baku
This was originally a part of Bug 1160527, separated due to changes in order of landing the patches.

--HG--
extra : rebase_source : d997a510f7a93506e8804a1a84671e58684c60f5
2015-06-25 18:50:26 -07:00
Nikhil Marathe 9f27656cb4 Bug 1114554 - Patch 6 - ServiceWorkerRegistration.getNotifications() tests. r=wchen
--HG--
extra : rebase_source : 737d9f69a4746b45ce7919b5b7aa36858dcdbdcd
2015-06-25 18:50:25 -07:00
Nikhil Marathe c8a46b6965 Bug 1114554 - Patch 5 - getNotifications() on worker thread. r=wchen
--HG--
extra : rebase_source : 7d42bf40e9228d3729e0a269d66fa427db3eb38f
2015-06-25 18:50:25 -07:00
Nikhil Marathe 0dcce8d9fe Bug 1114554 - Patch 4 - ServiceWorkerRegistration.getNotifications() on main thread. r=wchen
--HG--
extra : rebase_source : 094fa1eca4e3a9e303202ecaad4edf6cd816c065
2015-06-25 18:50:25 -07:00
Nikhil Marathe f35ee7d850 Bug 1114554 - Patch 3 - Fire notificationclick event on ServiceWorkerGlobalScope. r=wchen,baku
Bug 1114554 - Patch 3.1 - ServiceWorker principal fixes. r=baku

Bug 1162088 introduced origin attributes that ServiceWorkerManager callers have to use. This patch updates notificationclick events to work.

Folded:
Hide NotificationEvent behind pref

--HG--
extra : rebase_source : e892411834525b4c9b31d96d56ddf42634414040
2015-06-25 18:50:25 -07:00
Nikhil Marathe b3f34da652 Bug 1114554 - Patch 2 - ServiceWorkerRegistration.showNotification(). r=wchen,baku
Refactor creation and show dispatch so Notification constructor and showNotification can use it.
Move persistence to ShowInternal.
NotificationStorage calls callback async even when fetching from cache, simply to have similar semantics.
Calls to Notification::Get() are performed async since persistence is now async after being moved to ShowInternal().
Both are in accordance with the spec where the "append to list of notifications" operation is performed in the "show steps" which are performed in parallel from API invocations.

--HG--
extra : rebase_source : 52d3864fb39aa892d2f70dc2b71f09fb0d2ba533
2015-06-25 18:50:24 -07:00
Nikhil Marathe 0b129137a7 Bug 1114554 - Patch 1 - Notification ServiceWorker API stubs. r=wchen,baku
--HG--
extra : rebase_source : e033641ae9d271d1681c424f533db63671b3e735
2015-06-25 18:50:24 -07:00
Jose Antonio Olivera Ortega 7ae012a58f Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. Test. r=baku
--HG--
rename : dom/workers/test/serviceworkers/periodic/wait_for_update.html => dom/workers/test/serviceworkers/app2/wait_for_update.html
2015-07-14 15:44:15 +02:00
Jose Antonio Olivera Ortega 4747512d8a Bug 1178233 - [non-e10s] The update process doesn't work within about:serviceworkers in non-e10s mode. r=baku 2015-07-14 15:44:13 +02:00
Ehsan Akhgari e0be2658f3 Bug 1183158 - Part 5: Get rid of RemoveAllEnumerator; r=baku 2015-07-13 22:42:10 -04:00
Ehsan Akhgari e32bfc21dc Bug 1183158 - Part 4: Get rid of RemoveEnumerator; r=baku 2015-07-13 22:42:08 -04:00
Ehsan Akhgari 5b102b4397 Bug 1183158 - Part 3: Get rid of UnregisterEnumerator; r=baku 2015-07-13 22:42:06 -04:00
Ehsan Akhgari f33cca7068 Bug 1183158 - Part 2: Get rid of SoftUpdateEnumerator; r=baku 2015-07-13 22:42:05 -04:00
Ehsan Akhgari 34d0041be3 Bug 1183158 - Part 1: Get rid of RegistrationEnumerator; r=baku 2015-07-13 22:42:03 -04:00
Ehsan Akhgari a849803571 Bug 1183141 - Use nsTHashtable::Iterator in ServiceWorkerManager::ClaimClients; r=catalinb 2015-07-13 22:42:01 -04:00
Ryan VanderMeulen 0011e3d331 Backed out changeset 57167b45c9d3 (bug 1183141) for wpt failures.
CLOSED TREE
2015-07-13 21:07:29 -04:00
Ryan VanderMeulen 66a68d91af Backed out 5 changesets (bug 1183158) for wpt failures.
Backed out changeset 2dad407995cc (bug 1183158)
Backed out changeset 5c7525b1e21c (bug 1183158)
Backed out changeset 2e6a27e72d83 (bug 1183158)
Backed out changeset db9953b220ae (bug 1183158)
Backed out changeset b0ea3f8b4512 (bug 1183158)
2015-07-13 21:07:01 -04:00
Ehsan Akhgari b242ba825a Bug 1183158 - Part 5: Get rid of RemoveAllEnumerator; r=baku 2015-07-13 19:28:51 -04:00
Ehsan Akhgari 622961192f Bug 1183158 - Part 4: Get rid of RemoveEnumerator; r=baku 2015-07-13 19:28:49 -04:00
Ehsan Akhgari 5c93eeb5f1 Bug 1183158 - Part 3: Get rid of UnregisterEnumerator; r=baku 2015-07-13 19:28:48 -04:00
Ehsan Akhgari c51668f943 Bug 1183158 - Part 2: Get rid of SoftUpdateEnumerator; r=baku 2015-07-13 19:28:46 -04:00
Ehsan Akhgari 44899f18a4 Bug 1183158 - Part 1: Get rid of RegistrationEnumerator; r=baku 2015-07-13 19:28:44 -04:00
Ehsan Akhgari 1ea4a2fdd5 Bug 1183141 - Use nsTHashtable::Iterator in ServiceWorkerManager::ClaimClients; r=catalinb 2015-07-13 19:28:43 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Michael Layzell 562c0a00bc Bug 1181321 - Eliminate duplicate mRefCnt members in PromiseNativeHandler subclasses. r=baku
--HG--
extra : rebase_source : 64348ca27d2f70dc116856dd4f9271e1fb63a467
2015-07-09 08:56:00 +02:00
Wes Kocher aec62d3dc0 Backed out changeset adf95d1cd0aa (bug 1173934) for fetch-frame-resource.https.html WPT orange and test_synthesized_response.js S4 orange CLOSED TREE
--HG--
extra : amend_source : 82d7af13e11137e614b0b1bd12f5af3108551bfc
2015-07-10 15:59:01 -07:00
Wes Kocher 14b97c87b1 Backed out changeset df6593df027b (bug 1173912) 2015-07-10 15:58:24 -07:00