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

7465 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Nicholas Nethercote c8ff2d51c8 Bug 1159972 - Remove the fallible version of PL_DHashTableInit(). r=froydnj.
It's no longer needed now that entry storage isn't allocated there. (The other
possible causes of failures in that function are less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible, so I removed some
now-unnecessary checks of its result.

--HG--
extra : rebase_source : 4c6ab0c449bc18e8bace8bf036b5bd78d3a2f1c4
2015-04-29 16:38:29 -07:00
Brian Birtles a606228cd8 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly. r=smaug 2015-04-30 09:06:43 -04:00
Carsten "Tomcat" Book b05d97c166 Backed out changeset 1b5fc672f0d4 (bug 1159082) for B2G ICS Emulator opt R6 test failures on a CLOSED TREE
--HG--
rename : dom/animation/AnimationEffectReadOnly.cpp => dom/animation/AnimationEffectReadonly.cpp
rename : dom/animation/AnimationEffectReadOnly.h => dom/animation/AnimationEffectReadonly.h
rename : dom/webidl/AnimationEffectReadOnly.webidl => dom/webidl/AnimationEffectReadonly.webidl
2015-04-30 13:15:04 +02:00
Brian Birtles 4fb166f6b2 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly; r=smaug
--HG--
rename : dom/animation/AnimationEffectReadonly.cpp => dom/animation/AnimationEffectReadOnly.cpp
rename : dom/animation/AnimationEffectReadonly.h => dom/animation/AnimationEffectReadOnly.h
rename : dom/webidl/AnimationEffectReadonly.webidl => dom/webidl/AnimationEffectReadOnly.webidl
extra : rebase_source : 5fb31684bf494a57e208d0cfbbc76f65b502fc0e
2015-04-28 10:16:45 +09:00
Tooru Fujisawa 0edbeb71c8 Bug 1102219 - Part 5: Replace more `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
ziyunfei e1db0f779e Bug 1102219 - Part 4: Replace `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till 2015-04-30 00:32:05 +09:00
Carsten "Tomcat" Book 417e0f4ed6 Backed out changeset a7aab0099e9e (bug 1129040) 2015-04-29 16:51:32 +02:00
Jim Mathies 9769b139a7 Bug 1129040 - Query the chrome process blocklist service prior to instantiating plugins in the content process. r=billm 2015-04-29 06:33:10 -05:00
Bob Owen 06a0b5985d Bug 1156059 Part 1: Ignore META REFRESH when document is sandboxed from automatic features. r=bz 2015-04-29 07:28:17 +01:00
Cameron McCormack 66534e75d7 Bug 1157150 - Add nsDOMWindowUtils.postRestyleSelfEvent method, for use in tests. r=smaug 2015-04-29 14:47:14 +10:00
Wes Kocher 2dd76b5a8a Backed out changeset d53d91a3fae7 (bug 1155547) for b2g xpcshell orange CLOSED TREE 2015-04-28 13:40:49 -07:00
Boris Zbarsky 864f723c0c Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv 2015-04-28 12:25:55 -04:00
Chih-Kai (Patrick) Wang 4e8def4afd Bug 1155547 - Wait Nuwa forking a process if preallocated process isn't present. r=khuey 2015-04-29 00:22:44 +08:00
Matt Woodrow fa7ac228d2 Bug 1151611 - Expose DXVA status in about:support. r=cpearce,felipe
--HG--
extra : rebase_source : e65d849641d33218d9ee2b9bb6eeafb602a6f8e6
2015-04-28 15:07:22 +12:00
Bill McCloskey d6da985b93 Bug 1155789 - Fail if sending a CPOW in parent when no CPOW manager exists (r=dvander) 2015-04-27 19:45:18 -07:00
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Nikhil Marathe 828e83e703 Bug 1058695 - Add member to nsIGlobalObject to detect it is going away. Make promises use it. r=bholley
--HG--
extra : rebase_source : 001f43d9e08768111f8ece44f79ae3ab689e2fb6
extra : amend_source : 8b89c86ded224c90aa428cdfb24d25959c87b32b
2015-04-27 12:00:41 -07:00
Ryan VanderMeulen cb4391caa6 Backed out changeset c839f283bf28 (bug 1058695) for bustage.
CLOSED TREE
2015-04-27 14:04:24 -04:00
Nikhil Marathe 6e7fc932d3 Bug 1058695 - Add member to nsIGlobalObject to detect it is going away. Make promises use it. r=bholley
--HG--
extra : rebase_source : 3b3909b843efa2150edfcd79a6399535a12bd5aa
2015-04-22 16:34:21 -07:00
Boris Zbarsky 34d521e285 Bug 1155984. Improve the performance of the "self" getter in both window and workers. r=peterv,jorendorff 2015-04-27 13:38:12 -04:00
Ehsan Akhgari 77fa04c499 Bug 1158442 - Remove the "Performance Entry buffer size maximum reached" warning; r=baku
This happens far too often in our tests.  For example, in our
mochitest-3 debug mac test, we hit this warning 4,472 times.

At this point, this warning is only adding unneeded noise, slowing down
the tests and increasing the size of the logs unnecessarily.  Let's
remove it.
2015-04-27 13:08:27 -04:00
Boris Zbarsky d36060dc11 Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 1e816696de Bug 1157898 part 4. Add ErrorResult::ErrorCodeIs() and use it in various places to get rid of ErrorCode(). r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 839141fb74 Bug 1157898 part 3. Fix the remaining consumers of rv.ErrorCode() in NS_ENSURE_* expressions to not do that. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 418f0f69c3 Bug 1157898 part 2. Make code of the form "NS_ENSURE_SUCCESS(rv.ErrorCode(), rv.ErrorCode());" use Failed and StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/NS_ENSURE_SUCCESS\(([a-zA-Z0-9]+)\.ErrorCode\(\), \1.ErrorCode\(\)\);/NS_ENSURE_TRUE(!\1.Failed(), \1.StealNSResult());/'
2015-04-27 09:18:52 -04:00
Boris Zbarsky 1540774b0c Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Andrea Marchesini 3c8ee378d5 Bug 1158437 - dom::File should accept negative date values, r=smaug 2015-04-27 12:17:19 +01:00
Carsten "Tomcat" Book 596e5f9960 merge fx-team to mozilla-central a=merge 2015-04-27 12:34:03 +02:00
Carsten "Tomcat" Book 107708af7c merge mozilla-inbound to mozilla-central a=merge 2015-04-27 12:00:14 +02:00
Felipe Gomes 498ebe1874 Bug 1158270 - Plugins can't run if e10s is force-disabled. r=jmathies 2015-04-26 20:55:39 -03:00
Andrea Marchesini f2a283777b Bug 1125205 - Display console API messages from shared or service workers to the web console, r=past 2015-04-26 09:37:59 +01:00
Ehsan Akhgari 00b78c0497 Bug 1158537 - Remove unneeded FileImplTemporaryFileBlob::{mLength,mContentType} members; r=baku
The FileImplBase base class has protected mLength and mContentType
members that this class can use.  These are currently just masking those
base members.
2015-04-25 18:34:38 -04:00
Ryan VanderMeulen f3ed6bc015 Merge m-c to b2g-inbound. a=merge
CLOSED TREE

--HG--
extra : amend_source : 2425dc5061db26757ca738a5a739ddc5614947f5
2015-04-24 16:06:05 -04:00
Sotaro Ikeda 96062ef95d Bug 1154411 - Do not close same fd twice r=bent 2015-04-24 06:18:13 -07:00
Kevin Wern cad494d874 Bug 1148694 patch 2 - Remove interface and implementation of CSSCharsetRule. r=dbaron 2015-04-21 00:08:36 -07:00
Kershaw Chang fe8477c8dc Bug 1035748 - WebIDL for DeviceStorageAreaChangedEvent. r=bz 2015-04-23 19:35:00 -04:00
Wes Kocher 94244970a7 Backed out changeset a12f0f05779c (bug 1125205) for dt4 failures CLOSED TREE 2015-04-24 13:06:46 -07:00
Bob Owen 506176bc61 Bug 1157760: Remove incorrect MOZ_ASSERT in nsMessageManagerSH<Super>::Enumerate. r=bz 2015-04-24 08:25:19 +01:00
Kyle Machulis 358e55b5b7 Bug 852944 - Gamepad API IPC; r=ted, r=baku
--HG--
extra : rebase_source : 34ca0c1e1b7fcc312b5d7c97d5bd2086af2bc7ce
2015-04-23 15:05:29 -07:00
Kartikaya Gupta cd5b55f8d6 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Doug Turner 1803c2eea5 Bug 1157108 - onpush EventHandler support. r=ehsan 2015-04-23 20:43:40 +02:00
Nikhil Marathe d1232d5041 Backed out changeset cb59db723d15 (Bug 1058695) for bustage on CLOSED TREE
--HG--
extra : amend_source : 273b62b6c171f65718e8c59e833ba30f6ea96a05
2015-04-23 09:46:52 -07:00
Nikhil Marathe 8bec017e97 Bug 1058695 - Add member to nsIGlobalObject to detect it is going away. Make promises use it. r=bholley 2015-04-22 16:34:21 -07:00
Nikhil Marathe 75b0dfb4c7 Backed out changeset 527cd70f241f (Bug 1058695) for bustage 2015-04-23 09:07:16 -07:00
Nikhil Marathe e653803d27 Bug 1058695 - Add member to nsIGlobalObject to detect it is going away. Make promises use it. r=bholley
--HG--
extra : transplant_source : %86%8A%E1%E1%98c%E9w%81%3DS%84%B1%3A%02bU%8D%7B%C7
2015-04-22 16:34:21 -07:00
Brad Lassey 28c02c6d98 bug 1155976 - Loading plugins in a non-e10s window hangs the browser on Mac r=jimm 2015-04-22 21:29:21 -04:00
Carsten "Tomcat" Book 8c20d6ac92 Merge mozilla-central to mozilla-inbound 2015-04-23 15:55:19 +02:00
Carsten "Tomcat" Book ad1045aa02 merge mozilla-inbound to mozilla-central a=merge 2015-04-23 15:41:03 +02:00
Wes Kocher 1974bec813 Merge m-c to b2ginbound a=merge 2015-04-22 17:26:08 -07:00
Fabrice Desré f2e774cb9a Bug 1157028 - Add feature detection for OpenMobile r=ehsan 2015-04-22 14:21:44 -07:00
Neil Deakin b9f7c92db7 Bug 1157193, fix null pointer check when dragging images, r=smaug 2015-04-22 15:18:22 -04:00
Eric Rahm ac0902bb98 Bug 1155371 - Include DOMMediaStream and MediaSource object URLs in memory reports. r=khuey 2015-04-16 16:20:03 -07:00
Mark Finkle 65beaee4c9 Bug 1154960 - Fennec should explicitly block the DOM SiteSpecificUserAgent.js file from packaging r=nalexander 2015-04-22 02:01:32 -04:00
Sylvestre Ledru 88ebaa2020 Bug 1156662 - Identical code for different branches. r=bz
--HG--
extra : rebase_source : 4722a8dbf198f05090370235f811dccb35ce658c
2015-04-21 18:37:34 +02:00
Seth Fowler ae663e5c87 Bug 1145439 (Part 1) - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-21 09:44:40 -07:00
Valentin Gosu 61d0725d6d Bug 1139831 - end timestamps are before start timestamps. r=baku
--HG--
extra : rebase_source : d36cca3ac5c193427f1da3df2ec4e5f195a25ab2
2015-04-16 03:53:44 +03:00
Milan Sreckovic aaa5e8c9d6 Bug 404828 - No need to assert that the top window isn't reachable. r=smaug
--HG--
extra : rebase_source : 6498180662e7b38c0dc47886788a44c3219b7d0a
2015-04-17 16:37:54 -04:00
Bill McCloskey 9233d0ea6f Bug 1155224 - Add targetFrameLoader property to messages (r=smaug) 2015-04-20 23:32:59 -07:00
Brian Birtles c04588b2f3 Bug 1154615 part 8 - Rename references to players in animation observers; r=jwatt 2015-04-21 10:22:10 +09:00
Brian Birtles 13834006d7 Bug 1154615 part 6 - Rename references to players within layout/; r=jwatt
We will rename CSSAnimationPlayer/CSSTransitionPlayer in a separate patch
2015-04-21 10:22:10 +09:00
Brian Birtles 8f5fbac8a9 Bug 1154615 part 5 - Rename AnimationPlayerCollection to AnimationCollection; r=jwatt 2015-04-21 10:22:10 +09:00
Brian Birtles 4f7bf25c27 Bug 1154615 part 2 - Rename PendingPlayerTracker to PendingAnimationTracker; r=jwatt
This patch also updates the method names on PendingAnimationTracker but leaves
a number of local variables which will be fixed in a subsequent patch.

--HG--
rename : dom/animation/PendingPlayerTracker.cpp => dom/animation/PendingAnimationTracker.cpp
rename : dom/animation/PendingPlayerTracker.h => dom/animation/PendingAnimationTracker.h
2015-04-21 10:22:09 +09:00
Brian Birtles 5c7929fd2a Bug 1154615 part 1 - Rename AnimationPlayer to Animation in WebIDL; r=smaug
This patch is a fairly minimal rename of the AnimationPlayer interface. It
leaves a bunch of local variables and helper classes still using the word
"player". These will be addressed in subsequent patches that don't require DOM
peer review.

--HG--
rename : dom/animation/AnimationPlayer.cpp => dom/animation/Animation.cpp
rename : dom/animation/AnimationPlayer.h => dom/animation/Animation.h
rename : dom/webidl/AnimationPlayer.webidl => dom/webidl/Animation.webidl
2015-04-21 10:22:09 +09:00
Aaron Klotz 3f3f2b653b Bug 1155241: Check mInstanceOwner for nullptr in nsObjectLoadingContent::PluginDestroyed; r=smaug
--HG--
extra : rebase_source : 5b4df8f97b767da1ebebe116fd445a0a5a3c6f96
2015-04-15 16:24:28 -06:00
Ehsan Akhgari d01a70af06 Bug 1156010 - Mark nsINode::mParent as MOZ_OWNING_REF; r=smaug 2015-04-20 15:39:52 -04:00
Denis Volk 32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Ehsan Akhgari 2a677b9b4c Bug 1156102 - Mark nsGlobalWindowObserver::mWindow as MOZ_NON_OWNING_REF; r=baku 2015-04-20 08:35:39 -04:00
Ehsan Akhgari ffa720a08a Bug 1156101 - Mark nsGlobalWindow::mObserver as an nsRefPtr; r=baku 2015-04-20 08:35:38 -04:00
Ehsan Akhgari 2616c54a39 Bug 1156099 - Mark the atom members of NodeInfo as nsCOMPtr's; r=baku
Turns out I was wrong, and they are really owning references.
2015-04-20 08:35:36 -04:00
Botond Ballo daec5fa621 Bug 1152479 - Extract the implementations of nsIDOMWindowUtils::Send{KeyEvent,MouseEvent} into nsContentUtils. r=ehsan
--HG--
extra : source : aad21c8ed32449d467c1b145a92c5d92e42a5ea4
2015-04-15 03:08:55 -04:00
Ted Mielczarek 3a7c11fc1a bug 1155691 - Expose WindowRoot to chrome from window in webidl. r=smaug
--HG--
extra : rebase_source : ecacc739c8b642faf0e26e19c2a62d2f9e180cc4
2015-04-17 16:17:26 -04:00
Ehsan Akhgari 57b27e928d Bug 1156013 - Mark nsINode::mSubtreeRoot as MOZ_NON_OWNING_REF; r=baku 2015-04-19 08:38:39 -04:00
Ehsan Akhgari a20acbff52 Bug 1156012 - Mark nsINode::m{Next,Previous}Sibling as MOZ_NON_OWNING_REF; r=baku 2015-04-19 08:38:37 -04:00
Ehsan Akhgari e9aa123252 Bug 1156011 - Mark nsINode::mFirstChild as MOZ_NON_OWNING_REF; r=baku 2015-04-19 08:38:34 -04:00
Ehsan Akhgari def99ac384 Bug 1156009 - Mark nsChildContentList::mNode as MOZ_NON_OWNING_REF; r=baku 2015-04-19 08:38:31 -04:00
Ehsan Akhgari 0ca533f5b9 Bug 1156006 - Mark NodeInfo::mDocument as MOZ_NON_OWNING_REF; r=baku 2015-04-19 08:38:29 -04:00
Ehsan Akhgari 1eef7c52ff Bug 1156005 - Mark the nsIAtom members of NodeInfo::NodeInfoInner as MOZ_NON_OWNING_REF; r=baku 2015-04-19 08:38:26 -04:00
Aryeh Gregor 84b6c03d3a Bug 1147412 part 9 - Convert some nsHTMLEditor members to Element; r=ehsan 2015-04-19 15:28:50 +03:00
Ehsan Akhgari a246a36f7c Bug 1154679 - Part 1: Remove the usage of is_loosely from test_domrequesthelper.xul; r=Ms2ger 2015-04-18 19:10:17 -04:00
Jim Blandy ebd83c9a61 Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Ryan VanderMeulen dd1120e715 Merge m-c to inbound. a=merge
CLOSED TREE
2015-04-17 16:11:58 -04:00
Ryan VanderMeulen 86aee22968 Merge inbound to m-c. a=merge
--HG--
rename : toolkit/modules/tests/browser/browser_AddonWatcher.js => toolkit/components/perfmonitoring/tests/browser/browser_AddonWatcher.js
2015-04-17 15:44:37 -04:00
Ehsan Akhgari 631c185989 Bug 1155477 follow-up: Fix nsINode::ChildNodes()
Landed on a CLOSED TREE to fix bustage
2015-04-17 11:49:59 -04:00
Ehsan Akhgari 99656e22f2 Bug 1155486 - Convert nsDOMAttributeMap::mLocalName to void* to ensure that we can never dereference it; r=baku 2015-04-17 11:15:15 -04:00
Ehsan Akhgari 84769de78a Bug 1155477 - Convert nsINode::Slots::mChildNodes to an nsRefPtr; r=baku
MSVC 7 is no longer supported, so this can now be an nsRefPtr.
2015-04-17 11:15:13 -04:00
Ehsan Akhgari 74e1e2c975 Bug 1155475 - Mark nsINode::Slots::mWeakReference as MOZ_NON_OWNING_REF; r=baku 2015-04-17 11:14:49 -04:00
Ehsan Akhgari b4d32bd1d4 Bug 1155471 - Mark some members of nsNodeInfoManager as MOZ_NON_OWNING_REF; r=baku 2015-04-17 11:14:48 -04:00
Ehsan Akhgari 41df4b9686 Bug 1112469 - Part 1: Implement an XPCOM service responsible to trigger daily updates of service workers; r=nsm
--HG--
rename : dom/base/nsDOMCID.h => dom/workers/ServiceWorkerPeriodicUpdater.cpp
rename : dom/base/nsDOMCID.h => dom/workers/ServiceWorkerPeriodicUpdater.h
2015-04-17 13:59:49 -04:00
Cameron McCormack 9e48addb00 Bug 1155030 - Fix asterix/asterisk misspelling. r=ehsan 2015-04-17 11:09:58 +10:00
Neil Deakin af1ece91c4 Bug 1153248, re-enable a bunch of tests that now work with e10s, r=billm 2015-04-16 15:38:12 -04:00
Neil Deakin 98d9f35d1e Bug 1071562, e10s, support non-text types in clipboard (html, images, etc), r=smaug 2015-04-16 15:38:12 -04:00
Ryan VanderMeulen c8c9a859ef Merge m-c to b2g-inbound. a=merge 2015-04-16 16:22:42 -04:00
Bruce Sun c1123fbf68 Bug 1152653 - Implement BluetoothGatt.oncharacteristicchanged. r=jocelyn, r=mrbkap 2015-04-16 16:47:01 +08:00
Valentin Gosu f2c9e3a737 Bug 1149913 - Disable bug 1093611. Set pref dom.url.encode_decode_hash to true r=honzab 2015-04-16 05:25:10 +03:00
Boris Zbarsky 37e96c22d5 Bug 1154812. Fix location.pathname to return the right thing in workers. r=baku 2015-04-15 16:32:53 -04:00
David Anderson 804fa172b7 Make test_bug946632 compatible with asynchronous scrolling. (bug 1140293, r=mstange)
--HG--
extra : rebase_source : e4f027bbcef4ccf4241fd48701935d170401404f
2015-04-15 16:28:43 -04:00
Nathan Froyd 1e6cdad33c Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Botond Ballo 3cb90b0f6f Bug 1152479 - Assert IsCallerChrome() in some layout-related nsIDOMWindowUtils APIs. r=ehsan
--HG--
extra : rebase_source : 137e10ca1f6c01825cd352c1bd2bcff9c9bf9d1e
extra : source : 33e3ce1ae558eba912aad4487ff40d691ca4368e
2015-04-14 13:20:12 -04:00
Botond Ballo 148a784118 Bug 1152479 - Extract the implementations of layout-related nsIDOMWindowUtils APIs used by APZ into nsLayoutUtils. r=ehsan
--HG--
extra : rebase_source : 175254c3f78cd06bf72e2a25da12eff7a174f87e
extra : source : 0bf92001a2f715b5c20aefc039c30e926b9789c0
2015-04-14 13:19:10 -04:00
Daniel Holbert 9cdad8fda3 Bug 1154076 followup: Mark ConsoleRunnable::Run() as override. rs=ehsan 2015-04-15 10:05:40 -07:00
Andrea Marchesini aea9d1c12e Bug 1154076 - Console API must keep the Worker alive when the runnable to the main-thread is dispatched, r=bent 2015-04-15 11:46:40 +01:00
David Parks 9651c8065d Bug 1127727 - Swap callbacks in the Compositor when dragging tabs between windows. r=billm
When remote browsing, swap the MozLayersReady callback in the compositor
when dragging tabs between windows.

--HG--
extra : rebase_source : 717b8317bc3afbab7daa8856573d48b2ed5ca2cc
2015-04-13 17:06:03 -07:00
Geoff Brown 1fedc52d16 Bug 1133833 - Disable a few tests on Android 4.3 for intermittent failures; r=trivial 2015-04-14 21:05:40 -06:00
Paul Adenot af155473a0 Bug 1148354 - Deprecate the doppler effect from the PannerNode. r=ehsan 2015-04-16 15:35:19 +02:00
Bill McCloskey 14dc9ace94 Bug 1131375 - Fix message ordering for in-process message manager (r=smaug) 2015-04-14 17:04:26 -07:00
Brian Birtles 2d26fd38cb Bug 1153734 part 3 - Rename AnimationPlayer.source to AnimationPlayer.effect; r=smaug
There are still some other references to "source" in AnimationPlayer such as
HasInPlayerSource and UpdateSourceContent. These are renamed in a subsequent
patch (that doesn't require DOM peer review).
2015-04-15 08:48:21 +09:00
Brian Birtles 63e2382338 Bug 1153734 part 2 - Rename Animation to KeyframeEffectReadonly; r=smaug
We define KeyframeEffectReadonly in KeyframeEffect.cpp since Web Animations also
defines KeyframeEffect and when we come to implement that I expect we'll define
it in the same class, maybe even using the same object.

This patch also adds a few missing includes in places where
KeyframeEffectReadonly is used so that we're not just cargo-culting it in.

--HG--
rename : dom/animation/Animation.cpp => dom/animation/KeyframeEffect.cpp
rename : dom/animation/Animation.h => dom/animation/KeyframeEffect.h
rename : dom/animation/test/css-animations/test_animation-name.html => dom/animation/test/css-animations/test_effect-name.html
rename : dom/animation/test/css-animations/test_animation-target.html => dom/animation/test/css-animations/test_effect-target.html
rename : dom/animation/test/css-transitions/test_animation-name.html => dom/animation/test/css-transitions/test_effect-name.html
rename : dom/animation/test/css-transitions/test_animation-target.html => dom/animation/test/css-transitions/test_effect-target.html
rename : dom/webidl/Animation.webidl => dom/webidl/KeyframeEffect.webidl
2015-04-15 08:48:21 +09:00
Wes Kocher af34e14f2b Backed out changeset 050848a5273c (bug 1153988) for Windows build bustage CLOSED TREE 2015-04-14 14:42:59 -07:00
Nathan Froyd 4e3c075424 Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Kershaw Chang e81771306d Bug 1020179 - Let PContent manage PContentPermissionRequest. r=fabrice, r=khuey
--HG--
extra : rebase_source : dba5c4709942f8ad92fc6aa0ee76942247b08992
2015-04-13 21:08:00 -04:00
Kartikaya Gupta 5cf2d407fd Bug 1146349 - Make the native event synthesization functions in DOMWindowUtils async. r=smaug 2015-04-14 11:36:36 -04:00
Ryan VanderMeulen e75dc71bd7 Backed out changeset c2f12ead270c (bug 1131375) for Windows bustage.
CLOSED TREE
2015-04-14 10:55:59 -04:00
Bill McCloskey 0fe08fe004 Bug 1131375 - Fix message ordering for in-process message manager (r=smaug) 2015-04-14 07:18:33 -07:00
Ms2ger f1fc41b0e5 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
Masayuki Nakano 8c1890067d Bug 492394 part.1 NS_QUERY_CHARACTER_AT_POINT should also return tentative caret offset for the point r=smaug, sr=smaug 2015-04-14 14:27:37 +09:00
Nathan Froyd 2b1ae6e2ca Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan 2015-03-31 10:03:49 -04:00
Botond Ballo 353b27bbd9 Bug 1039818 - Extract the implementation of nsIDOMWindowUtils::GetResolution into nsLayoutUtils. r=ehsan 2015-04-10 19:33:56 -04:00
Olli Pettay c3dca4be1e Backout Bug 930793 because of talos regressions,r=backout
--HG--
extra : rebase_source : bf5d4de1b80e114d3e2172a205bf850f68019d38
2015-04-13 19:02:27 +03:00
Paul Adenot e32b404e54 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Jed Davis bf8f5ea54f Bug 1148650 - Strengthen assertion that RemoveScriptBlocker is called on the main thread. r=smaug
--HG--
extra : rebase_source : 4557e85fc86e0f61d45b956cc8a01c75a3db20c4
2015-04-08 15:36:00 +02:00
Jon Coppeard d68d8d5ba3 Bug 1149752 - Cancel GC caused by user inactivity if the user becomes active again r=terrence r=smaug 2015-04-13 16:42:41 +01:00
David Anderson 01d5761755 Fix tests that depend on synchronous scrolling. (bug 1140293, r=mstange,masayuki,kgilbert) 2015-04-13 00:51:43 -04:00
Brian Birtles 6b5fcefb36 Bug 1152171 part 2 - Rename AnimationTimeline to DocumentTimeline; r=smaug
And then re-add AnimationTimeline as an abstract super-interface of
DocumentTimeline.

--HG--
rename : dom/animation/AnimationTimeline.cpp => dom/animation/DocumentTimeline.cpp
rename : dom/animation/AnimationTimeline.h => dom/animation/DocumentTimeline.h
rename : dom/animation/test/animation-timeline/test_animation-timeline.html => dom/animation/test/document-timeline/test_document-timeline.html
rename : dom/animation/test/animation-timeline/test_request_animation_frame.html => dom/animation/test/document-timeline/test_request_animation_frame.html
2015-04-10 10:34:22 +09:00
Olli Pettay eb314fb48f Bug 930793 - Remove favor performance mode, r=avih,roc
--HG--
extra : rebase_source : a112b660baa240afd5f0022cd869c96b59418789
2015-04-12 23:08:55 +03:00
Ryan VanderMeulen d6b7600da5 Backed out changeset 2a040986845d (bug 1071562) for bustage.
CLOSED TREE
2015-04-10 13:14:33 -04:00
Neil Deakin 94848ffbe4 Bug 1071562, e10s, support non-text types in clipboard (html, images, etc), r=smaug 2015-04-10 12:51:06 -04:00
Mike Conley 95deb10a7e Bug 1088180 - Swap nsIBrowserDOMWindows when swapping remote frame loaders. r=smaug.
--HG--
extra : amend_source : 4b2a8f7c26dd27c5dcea24955d77e2924c1d2c8f
2015-04-09 17:55:07 -04:00
Ryan VanderMeulen ea5c01418c Merge m-c to inbound. a=merge
CLOSED TREE
2015-04-09 23:00:24 -04:00
Ryan VanderMeulen a59888777c Backed out changeset 3366d180e8ee (bug 1145439) for test_scroll_event_ordering.html failures. 2015-04-09 22:59:10 -04:00
Ryan VanderMeulen 23b2440390 Merge inbound to m-c. a=merge 2015-04-09 22:43:57 -04:00
Seth Fowler c432df0af0 Bug 1145439 - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-09 17:52:23 -07:00
Cameron McCormack acd763f9f6 Bug 1149042 - Call AttributeWillChange before a style="" attribute gets created when touching element.style. r=smaug 2015-04-10 10:41:35 +10:00
James Cheng d7b40ea760 Bug 1026350 - Part 1: Inputport API implementation. r=baku 2015-04-08 03:07:00 -04:00
Ryan VanderMeulen 016b169721 Merge m-c to b2g-inbound. a=merge 2015-04-09 12:08:54 -04:00
Thomas Zimmermann 053dba23b3 Bug 1146355: Prepare build system to support Bluetooth APIs v1 and v2, r=shuang
This patch adds support for both Bluetooth interfaces to the build
system. The actual interface must be selected at compile time.
2015-04-09 15:57:40 +02:00
Thomas Zimmermann 5b0221d66d Bug 1146355: Move Bluetooth legacy interface into sub-directory bluetooth1/, r=joliu
--HG--
rename : dom/bluetooth/BluetoothAdapter.cpp => dom/bluetooth/bluetooth1/BluetoothAdapter.cpp
rename : dom/bluetooth/BluetoothAdapter.h => dom/bluetooth/bluetooth1/BluetoothAdapter.h
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/bluetooth1/BluetoothCommon.h
rename : dom/bluetooth/BluetoothDevice.cpp => dom/bluetooth/bluetooth1/BluetoothDevice.cpp
rename : dom/bluetooth/BluetoothDevice.h => dom/bluetooth/bluetooth1/BluetoothDevice.h
rename : dom/bluetooth/BluetoothHfpManagerBase.h => dom/bluetooth/bluetooth1/BluetoothHfpManagerBase.h
rename : dom/bluetooth/BluetoothHidManager.cpp => dom/bluetooth/bluetooth1/BluetoothHidManager.cpp
rename : dom/bluetooth/BluetoothHidManager.h => dom/bluetooth/bluetooth1/BluetoothHidManager.h
rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/bluetooth1/BluetoothInterface.cpp
rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/bluetooth1/BluetoothInterface.h
rename : dom/bluetooth/BluetoothInterfaceHelpers.cpp => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.cpp
rename : dom/bluetooth/BluetoothInterfaceHelpers.h => dom/bluetooth/bluetooth1/BluetoothInterfaceHelpers.h
rename : dom/bluetooth/BluetoothManager.cpp => dom/bluetooth/bluetooth1/BluetoothManager.cpp
rename : dom/bluetooth/BluetoothManager.h => dom/bluetooth/bluetooth1/BluetoothManager.h
rename : dom/bluetooth/BluetoothProfileController.cpp => dom/bluetooth/bluetooth1/BluetoothProfileController.cpp
rename : dom/bluetooth/BluetoothProfileController.h => dom/bluetooth/bluetooth1/BluetoothProfileController.h
rename : dom/bluetooth/BluetoothProfileManagerBase.h => dom/bluetooth/bluetooth1/BluetoothProfileManagerBase.h
rename : dom/bluetooth/BluetoothPropertyContainer.cpp => dom/bluetooth/bluetooth1/BluetoothPropertyContainer.cpp
rename : dom/bluetooth/BluetoothPropertyContainer.h => dom/bluetooth/bluetooth1/BluetoothPropertyContainer.h
rename : dom/bluetooth/BluetoothReplyRunnable.cpp => dom/bluetooth/bluetooth1/BluetoothReplyRunnable.cpp
rename : dom/bluetooth/BluetoothReplyRunnable.h => dom/bluetooth/bluetooth1/BluetoothReplyRunnable.h
rename : dom/bluetooth/BluetoothRilListener.cpp => dom/bluetooth/bluetooth1/BluetoothRilListener.cpp
rename : dom/bluetooth/BluetoothRilListener.h => dom/bluetooth/bluetooth1/BluetoothRilListener.h
rename : dom/bluetooth/BluetoothService.cpp => dom/bluetooth/bluetooth1/BluetoothService.cpp
rename : dom/bluetooth/BluetoothService.h => dom/bluetooth/bluetooth1/BluetoothService.h
rename : dom/bluetooth/BluetoothSocketObserver.h => dom/bluetooth/bluetooth1/BluetoothSocketObserver.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/bluetooth1/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/bluetooth1/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUuid.cpp => dom/bluetooth/bluetooth1/BluetoothUuid.cpp
rename : dom/bluetooth/BluetoothUuid.h => dom/bluetooth/bluetooth1/BluetoothUuid.h
rename : dom/bluetooth/ObexBase.cpp => dom/bluetooth/bluetooth1/ObexBase.cpp
rename : dom/bluetooth/ObexBase.h => dom/bluetooth/bluetooth1/ObexBase.h
rename : dom/bluetooth/ipc/BluetoothChild.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothChild.cpp
rename : dom/bluetooth/ipc/BluetoothChild.h => dom/bluetooth/bluetooth1/ipc/BluetoothChild.h
rename : dom/bluetooth/ipc/BluetoothMessageUtils.h => dom/bluetooth/bluetooth1/ipc/BluetoothMessageUtils.h
rename : dom/bluetooth/ipc/BluetoothParent.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothParent.cpp
rename : dom/bluetooth/ipc/BluetoothParent.h => dom/bluetooth/bluetooth1/ipc/BluetoothParent.h
rename : dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/bluetooth1/ipc/BluetoothServiceChildProcess.cpp
rename : dom/bluetooth/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/bluetooth1/ipc/BluetoothServiceChildProcess.h
rename : dom/bluetooth/ipc/BluetoothTypes.ipdlh => dom/bluetooth/bluetooth1/ipc/BluetoothTypes.ipdlh
rename : dom/bluetooth/ipc/PBluetooth.ipdl => dom/bluetooth/bluetooth1/ipc/PBluetooth.ipdl
rename : dom/bluetooth/ipc/PBluetoothRequest.ipdl => dom/bluetooth/bluetooth1/ipc/PBluetoothRequest.ipdl
rename : dom/bluetooth/tests/marionette/head.js => dom/bluetooth/bluetooth1/tests/marionette/head.js
rename : dom/bluetooth/tests/marionette/manifest.ini => dom/bluetooth/bluetooth1/tests/marionette/manifest.ini
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_discovery.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_getters.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_getters.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_pair.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothAdapter_setters.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothManager_adapteradded.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothManager_adapteradded.js
rename : dom/bluetooth/tests/marionette/test_dom_BluetoothManager_enabled.js => dom/bluetooth/bluetooth1/tests/marionette/test_dom_BluetoothManager_enabled.js
2015-04-09 15:57:40 +02:00
Carsten "Tomcat" Book 31c4421faf Backed out changeset 7fc52c48e6e3 (bug 1094764) for mulet m-3 perma failure in /test_dataChannel_basicAudioVideo.html 2015-04-09 13:44:27 +02:00
Wes Kocher 6ec4b5852a Merge fx-team to m-c a=merge 2015-04-08 17:25:12 -07:00
Nick Fitzgerald 67317ac3db Bug 1151703 - Part 1: Add timeline tracing markers for HTML and XML parsing; r=smaug 2015-04-08 11:25:56 -07:00
Andrea Marchesini 4e17cd5e14 Bug 1151609 - WebSocket::CloseConnection must be thread-safe, r=smaug CLOSED TREE 2015-04-08 19:09:26 +01:00
Ryan VanderMeulen 1b034b250f Backed out changesets 33d37539c4ab and 55524bdeb708 (bug 936092) for suspicion of causing e10s test_bug417418.html asserts on Linux.
CLOSED TREE
2015-04-08 13:52:21 -04:00
Olli Pettay efdecf747e Bug 936092, initial DnD support for e10s, r=enndeakin,karlt
--HG--
extra : rebase_source : f0b1b0fa95dfa5fe16c09ebbc38618cf7c96654f
2015-04-08 18:30:03 +03:00
Carsten "Tomcat" Book 4861b6d51f Backed out changeset 1158acbea753 (bug 1140293) for frequent windows m-oth test failures in test_wheeltransaction.xul 2015-04-08 10:22:34 +02:00
Christoph Kerschbaumer e51f51d8da Bug 1147562 - Update remaining callsites of newChannel before landing the shim in dom/ (r=sicking) 2015-04-09 10:10:33 -07:00
Mike Conley d95fcd35e3 Bug 1148012 - Expose run ID through nsIObjectLoadingContent.idl. r=josh,smaug.
The run ID for a plugin is retrieved and cached in the nsObjectLoadingContent
on plugin instantiation.

--HG--
extra : rebase_source : d1e87b7751e6367c482b2420aa43bfadbce5e3e8
2015-03-17 13:28:32 -04:00
John Schoenick 46f4269b7a Bug 1139560 - Fix srcset parser 'After descriptor' state mishandling spaces. r=jst 2015-03-04 23:11:00 -05:00
John Schoenick 5b798a33e0 Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst 2015-03-04 23:09:00 -05:00
Ehsan Akhgari 7f2412ff3d Bug 1151873 - Unit test 2015-04-09 10:12:27 -04:00
Ehsan Akhgari 3a36f66164 Bug 1151873 - Stop forcing text/plain-only content being copied to the clipboard when an ancestor of the selected node has significant whitespace; r=roc
When fixing bug 116083, I didn't understand the purpose of the original
code correctly.  Setting mIsTextWidget to true will force a text/plain
MIME type, and therefore disabling the copying of any HTML content.  I
don't know why this path in the code used to exist, but it is basically
the cause of this bug, so we should remove it.
2015-04-09 09:45:33 -04:00
Paul Adenot 70b6a9e143 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Boris Zbarsky f6342f9c1f Bug 1149235 part 3. Store async requests in the scriptloader in two lists, so we don't have to grovel about looking for loaded ones. r=sicking 2015-04-08 22:50:46 -04:00
Boris Zbarsky c932d1e3d9 Bug 1149235 part 2. Switch to using linked lists for nsScriptLoadRequest. r=sicking 2015-04-08 22:50:45 -04:00
Boris Zbarsky 10ff4f3739 Bug 1149235 part 1. Move nsScriptLoadRequest into nsScriptLoader.h. r=sicking 2015-04-08 22:50:45 -04:00
Boris Zbarsky 3dbe43d96c Bug 1151940 part 3. Make some writable cssom-view attributes that we only allow setting from chrome act the way readonly replaceables would when called from content. r=smaug 2015-04-08 22:50:45 -04:00
Boris Zbarsky a00fe72fd2 Bug 1151940 part 2. Add a convenience function in nsGlobalWindow for replacing a property on the window with a new value. r=smaug 2015-04-08 22:50:45 -04:00
Wes Kocher db5ac7d39e Merge m-c to inbound a=merge 2015-04-08 17:33:36 -07:00
Olli Pettay aad5b35ad2 Bug 936092, initial DnD support for e10s, r=enndeakin,karlt
--HG--
extra : rebase_source : 070a9902f23d8b47e48ac0f972213815f8e4302c
2015-04-08 21:48:11 +03:00
Andrea Marchesini 2c3fcd702a Bug 1125205 - Display console API messages from Shared or Service Workers to the webconsole, r=past 2015-04-24 19:12:30 +01:00
Hiroyuki Ikezoe e3b17608f2 Bug 1157985 - Use getEntriesByName to search by name attribute. r=qdot 2015-04-23 17:41:00 -04:00
Jim Blandy 6afdd6c96b Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
--HG--
extra : rebase_source : d210822225d307f3e3685cb5f95b461c48c0be7e
2015-03-19 00:46:40 -07:00
Boris Zbarsky 9f8de4bfd5 Bug 1154366. Pass in a JSContext to StructuredCloneContainer::InitFromJSVal so it will throw its exceptions somewhere where people might see them. r=bholley 2015-04-16 13:22:15 -04:00
Boris Zbarsky 86b08ed9b5 Bug 1154598. Keep better track of our script requests. r=smaug 2015-04-16 13:22:02 -04:00
Masayuki Nakano f24ba16bfb Bug 1151186 part.1 Don't reset IME enabled state after focus is changed by JS during setting focus r=enndeakin 2015-04-08 11:50:12 +09:00
dvander@alliedmods.net d6e650ec3e Fix tests that depend on synchronous scrolling. (bug 1140293, r=mstange,masayuki,kgilbert) 2015-04-07 18:20:43 -07:00
Carsten "Tomcat" Book 7ef9b42c28 merge mozilla-central to mozilla-inbound IGNORE IDL
--HG--
extra : rebase_source : 294f0cad1bada4ebf38f24ff52ebbd7798de5912
extra : amend_source : d7b1044b736cf3e351efbef9610c83a14e6543ae
2015-04-22 16:09:56 +02:00
Andrea Marchesini 5c1e2ee932 Bug 1156632 - Remove unused forward class declarations - patch 1 - dom/base, r=ehsan 2015-04-22 08:29:15 +02:00
Olli Pettay e459a22bdc Bug 1013743, MutationObserver should observe only the subtree it is attached to, r=wchen
--HG--
extra : rebase_source : c66bb5a6c5bc81163c084ddee732becd471db40e
2015-04-21 17:58:29 -07:00
Ehsan Akhgari c65d93b69c Bug 1156880 - Null check the prescontext in nsDOMWindowUtils::AdvanceTimeAndRefresh; r=mstange 2015-04-21 14:22:46 -04:00
Christoph Kerschbaumer 3575125d2a Bug 921493 - CSP: test whitelisting of scheme-relative sources (r=dveditz)
--HG--
extra : rebase_source : 3f350bd1dc01b02a30356410eeaaaa6b8cc06137
2015-03-30 22:27:46 -07:00
Christoph Kerschbaumer 9eafc85845 Bug 1004703 - ignore 'unsafe-inline' if nonce- or hash-source specified - tests (r=sstamm)
--HG--
extra : rebase_source : 9d54e77df7b3d3a993eb775734e27958d936fd99
2015-04-07 09:06:22 -07:00
Ryan VanderMeulen 26300728c8 Merge m-c to inbound. a=merge
CLOSED TREE
2015-04-07 16:23:24 -04:00
Ryan VanderMeulen e2d5707a36 Merge inbound to m-c. a=merge 2015-04-07 15:47:40 -04:00
Andrea Marchesini 670fb6a86b Bug 1150805 - WorkerPrivate should use nsTObserverArray for the WorkerFeatures, r=bent CLOSED TREE 2015-04-07 18:31:51 +01:00
Vladimir Vukicevic 72b8ab88fb Bug 1151905; remove unnecessary gfxVR.h includes; r=ehsan 2015-04-07 12:39:09 -04:00
Ting-Yu Chou 2a1bd4156e Bug 1121905 - Reorder frame loading sequence to send content process the URL earlier. r=kanru
--HG--
extra : rebase_source : 62c41ed097dad2de16915d294355efb45146d464
2015-04-07 10:56:10 +08:00
Bill McCloskey b313bfcfe2 Bug 1150709 - Add mForceContentDispatch to nsInProcessTabChildGlobal (r=smaug) 2015-04-06 18:25:39 -07:00
Christoph Kerschbaumer c2ad97aaac Bug 1086999 - CSP: Asterisk (*) wildcard should not allow blob:, data:, or filesystem: when matching source expressions - tests (r=sstamm) 2015-02-10 14:54:36 -08:00
Ryan VanderMeulen 81c2e4fd75 Backed out changeset 8882af540247 (bug 1029451) for intermittent timeouts in the newly-added test. 2015-04-06 11:22:00 -04:00
Henry Chang 41c41098cf Bug 1053650 - Part 1: Add attribute 'networkInterfaceId' to XMLHttpRequest. r=bz
--HG--
extra : rebase_source : 4d1342b2cbd14468596fe80788f92f2635aad29d
2015-03-03 09:09:07 +08:00
Tom Tromey fe559bb884 Bug 1029451 - Preserve mIsSynthesizedForTests on mouse events. r=ehsan 2015-04-03 08:17:00 -04:00
Nikhil Marathe 9b5f6b134f Bug 1109751 - Consume FormData support in Fetch API. r=baku
--HG--
extra : __touch-noise__ : 2181078256
extra : transplant_source : %A4%7F%FF%9CV%9F%2C%F7%C1%A0%BBoc%CC%BB%0E%8E%F5%80%C1
2015-04-03 22:55:15 -07:00
Wes Kocher b485a53afc Backed out changeset b0de9cef013b (bug 1145439) for Gu orange 2015-04-03 14:11:11 -07:00
Andrea Marchesini 5351591d94 Bug 1049091 - Console API in workers should not block the script waiting for the main-thread, r=ehsan 2015-04-03 20:37:52 +01:00
Wes Kocher e73d6e8c9e Backed out 2 changesets (bug 1109751) for asan mochitest-3 failures
Backed out changeset 269ce19afa43 (bug 1109751)
Backed out changeset add6d1bd2e52 (bug 1109751)
2015-04-03 12:22:47 -07:00
Seth Fowler c2f0fefa86 Bug 1145439 - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-03 11:51:11 -07:00
Nikhil Marathe dd5c91927a Bug 1109751 - Consume FormData support in Fetch API. r=baku
--HG--
extra : transplant_source : %B0%0F%AB%E9%DBV%D1%86%980%28L%EC%CBI%0A%09%26%FDS
extra : histedit_source : 39fe8278cf135aa63a59ef4024432fab9ce5c7ee
2015-04-02 10:51:13 -07:00
Jed Davis 5f05e21de0 Bug 1143934 - Fix assorted forms mochitests for e10s-compatibility. r=smaug
The bug 143220 test no longer attempts to read the chrome value property
from the input elements, because that would use PBlob::GetFilePath which
isn't allowed on B2G, and those checks aren't really necessary anymore.
2015-03-31 20:33:00 -04:00
Kartikaya Gupta 3e7ff0d160 Bug 1146843 - Revert part of cset 33c30e283fa8 because the code is used in Fennec. r=snorp 2015-04-02 20:45:50 -04:00
Boris Zbarsky defe3e9299 Bug 679939 part 8. Drop the now-unused compileAndGo from CompileOptions. r=luke 2015-04-01 12:05:29 -04:00
Boris Zbarsky dbe0249159 Bug 679939 part 4. Set the isRunOnce compile flag as needed. r=luke 2015-04-01 12:05:28 -04:00
Nathan Froyd 4c7234747e Bug 1143651 - don't use CallQueryInterface when the compiler can do the cast for us; r=ehsan 2015-03-12 13:20:29 -04:00
David Parks 3fe715e93a Bug 1075670 - Make event.screen[XY] work in content processes (r=smaug,kats,tn,joshmoz) 2015-04-01 12:36:41 -07:00
Wes Kocher 459b664c21 Backed out 8 changesets (bug 679939) for test failures
Backed out changeset 4a1a45bc093a (bug 679939)
Backed out changeset 5336ae0fe919 (bug 679939)
Backed out changeset 4cbcb40e0ef4 (bug 679939)
Backed out changeset 3bc68cf4610b (bug 679939)
Backed out changeset ec2d863a3df9 (bug 679939)
Backed out changeset 4425a55312c6 (bug 679939)
Backed out changeset d3793e00b41f (bug 679939)
Backed out changeset 872edd1aedf7 (bug 679939)
2015-04-01 10:24:42 -07:00
Boris Zbarsky 99c966ffe4 Bug 679939 part 8. Drop the now-unused compileAndGo from CompileOptions. r=luke 2015-04-01 12:05:29 -04:00
Boris Zbarsky ac86d6109d Bug 679939 part 4. Set the isRunOnce compile flag as needed. r=luke 2015-04-01 12:05:28 -04:00
Eddy Bruël e9a640efd2 Bug 1092102 - Rename Suspend/Resume to Freeze/Thaw;r=khuey 2015-04-01 11:00:19 +02:00
Carsten "Tomcat" Book 785425afcd Backed out changeset 70e0f2d8fb1e (bug 1139560) for m4/ m12 test failures 2015-04-01 10:00:14 +02:00
Carsten "Tomcat" Book e5b9f68ae9 Backed out changeset 24ed34bd6ae1 (bug 1139560) 2015-04-01 09:59:44 +02:00
John Schoenick 4394c3473a Bug 1139560 - Fix srcset parser 'After descriptor' state mishandling spaces. r=jst 2015-03-04 23:11:00 +01:00
John Schoenick 9b3bef982b Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst 2015-03-04 23:09:00 +01:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Tom Schuster ac250f9d73 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Monica Chew a326516c92 Bug 1108017: Loosen third-party restrictions for tracking protection checks (r=sworkman) 2015-03-31 13:18:38 -07:00
Boris Zbarsky ab624ae20e Bug 1149280 part 1. Make nullprincipal creation faster. r=smaug 2015-03-31 13:11:00 -04:00
Jonathan Watt f95f52e412 Bug 1145246, part 5 - Remove the Animatable.getAnimationPlayers() alias for Animatable.getAnimations(). r=birtles, r=smaug 2015-03-20 18:21:02 +00:00
Jonathan Watt 2e0ff82e9d Bug 1145246, part 1 - Rename Animatable.getAnimationPlayers() to Animatable.getAnimations(), but leave the old name an an alias for the new. r=birtles, r=smaug 2015-03-20 18:20:32 +00:00
Carsten "Tomcat" Book be3a30c68d Backed out changeset f5e560350ca2 (bug 1148156) for bustage on a CLOSED TREE 2015-03-31 13:02:24 +02:00
Andrea Marchesini 7b01edda80 Bug 1147990 - websocket test suite - patch 3 - Not all the ports are accepted, r=smaug 2015-03-31 11:39:43 +01:00
Andrea Marchesini e8292674ed Bug 1147990 - websocket test suite - patch 2 - webSocket.url should be the spec of nsIURI, r=smaug 2015-03-31 11:39:35 +01:00
Andrea Marchesini 125d0ffa1a Bug 1147990 - websocket test suite - patch 1 - URL with #ref should not be accepted, r=smaug 2015-03-31 11:39:03 +01:00
Andrew McCreight dd414a5a7d Bug 1148156 - Print the window ID in the ++--DOMWINDOW logging. r=smaug
--HG--
extra : rebase_source : ff57498a5cd612bf35eb1451a7987f1e2dd29a1c
2015-03-30 13:51:00 +02:00
Carsten "Tomcat" Book 4ca033afe0 Backed out changeset 03bc64517aac (bug 1147990) for web-platform-tests-2/3/4 test failures 2015-03-31 12:07:03 +02:00
Carsten "Tomcat" Book c59011f4dc Backed out changeset d83e597679f5 (bug 1147990) 2015-03-31 12:06:32 +02:00
Carsten "Tomcat" Book db397cc487 Backed out changeset 5ddc5807af3e (bug 1147990) 2015-03-31 12:06:27 +02:00
Andrea Marchesini ee897f76b1 Bug 1147990 - websocket test suite - patch 3 - Not all the ports are accepted, r=smaug 2015-03-30 20:56:39 +01:00
Andrea Marchesini 0080970220 Bug 1147990 - websocket test suite - patch 2 - webSocket.url should be the spec of nsIURI, r=smaug 2015-03-30 20:56:09 +01:00
Andrea Marchesini f56203ae7b Bug 1147990 - websocket test suite - patch 1 - URL with #ref should not be accepted, r=smaug 2015-03-30 20:55:27 +01:00
Chris Pearce 5d922e0e8e Bug 1146201 - Delay navigator.requestMediaKeySystemAccess if CDM not downloaded yet or needs update. r=jwwang,ehsan 2015-03-31 20:50:01 +13:00
Mike Hommey c39e359c7d Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Bill McCloskey 7f4ac9ee96 Back out bug 1075670 2015-03-30 20:13:07 -07:00
Bill McCloskey 61e6fa44b8 Bug 1139718 - Warning when sending MM messages that include XPCOM data (r=smaug) 2015-03-30 20:13:01 -07:00
Andrew McCreight 2f48802ae0 Bug 1147572 - Remove implementation language field from DOM class info. r=jst 2015-03-30 10:45:39 -07:00
Andrew McCreight 89727e3fac Bug 1147951, part 3 - Remove unnecessary includes of nsIProgrammingLanguage. r=baku 2015-03-30 10:45:39 -07:00
Andrew McCreight 2e05cdb78d Bug 1147951, part 2 - Remove unused JAVASCRIPT definition from nsJSEnvironment.cpp. r=baku 2015-03-30 10:45:39 -07:00
Andrew McCreight 86e1cf0cee Bug 1147951, part 1 - Remove uses of JAVASCRIPT2 from Console.cpp. r=baku 2015-03-30 10:45:39 -07:00
Carsten "Tomcat" Book 60382cb6ba Backed out changeset bf22c9e5c5a3 (bug 1094764) for crashtest failures on a CLOSED TREE 2015-03-30 15:14:09 +02:00
Paul Adenot 6ee36e38f6 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Nicolas Silva e3eaf89e3f Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Andrew McCreight 46dfeaba0b Bug 1148070 - Change nsIClassInfo::getHelperForLanguage() to getScriptableHelper(). r=bholley 2015-03-29 07:52:54 -07:00
Ehsan Akhgari e2ac45480d Bug 1147695 - Enable interception of beacons through service workers; r=nsm
Currently when sending a beacon, HttpBaseChannel::ShouldIntercept tries
to get access to the nsINetworkInterceptController interface through the
channel's notification callbacks, but in this case the notification
callback is the nsCORSListenerProxy object (thanks to
nsCORSListenerProxy::Init).

nsCORSListenerProxy already knows how to forward calls to
nsIInterfaceRequestor::GetInterface to mOuterNotificationCallbacks, and
ShouldIntercept calls GetInterfce.  But mOuterNotificationCallbacks is
set by default to the callbacks of the channel at the time
nsCORSListenerProxy is called, and the callbacks on this channel is
intentionally null, so ShouldIntercept bails out and the beacon never
gets intercepted.

This patch extends nsCORSListenerProxy to make it aware of
nsINetworkInterceptController, and have it route the request for
nsINetworkInterceptController correctly to the docshell without the need
to mess with the notification callbacks.

This will be tested in bug 1147699.
2015-03-28 16:28:37 -04:00
Phil Ringnalda 70731646e2 Backed out changeset d72144153749 (bug 1147005) for being on top of a patch on top of a patch being backed out
CLOSED TREE
2015-03-28 10:39:09 -07:00
Tom Schuster 8a5dbf7c06 Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv 2015-03-28 14:47:02 +01:00
Wes Kocher 18a6da0131 Merge m-c to inbound a=merge
--HG--
extra : rebase_source : 31afc1b4de1d4c9d48057dbbe0d96e7c385bf2dc
2015-03-27 17:31:19 -07:00
Wes Kocher e4585cf145 Merge b2g-inbound to m-c a=merge 2015-03-27 17:11:19 -07:00
Wes Kocher f7b636d799 Merge fx-team to m-c a=merge 2015-03-27 16:52:38 -07:00
Ryan VanderMeulen e09b8cecbf Merge m-c to b2g-inbound. a=merge 2015-03-27 12:20:00 -04:00
Ryan VanderMeulen da1028199c Merge m-c to fx-team. a=merge 2015-03-27 12:21:41 -04:00
Brian Birtles f7d9eb1f72 Bug 1109390 part 7 - Rename PendingPlayerTracker's Start* methods to Trigger*; r=jwatt
These methods will soon be used to start animations that are waiting to start
and also to finish pausing animations that are waiting to pause. As a result
we rename them to TriggerXXX since that's a bit more generic.

There are still references to StartXXX within PendingPlayerTracker. These will
be updated in a subsequent patch once we have the appropriate methods available
on AnimationPlayer to call.
2015-03-27 15:56:45 +09:00
Steven Michaud 216c2a5923 Bug 1147521 - Cannot type into comment area of plugin crash UI. r=smaug 2015-03-26 19:38:13 -05:00
Wes Kocher 4d83e3608b Backed out changeset 2c368e6b267e (bug 1139554) for mochitest-2 failures 2015-03-26 17:34:37 -07:00
Dave Townsend eb35f7fae8 Bug 1144750: Don't attempt to report errors that will cause the warnings only reporter to assert. r=bholley
--HG--
extra : rebase_source : 328482c7113e94c9dc698fc65766021a41079c71
extra : source : 7588e6588dd381d20d81ef8f0b4be1bfc0d6eefc
2015-03-18 14:51:18 -07:00
Tom Tromey f1476bf0bb Bug 1144820 - Use nsTArray<UniquePtr<>> to hold timeline markers. r=smaug, r=fitzgen 2015-03-27 08:42:00 -04:00
Tom Tromey 918392e548 Bug 1144820 - Use rvalue reference in AddProfileTimelineMarker. r=smaug 2015-03-27 08:41:00 -04:00
Wes Kocher fd52ad5f87 Backed out changeset 7588e6588dd3 (bug 1144750) for static analysis failures 2015-03-26 15:52:13 -07:00
Dave Townsend 42af708faa Bug 1144750: Don't attempt to report errors that will cause the warnings only reporter to assert. r=bholley
--HG--
extra : rebase_source : afcab129d7daa4690fca49fc5940f23f0ca3f5ac
2015-03-18 14:51:18 -07:00
George Wright 72153ad282 Bug 1066531 - Delay tab switching until content is ready in e10s mode r=mconley,mstange 2015-03-16 14:30:41 -04:00
John Schoenick 1cd0c6c37b Bug 1139554 - Fix srcset parser mishandling bare URLs followed by a comma. r=jst 2015-03-04 23:07:00 -05:00
Jason Orendorff 1def388b28 Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.

There is no change in behavior.

In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.

We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).

Notes:

*   InvokeGetterOrSetter had to be split into two functions:
    InvokeGetter takes a MutableHandleValue out-param,
    InvokeSetter a HandleValue in-param.

*   Watchpoints can still tamper with values being assigned. So can
    JSSetterOps. I'm pleased we can support this craziness in a way that
    doesn't have to spread via the type system to encompass the entire
    codebase.

*   Change in GlobalObject::setIntrinsicValue is not really a change.
    Yes, it asserted before, but an exception thrown during self-hosting
    initialization is not going to go unnoticed either.

*   Since the receiver argument to js::SetProperty() is at the end now, it
    makes sense for it to be optional. Some callers look nicer.

--HG--
extra : rebase_source : e89f916fe267800bc73890e11aceef5c4855b272
2015-03-01 13:16:19 -06:00
Bill McCloskey f15599e2d9 Bug 1132072 - Tab switch refactoring (r=mconley) 2015-03-27 08:38:47 -07:00