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

8004 Коммитов

Автор SHA1 Сообщение Дата
William Chen 0625e989b4 Bug 1131470 - Part 5: Handle changes to active orientation lock. r=smaug
--HG--
extra : rebase_source : 51fb1484301d8b2afa518396f52a1bd0378f326d
2015-08-18 15:28:01 -07:00
William Chen ef7f765b3d Bug 1131470 - Part 4: Check sandboxing flag for orientation lock. r=baku
--HG--
extra : rebase_source : a9e6916dae1484c47c88d3d07826aba0a048cf69
2015-08-18 15:28:01 -07:00
William Chen 326cceef61 Bug 1131470 - Part 3: Implement ScreenOrientation interface. r=baku
--HG--
extra : rebase_source : 115753be382c7694c775915d5944ae2dabd9d0c3
2015-08-18 14:55:21 -07:00
William Chen 3c9928ced9 Bug 1131470 - Part 1: Rename existing use of ScreenOrientation to ScreenOrientationInternal. r=baku
--HG--
extra : rebase_source : 72e978d48e8356da9e8c66adfa0a97983034aa5a
2015-08-18 14:55:09 -07:00
Kartikaya Gupta 1db1586922 Bug 1180295 - Implement seamless snapping to the stable state. r=rbarker
--HG--
extra : commitid : BCRW1BHPhL8
2015-08-18 14:27:20 -04:00
Kartikaya Gupta 056c55b10f Bug 1180295 - Rip out call to setContentDocumentFixedPositionMargins. r=rbarker
--HG--
extra : commitid : 7uU6xgPVZom
2015-08-18 14:27:18 -04:00
Nathan Froyd afe5dc4365 Bug 968923 - part 6 - add use counters for deprecated operations; r=bz 2015-06-17 12:28:26 -04:00
Nathan Froyd cbef15d819 Bug 968923 - part 5c - add tests for use counters; r=bz 2015-03-13 15:36:55 -04:00
Nathan Froyd 797182f90f Bug 968923 - part 5b - add nsIDOMWindowUtils::forceUseCounterFlush; r=bz
Use counter submission normally happens at document destruction.  For
testing use counters, however, we need to have use counters updated in
telemetry at deterministic points.  Therefore, we provide a method on
nsIDOMWindowUtils that forces use counters out to telemetry so we can
examine them.
2015-03-17 15:25:35 -04:00
Nathan Froyd 74204d57f7 Bug 968923 - part 5a - add use counters for SVGSVGElement and CSS properties for testing purposes; r=bz 2015-06-05 14:07:25 -04:00
Cameron McCormack 57f66406e3 Bug 968923 - part 4 - hook up use counters to WebIDL bindings; r=bz 2015-02-05 12:53:01 -05:00
Cameron McCormack 81c7895606 Bug 968923 - part 3d - record use counter information from the CSS parser; r=dbaron 2015-06-03 15:21:24 -04:00
Cameron McCormack 2e3473ca07 Bug 968923 - part 3b - propagating use counters from SVG images into owning/parent documents; r=seth 2015-06-03 13:42:07 -04:00
Cameron McCormack 125f6d0f18 Bug 968923 - part 3a - add core DOM use counter functionality; r=smaug
This patch gives ns{I,}Document the ability to track use counters and
also to send those to telemetry at document destruction time.  We push
things to telemetry lazily because we're can't definitively say whether
something has been used until the document is torn down.
2015-06-03 12:39:18 -04:00
Ryan VanderMeulen 29ef75cefa Merge b2g-inbound to m-c. a=merge 2015-08-18 10:41:52 -04:00
Ryan VanderMeulen 21eb172263 Backed out changesets df6e7f025c65, 3e5d45dcd5c6, and e00a383520f6 (bug 952456) for B2G test_browserElement_inproc_CopyPaste.html failures.
CLOSED TREE
2015-08-18 07:54:19 -04:00
Andrew Osmond 93a03d15bc Bug 1186273 - Part 2. Improve reuse of and releasing of device storage objects where appropriate. r=dhylands 2015-08-18 07:42:14 -04:00
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
Tom Tromey 131556a889 Bug 1013814 - add inIDOMUtils.getRelativeRuleLine; r=heycam,pbrosset 2015-08-17 15:19:21 -07:00
Hiroyuki Ikezoe ecf1610a5b Bug 1165796 - Part 3: Fix PerformanceObserverEntryList::GetEntries filtering for initiatorType. r=baku
--HG--
extra : rebase_source : 839dbd9ebda90f50b3a23036a34e05c9322f1ddd
2015-08-17 15:13:26 -07:00
Hiroyuki Ikezoe 07f62b2d0a Bug 1165796 - Part 2: Implement PerformanceObserver.r=baku
--HG--
extra : rebase_source : 9ccd3f9c8932841aed6a13986a4466fac0197902
2015-08-17 15:13:20 -07:00
Hiroyuki Ikezoe 4a6195ea43 Bug 1165796 - Part 1: Make PrefEnabledRunnable usable for other preference names. r=baku
--HG--
extra : rebase_source : e765b0ffea0ac3668c0d839fae488e49e5341ef7
2015-08-17 15:13:13 -07:00
Hiroyuki Ikezoe f0c25bf3d8 Bug 1165796 - Part 0: Unified build fix. r=baku
--HG--
extra : rebase_source : 68547e3267d3e626ae1565ad3680f58288bdc8a5
2015-08-17 15:13:06 -07:00
Arnaud Bienner 2755fa9a57 Bug 1190086 - Use new String::Contains(char) method more widely r=froydnj
--HG--
extra : rebase_source : 81df1495200d3734ea1c4c13818ae764a445f4b3
2015-08-14 00:49:15 +02: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