Commit Graph

2099 Commits

Author SHA1 Message Date
Mike Hommey
3ef8be4fa4 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
c319a7d58c Bug 1189668 - Check CSP before completing channel interception. r=ehsan 2015-09-20 00:32:14 -07:00
Kit Cambridge
f81945138a Back out bug 1205109 for Push mochitest failure. 2015-09-18 18:15:23 -07:00
Kit Cambridge
4a66df9bd2 Bug 1205109 - Make pushsubscriptionchange extendable. r=mt,nsm 2015-09-17 05:15:45 -07:00
Kit Cambridge
7be88fe195 Bug 1205112 - Make PushEvent.data nullable. r=mt,smaug 2015-09-17 05:13:04 -07:00
Kit Cambridge
2ce3628b0c Bug 1149195 - Expose push message data accessors. r=nsm,dragana,smaug 2015-09-17 05:10:42 -07:00
Nikhil Marathe
ecee206db3 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
2015-09-15 12:58:32 -07:00
Carsten "Tomcat" Book
a4ed3b54c3 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
18ad8c69ce Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley 2015-09-16 19:42:00 +02:00
Albert Crespell
a6b399a434 Bug 1182113 - Test XSLT serviceworker load. r=bkelly 2015-09-10 12:42:02 +02:00
Phil Ringnalda
e9e29e9a15 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
09b4a9e997 Bug 1203427 (part 5) - Add logging of timer firings. r=froydnj. 2015-09-10 00:50:51 -07:00
Ehsan Akhgari
29b0b79580 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
fd83944cf9 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
3cf853e5af Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi 2015-09-16 19:15:30 -04:00
Andrea Marchesini
5a283a399e Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
Shu-yu Guo
45211869c8 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
a3c07b4f0e Backed out changeset ccfddcbccdac (bug 1204775) for sharedworker bustage 2015-09-15 11:08:09 -07:00
Ben Kelly
6283db5b91 Bug 1203680 P5 Make ServiceWorkerManager ensure channel upload stream is cloneable. r=nsm 2015-09-15 10:15:45 -07:00
Ben Kelly
02082548f3 Bug 1203680 P1 Test file blob uploads with service worker interception. r=nsm 2015-09-15 10:15:45 -07:00
Andrea Marchesini
19c794ab70 Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 00:47:19 +08:00
Wes Kocher
6fc13b52da 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
ac4315cafc 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
f9c97393bc Bug 1203680 P5 Make ServiceWorkerManager ensure channel upload stream is cloneable. r=nsm 2015-09-14 12:04:56 -07:00
Ben Kelly
626a4f47d1 Bug 1203680 P1 Test file blob uploads with service worker interception. r=nsm 2015-09-14 12:04:56 -07:00
Ehsan Akhgari
92d400bf61 Bug 1204397 - Part 2: Recover from a double negative trap, r=me 2015-09-14 14:22:49 -04:00
Nikhil Marathe
247d6d8297 Bug 1197012 - Fix ThrowTypeError in Notification. r=mccr8 2015-08-20 22:18:49 -07:00
Ehsan Akhgari
dbd40dd8c6 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
04a9feca9d 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
f20336e5e1 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
62fb3b59cc 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
0d9fb0ddb0 Bug 1198451 - Disambiguate mozilla::dom::Function from mozilla::Function. r=froydnj 2015-09-11 17:25:23 -04:00
Wes Kocher
88d59aebcd Backed out changeset 132aa442af95 (bug 1198544) for browser_ManifestObtainer_obtain.js failures CLOSED TREE 2015-09-11 11:53:52 -07:00
Josh Matthews
e536bbe2eb 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
0a80cc1f8c 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.
2015-09-10 08:02:30 -07:00
Nikhil Marathe
56a9c419d8 Bug 1198230 - Respect FetchEvent.preventDefault(). r=jdm
Update web-platform-tests expected data
2015-09-04 12:00:24 -07:00
Ehsan Akhgari
fa9656d2f2 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
267c8a8f95 Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-09 07:54:33 -04:00
Ehsan Akhgari
b339111aa0 Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm 2015-09-09 07:53:50 -04:00
Nigel Babu
b79169e877 Backed out changeset 3555d4b1ab1e (bug 815299) for M4 bustage. 2015-09-09 09:12:31 +05:30
Nigel Babu
fe0cc1ec50 Backed out changeset 0a2a9972b4c7 (bug 815299) for M4 bustage. 2015-09-09 09:12:28 +05:30
Nigel Babu
4c832dd2e9 Backed out changeset 9f3adfd2ca52 (bug 815299) for M4 bustage. 2015-09-09 09:12:24 +05:30
Ehsan Akhgari
006853f369 Bug 815299 - Part 4: Address jdm's review comments 2015-09-08 20:38:33 -04:00
Ehsan Akhgari
d276611ff2 Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-08 20:08:32 -04:00
Ehsan Akhgari
86169e290f Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm 2015-09-08 20:08:31 -04:00
Andrea Marchesini
3fd0f70ba7 Bug 1198814 - Use StructuredCloneHelper in PromiseWorkerProxy, r=smaug 2015-09-05 12:22:13 +03:00
Nikhil Marathe
17f9c6955f 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.
2015-09-02 10:07:26 -07:00
Andrea Marchesini
fa931b8f4f Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug 2015-09-02 17:20:30 +01:00
Ben Kelly
9f3e48cb12 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
6fa0c8de16 Bug 1184967 P1 Set RequestMode based on LoadInfo securityMode and client request content policy. r=nsm 2015-09-01 07:58:34 -07:00