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

7981 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher 6671dd34b4 Merge m-c to b2ginbound, a=merge 2015-08-17 17:15:50 -07:00
Boris Chiou 98344e1e17 Bug 952456 - Part 3: Enable test_copyimage.html on gonk/cocoa r=fabrice
Enable dom/base/test/test_copyimage.html on b2g emulators and macos

--HG--
extra : histedit_source : b1f731dee93d858805825de29ef172465da89ce6
2015-08-17 15:49:30 -07:00
Ryan VanderMeulen 0169e05964 Merge inbound to m-c. a=merge 2015-08-17 09:06:59 -04:00
Ben Tian a0a229d80d Bug 1192693 - [02] Remove bluetooth1 folder and rename webidl files, r=joliu, r=mrbkap
--HG--
rename : dom/webidl/BluetoothAdapter2.webidl => dom/webidl/BluetoothAdapter.webidl
rename : dom/webidl/BluetoothDevice2.webidl => dom/webidl/BluetoothDevice.webidl
rename : dom/webidl/BluetoothManager2.webidl => dom/webidl/BluetoothManager.webidl
2015-08-17 15:30:34 +08:00
Robert Longson f8d1c44179 Bug 1194619 - fix comment r=dholbert 2015-08-14 19:22:22 +01:00
William Chen 148ff86273 Bug 1181130 - Part 3: Keep track of editable descendants per node and prevent NS_STYLE_USER_SELECT_ALL selection for nodes with editable descendants. r=bz 2015-08-14 10:52:38 -07:00
Ryan VanderMeulen a977d011fb Backed out changeset c2c0405ddf93 (bug 1180916) for causing various e10s mochitest failures. 2015-08-14 11:27:25 -04:00
Aryeh Gregor 4cb17f538e Bug 874838 - Make CreateElem return Element. r=khuey 2015-08-13 07:50:00 -04:00
Brad Lassey f6c9807803 bug 1180916 - witching tab generates 4 frames (4 full runs of the RefreshDriver), freeze the refresh driver while switching tabs r=mconley, mrbkap 2015-08-14 09:18:37 -04:00
Aryeh Gregor db22433905 Bug 1179451 - Part 2: Fix incorrect return type. r=ehsan
--HG--
extra : rebase_source : a12578a4eb8c49dce9b27874ec01f8d7fb884a2f
2015-08-13 15:22:48 +03:00
Aryeh Gregor 0ccef27b6a Bug 1179451 - Part 1: Rewrite some ternary operators as if/else. r=froydnj
--HG--
extra : rebase_source : 161e415b6f518bf2b82e45b6f7f8d21298712d81
2015-08-13 15:22:48 +03:00
Ryan VanderMeulen 1caf889687 Merge m-c to inbound. a=merge 2015-08-17 09:07:43 -04:00
Ehsan Akhgari db190ef050 Bug 1195051 - Part 3: Test changes; r=padenot
--HG--
rename : dom/base/test/test_webaudioNotification.html => dom/base/test/test_noWebAudioNotification.html
2015-08-17 08:55:01 -04:00
Daniel Holbert 08e005cdec Bug 1195123: Restructure logic (pulling out "!") for SVG image rejection, to make it clearer that it matches the comment. r=longsonr 2015-08-16 13:37:56 -07:00
Matt Woodrow 169ab22517 Bug 1178098 - Report why DXVA initialization failed to about:support. r=cpearce
--HG--
extra : rebase_source : 976baee04db89d0808b8fc494108e01aa163d402
2015-07-13 16:12:23 -04:00
Mike Conley 77af80c31b Bug 1141337 - Update nsIWebBrowserPersistable to allow subframe targeting for Save Frame As. r=jld
This alters nsIWebBrowserPersistable so that startPersistence takes an
outerWindowID. This allows us to target a particular subframe from
beneath an nsFrameLoader, which is useful when attempting to Save
Frame As a remote browser.

--HG--
extra : commitid : KWck2rfRjXw
extra : rebase_source : d2390a8cf1b830e4e1c0fa52574455fbc0b05c14
2015-08-06 10:44:16 -04: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
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
Aryeh Gregor 5aeef0231d Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Benoit Girard f6fed1c386 Bug 1191412 - Fix logic and text for the WillChange warning. r=roc
--HG--
extra : commitid : LL1q53ZpGCQ
extra : rebase_source : 342e0bf923ec556b7abd9f7275f7d5b20400663c
2015-08-07 16:05:19 -04:00
Christoph Kerschbaumer 4b7d4aaed5 Bug 1187165 - Use channel->ascynOpen2 in dom/base/ImportManager (r=sicking) 2015-08-10 10:25:20 -07:00
Kyle Machulis 6ed5a2c6c8 Bug 1192787 - Readd performance enabled test to ResponseEndHighRes; r=baku 2015-08-11 08:54:52 -07: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
Kyle Huey 0bb53e0280 Bug 1179909: Build fix. r=me CLOSED TREE 2015-08-11 07:38:01 -07:00
Kyle Huey baee6469c5 Bug 1179909: Build fix. r=me CLOSED TREE 2015-08-11 06:54:49 -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
Jeff Walden 1b62a9d07b Bug 1158399 - Expose the [[DateValue]] field in Date objects only through a ClippedTime class that enforces prior TimeClip-ing on the given value. r=evilpie, r=bz, r=dhylands, r=mt, r=froydnj, r=khuey, r=baku, r=smaug
--HG--
extra : rebase_source : 803fe39f338b6b32cb0fe2be6cf4056bab57283a
2015-05-01 19:12:52 -07:00
Andrea Marchesini 01049623d7 Bug 1188612 - Transferable errors should become NS_DOM_DATA_CLONE_ERR, r=sfink 2015-08-10 16:13:24 +01:00
Nicholas Nethercote 63ee27b690 Bug 1192128 - In DOM memory reporter, handle WindowID() being a uint64_t. r=mccr8.
--HG--
extra : rebase_source : 0166b09f8800c8ee2509643573e8f85f01d0b3c0
2015-08-06 22:09:30 -07:00
Wes Kocher f54acdd862 Merge m-c to fx-team, a=merge 2015-08-07 17:36:14 -07:00
Brian Grinstead 225e4e60fa Bug 1186925 - Convert tests using bad-content notification to use gIdentityHandler;r=tanvi
--HG--
extra : commitid : L6WrcjaECSK
2015-08-07 15:22:52 -07:00
Ehsan Akhgari 51c93c7eea Bug 1192252 - Add a helper RAII class for managing the cleanup in nsFrameLoader::SwapWithOtherLoader; r=smaug 2015-08-07 12:36:57 -04:00
Ehsan Akhgari 4db099dbd2 Bug 1191491 - Do not dispatch an audio-playback notification when swapping browsers; r=smaug
We send a pagehide event during swapping docshell frame loaders, and
before this patch we would not be able to differentiate this event with
the one that we send when navigating away from a page, so we would
incorrectly dispatch an audio-playback notification indicating that
audio playback has stopped.  This patch adds a flag to the root docshell
when the frame loader swapping is in progress and disables the above
behavior when that flag is set.
2015-08-07 12:18:24 -04:00
Wes Kocher 83a7cbf448 Merge m-c to inbound, a=merge 2015-08-06 18:11:16 -07:00
Christoph Kerschbaumer 1c05a94924 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan) 2015-08-06 11:17:24 -07:00
Kyle Machulis e7cd019de0 Bug 1186582 - AskPermission should check for prompt exceptions; r=fabrice 2015-08-06 08:53:23 -07:00
Ehsan Akhgari 41ec611711 Bug 1190040 - Part 1: Do not dispatch media-playback notifications for media elements that do not have an audio track; r=cpearce 2015-08-06 10:25:38 -04:00
Aryeh Gregor 2311382621 Bug 1191305 - Alphabetize some includes; r=froydnj 2015-08-06 15:45:21 +03:00
Carsten "Tomcat" Book 7d6f90f702 Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Xidorn Quan bf52d07f9d Bug 1191148 - Don't count fullscreen request handled if we don't change the document state. r=smaug
--HG--
extra : source : 33ad58fdc763e3c6d647b6aec100d2ab9d893316
2015-08-06 15:37:48 +10:00
Xidorn Quan 0ccaf44f6f Bug 1190669 part 3 - Introduce new fullscreen reason which exits fullscreen without fullscreen transition, and use it for ExitFullscreenInDocTree. r=smaug
--HG--
extra : source : fe0671e7ebf0891ff5b81d62f1d2d4331da0210a
2015-08-06 15:37:48 +10:00
Xidorn Quan 0de82461de Bug 1190669 part 2 - Move the part which runs script from ExitFullscreenInDocTree to a runnable, and protect it with AddScriptRunner. r=smaug
--HG--
extra : source : 4f830d2b84892df9703b129e4d1e3266326e2f69
2015-08-06 15:37:48 +10:00
Xidorn Quan b5ca06175b Bug 1190669 part 1 - Remove helper function SetWindowFullScreen and its helper runnable. r=smaug
All of the callsites of this helper function has a synchronous event
dispatch which indicates the AddScriptRunner in that helper function
makes no sense.

Also it seems that most of the callsites are actually safe to run
script, except ExitFullscreenInDocTree() which may be called from
Element::UnbindFromTree(). It'll be fixed in the following patch.

--HG--
extra : source : 3de765275da21719bdc57f2ddba5328efba17524
2015-08-06 15:37:48 +10:00
Xidorn Quan b7de5ae0ad Bug 1191112 part 3 - Don't touch the widget anymore if it has been destroyed during the fullscreen transition. r=smaug
--HG--
extra : source : c07ef0526ac1098a949e91bbf3cf4f34de577e2e
2015-08-06 15:37:48 +10:00
Xidorn Quan 62dc5a030c Bug 1191112 part 1 - Clear pending fullscreen requests on page close. r=smaug
--HG--
extra : source : 0eaa6634bfeb27a0aed6e90a01fe9783bace4773
2015-08-06 15:37:48 +10:00
Christoph Kerschbaumer cb37e46dd2 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan) 2015-08-05 12:58:05 -07:00
Jed Davis f9cdea85fa Bug 1101100 - Multiprocess-enable nsWebBrowserPersist. r=billm
The high-level overview is that the parts of nsWebBrowserPersist which
access the DOM have been factored out (as WebBrowserPersistLocalDocument)
and abstracted (nsIWebBrowserPersistDocument) such that they can be
implemented in the cross-process case using IPC.
2015-08-05 14:25:39 -07:00
Aryeh Gregor 80ea0a3e53 Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
--HG--
rename : dom/bindings/OwningNonNull.h => xpcom/base/OwningNonNull.h
2015-08-05 15:28:27 +03:00
Carsten "Tomcat" Book 592d83d1f5 merge mozilla-inbound to mozilla-central a=merge 2015-08-05 13:12:59 +02:00