Commit Graph

40955 Commits

Author SHA1 Message Date
Ryan VanderMeulen
d5084fda2d Merge inbound to m-c. a=merge 2015-08-13 10:43:42 -04:00
Jean-Yves Avenard
9baf704f1b Bug 1190238: P3. Do not loop calling MediaResource::Read or ReadAt, let MediaResourceIndex do it for us. r=cpearce
This allows to remove a fair amount of duplicated logic.
Most of it is in obsoleted code though.
2015-08-13 15:27:10 +10:00
Jean-Yves Avenard
5f8b09b58e Bug 1190238: P2. Have MediaResourceIndex::ReadAt() only stop early when reaching EOS or error. r=cpearce
MediaResource::ReadAt() requires to loop several times to ensure that all data has been read as it may return less data than requested.
This will allow to remove the handling of this particular shortcoming in MediaResources' users.
2015-08-13 15:27:09 +10:00
Jean-Yves Avenard
b55f0cf63a Bug 1190238: P1. Remove MediaResource::Read/Seek. r=cpearce
This functionality is now replaced with a dedicated new MediaResourceIndex class.
This allows for concurrent Read/Seek use of the MediaResource without having side effects.
2015-08-13 15:27:09 +10:00
Jamin Liu
8ce6e533bb Bug 1192695 - Use pref instead of pre-defined C string as origin of bluetooth app. r=btian 2015-08-13 12:56:09 +08:00
Jim Chen
d1f529698f Bug 1192077 - Convert AndroidBridge JNIEnv calls; r=esawin 2015-08-13 00:53:39 -04:00
Francois Marier
2a4ad76933 Bug 992096 - Implement Sub Resource Integrity [2/2]. r=ckerschb
Mochitests
2015-08-12 20:19:16 -07:00
Francois Marier
34de332db0 Bug 992096 - Implement Sub Resource Integrity [1/2]. r=baku,r=ckerschb
Code changes
2015-08-12 20:19:11 -07:00
JW Wang
42dfd9d8d2 Bug 1191192 - Add DecodedStream::SetSameOrigin(). r=roc. 2015-08-13 09:22:59 +08:00
Wes Kocher
928a195f43 Merge inbound to central, a=merge 2015-08-12 15:16:16 -07:00
Fabrice Desré
16dfbc45e6 Bug 1129882 - backout 9c6fde246f6e and 847b57aaeff7 for causing 1193840 on a CLOSED TREE r=szchen, r=htsai 2015-08-12 14:35:41 -07:00
Ryan VanderMeulen
51207442bd Backed out changesets 41e3f27dd893 and efaeac1575a1 (bug 1186273) for causing frequent test_fs_app_permissions.html timeouts.
CLOSED TREE
2015-08-12 16:23:38 -04:00
Andrew Osmond
06cdecf31c Bug 1186273 - Part 2. Improve reuse of and releasing of device storage objects where appropriate. r=dhylands 2015-07-21 21:08:56 -04:00
Andrew Osmond
bc2720df67 Bug 1186273 - Part 1. Move preferences and observers into dedicated threadsafe module. r=dhylands 2015-07-21 17:15:56 -04:00
Ryan VanderMeulen
125f61c64f Merge inbound to m-c. a=merge 2015-08-12 10:47:17 -04: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
Fabrice Desré
a3cecb5ae0 Bug 1191579 - Remove useless getAll() implementation in Webapps.jsm 2015-08-06 07:43:59 -07:00
Wes Kocher
ed8142204a Merge b2ginbound to central, a=merge 2015-08-11 15:46:08 -07:00
Ryan VanderMeulen
dc95876ffe Backed out changeset ecebeba2582c (bug 1008146) for making imptests on Android/B2G nearly permafail.
CLOSED TREE

--HG--
rename : dom/imptests/editing/conformancetest/run/test_unlink.html => dom/imptests/editing/conformancetest/test_runtest.html
2015-08-11 14:48:24 -04:00
Birunthan Mohanathas
9067fe58d8 Backed out changeset 1e13c9c09273 (bug 1105827)
CLOSED TREE
2015-08-11 10:04:36 -07:00
Birunthan Mohanathas
e0592c3416 Backed out changeset 92d2843b5938 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
02595ce842 Backed out changeset fc34b9b8e874 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
8eab0f2e68 Backed out changeset 7ee1772ffc10 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas
af382947b1 Backed out changeset b78a97800675 (bug 1105827) 2015-08-11 10:04:35 -07:00
Kyle Machulis
6ed5a2c6c8 Bug 1192787 - Readd performance enabled test to ResponseEndHighRes; r=baku 2015-08-11 08:54:52 -07:00
Jan de Mooij
eed2b5bfff Bug 1185653 - Fix enumerate hook on unboxed objects to skip non-enumerable properties. r=jorendorff
--HG--
extra : rebase_source : 4f359cb0b34ee5a92afcb983ec765c92eaa1d162
2015-08-11 17:42:56 +02:00
Terrence Cole
2c05aff66d Bug 1193032 - Part 2: Make unlimited SliceBudget initialization explicit; r=ehoogeveen,r=mccr8 2015-08-11 08:42:24 -07:00
Will Wang
9fd88cded3 Bug 825149 - Support HFP NREC feature. r=shuang 2015-08-10 04:51:00 -04:00
Will Wang
80bbaca7f1 Bug 825149 - Add NREC feature bit in bluetooth stack. r=shuang 2015-08-07 03:15:00 -04:00
Alastor Wu
63a6ffdf2e Bug 1129882 - Add mozInterrupt in telephony object. r=baku 2015-08-10 17:23:33 +08:00
Birunthan Mohanathas
2b4a52cf2e Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj 2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
edbcd5e014 Bug 1185763 - Part 1: Always use mozilla::Move with nsTArray::MoveElementsFrom. r=froydnj 2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
a727c82e51 Bug 1192023 - Make UpdateType an enum class. r=khuey 2015-08-06 14:34:39 -07:00
Birunthan Mohanathas
752bf80bb4 Bug 1192023 - Use enum class instead of CheckpointMode_ prefix. r=khuey 2015-08-06 14:34:35 -07:00
Birunthan Mohanathas
69151f6831 Bug 1192023 - Flatten away AppId enum. r=khuey 2015-08-06 14:34:33 -07:00
Birunthan Mohanathas
e95e1e7d13 Bug 1192023 - Use enum class instead of MaintenanceAction_ prefix. r=khuey 2015-08-06 14:34:29 -07:00
Birunthan Mohanathas
9f71a11dba Bug 1192023 - Use enum class instead of State_ prefix. r=khuey 2015-08-06 14:34:27 -07:00
Birunthan Mohanathas
39a3ef841c Bug 1105827 - Part 10: Fire change event for PermissionStatus objects. r=baku 2015-07-31 15:57:02 -07:00
Birunthan Mohanathas
fd1e77d8fa Bug 1105827 - Part 9: Add PermissionObserver to watch for perm-changed notifications. r=baku 2015-07-31 15:53:46 -07:00
Birunthan Mohanathas
7b8a267e19 Bug 1105827 - Part 8: Move permission checking into PermissionStatus. r=baku
This is in prepartion of a subsequent change where we will update the state
within PermissionStatus.
2015-07-31 15:53:10 -07:00
Birunthan Mohanathas
d6ccefe440 Bug 1105827 - Part 7: Add helpers to convert between PermissionName and permission type. r=baku 2015-07-31 15:49:59 -07:00
Birunthan Mohanathas
a1f31ea066 Bug 1105827 - Part 6: Add PermissionUtils.h for helper functions. r=baku 2015-07-31 15:49:55 -07:00
Kyle Huey
0bb53e0280 Bug 1179909: Build fix. r=me CLOSED TREE 2015-08-11 07:38:01 -07:00
Kit Cambridge
72909621aa Back out bug 1100863 and bug 1152264 for causing bug 1189729 on a CLOSED TREE. a=mhenretty,RyanVM
--HG--
extra : commitid : Knw3n5aF6IT
2015-08-11 07:30:38 -07:00
Kyle Huey
baee6469c5 Bug 1179909: Build fix. r=me CLOSED TREE 2015-08-11 06:54:49 -07:00
Bobby Holley
3d7a75d98d Bug 1190495 - Followup #include fix. r=me 2015-08-11 09:40:02 -04:00
Brian R. Bondy
7bf8055bf0 Bug 1189494 - Pass tracking information to BrowserElement's mozbrowsersecuritychange event. r=fabrice 2015-08-10 16:59:59 -04: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
Bobby Holley
f97159c6b7 Bug 1190495 - Hoist TaskQueue into xpcom. r=froydnj
--HG--
rename : dom/media/TaskQueue.cpp => xpcom/threads/TaskQueue.cpp
rename : dom/media/TaskQueue.h => xpcom/threads/TaskQueue.h
2015-08-11 08:55:22 -04:00
Bobby Holley
2f4346b111 Bug 1190495 - Switch TaskQueue entirely to nsRefPtr. r=cpearce 2015-08-11 08:55:21 -04:00