Commit Graph

2006 Commits

Author SHA1 Message Date
Kris Maglione
729b7a2019 Bug 1273251: Part 3 - Allow CallbackObject to contain a null callable. r=peterv
MozReview-Commit-ID: FCXVHouhG3I

--HG--
extra : rebase_source : f3e9325559d40bcb4017ec2505f435275d4fea7f
2016-11-14 21:25:37 -08:00
Andrea Marchesini
c980b8d524 Bug 1323935 - Entries API must use NS_NewLocalFile instead of NS_NewNativeLocalFile, r=smaug 2017-01-18 04:48:29 +01:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Michael Layzell
da36f2140e Bug 1330979 - Don't raise NS_ERROR_DOM_SECURITY_ERROR on DataTransfer access violations, r=baku
In our previous code, we would accidentially not perform the correct
security checks when retreiving data from DataTransferItems in some
situations. The regressing patch fixed this behavior and ensured that we
always perform the correct security checks, making any "insecure"
accesses (such as accesses to file data from the OS in DragEnter) would
raise an NS_ERROR_DOM_SECURTY_ERROR. This behavior is not consistent
with Chrome, and thus OneDrive would accidentally trigger an exception
and break its d&d handling logic.

With this patch our behavior for "insecure" accesses to file data from
the OS is more in line with Chrome's, in that we now don't raise an
exception, but instead just produce the value "null" when the data
should not be avaliable yet. From my quick test this fixes the problem
with OneDrive, and should be a fairly trivial patch to uplift to Beta,
with very little risk.

This patch doesn't include a test, as Drag and Drop is a very difficult
component to test in automation, however I am currently working on
defining a set of manual tests for the Drag and Drop component, and I'll
make sure that our behavior for "insecure" accesses is tested in those
tests in the future.

MozReview-Commit-ID: 4pnPyL1tgcV
2017-01-13 15:39:21 -05:00
Andrea Marchesini
2abf88ce1f Bug 1329744 - AudioBuffer ctor updated, r=padenot 2017-01-10 21:30:28 +00:00
Kartikaya Gupta
4e42f89a66 Bug 1328285 - Add support for drag-and-drop via touch in Windows content processes as well. r=smaug
MozReview-Commit-ID: FU7pKgFukDS
2017-01-10 09:21:33 -05:00
Bobby Holley
b32f310e62 Bug 1323649 - Reenable some crashtests. r=me 2017-01-09 11:50:23 -08:00
Cameron McCormack
babad063ff Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Xidorn Quan
92aa905e96 Bug 1328806 - Map more state bits from Gecko to Servo. r=bholley
MozReview-Commit-ID: CX54Z1cERBZ

--HG--
extra : rebase_source : 50f9472d623e85066d9a2a7611146fb246143195
extra : amend_source : 0ecf0ab4a49efa1d29b081b08c6a5bdd2d9527da
extra : source : 6dc5adaddc4221bf5268986433c2cc99668139fc
2017-01-06 10:01:59 +11:00
Andrea Marchesini
bc98b07905 Bug 1322550 - Rename DOMStorage to Storage, r=smaug
--HG--
rename : dom/storage/DOMStorage.cpp => dom/storage/Storage.cpp
rename : dom/storage/DOMStorage.h => dom/storage/Storage.h
rename : dom/storage/DOMStorageCache.cpp => dom/storage/StorageCache.cpp
rename : dom/storage/DOMStorageCache.h => dom/storage/StorageCache.h
rename : dom/storage/DOMStorageDBThread.cpp => dom/storage/StorageDBThread.cpp
rename : dom/storage/DOMStorageDBThread.h => dom/storage/StorageDBThread.h
rename : dom/storage/DOMStorageDBUpdater.cpp => dom/storage/StorageDBUpdater.cpp
rename : dom/storage/DOMStorageDBUpdater.h => dom/storage/StorageDBUpdater.h
rename : dom/storage/DOMStorageIPC.cpp => dom/storage/StorageIPC.cpp
rename : dom/storage/DOMStorageIPC.h => dom/storage/StorageIPC.h
rename : dom/storage/DOMStorageManager.cpp => dom/storage/StorageManager.cpp
rename : dom/storage/DOMStorageManager.h => dom/storage/StorageManager.h
rename : dom/storage/DOMStorageObserver.cpp => dom/storage/StorageObserver.cpp
rename : dom/storage/DOMStorageObserver.h => dom/storage/StorageObserver.h
2017-01-04 14:53:01 +01:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Tim Nguyen
5884019f51 Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called. r=smaug
MozReview-Commit-ID: 7OKlKFb3lok
2016-12-23 16:01:50 +01:00
Kartikaya Gupta
b2cab8a5ed Bug 1147335 - Add support for drag-and-drop via touch (Windows-only, main-process-only). r=smaug
This patch adds a new non-DOM event type, "mousetouchdrag". The name is horrible, I
know. The "mouse" comes from the fact that it's a WidgetMouseEvent, and the
"touchdrag" comes from the fact that this event is fired at the start of a touch
gesture for drag-and-drop. Right now this event is only fired from the Windows
widget code, when we receive a touch-source doubleclick event from the OS. This
event is sent to us from the OS when it detects the sequence "touchstart, touchend,
touchstart" within certain time/distance constraints. Eventually we may detect
similar gestures for other platforms in the APZ GestureEventListener and dispatch
the "mousetouchdrag" event for those as well.

The only effect of this event is that it begins tracking a drag gesture in the
EventStateManager. Subsequent touchmove events can begin the actual drag-and-drop
operation by calling ::DoDragDrop. See the discussion in bug 1147335 for some
important caveats about DoDragDrop and how it only works with left-mouse-button
events (real or synthetic).

MozReview-Commit-ID: bGyOk6dRoJ
2017-01-03 10:55:48 -05:00
Jan Beich
2941566445 Bug 1326524 - Unbreak build without SPS profiler after bug 1324941. r=mstange
MozReview-Commit-ID: 2E4MlCLQ9lf

--HG--
extra : rebase_source : 2e7644176d0c478a5876b5d2e6604f341c13ea5b
2016-12-31 08:27:27 +00:00
Markus Stange
2319d2881d Bug 1324941 - Add a profiler label and a profiler marker for DOMEvent dispatch. r=smaug
MozReview-Commit-ID: 9nyftWPKRVe

--HG--
extra : rebase_source : 0ef900fa5c7749dd5bcec32da6b37aad91f0a518
2016-12-23 12:44:35 +01:00
Ho-Pang
298ce9f9e5 Bug 1299209 - Part 4: Test event.pointerId in PE Framework. f=sshih, r=smaug
--HG--
extra : rebase_source : 8f14324e17c0811d4788b40a670337de330bde10
2016-12-27 03:21:00 -05:00
Ho-Pang
41adef3ae2 Bug 1299209 - Part 1: Passing PointerId when a new WidgetMouseEvent is created. h=sshih, r=smaug
--HG--
extra : rebase_source : b123e74425e56c09ab38f5916589abb84c3d5996
2016-12-20 22:53:00 -05:00
Phil Ringnalda
b94a0cbd73 Merge m-i to m-c, a=merge 2016-12-24 16:51:17 -08:00
Wes Kocher
37e6ad7e9e Backed out 7 changesets (bug 1322938) for test_lowDiskSpace.html failures on android a=backout
Backed out changeset 1de6bfc4c973 (bug 1322938)
Backed out changeset 45b81607acd2 (bug 1322938)
Backed out changeset 2f3c2e660d28 (bug 1322938)
Backed out changeset d93937b3f80e (bug 1322938)
Backed out changeset 91c8b6d99e35 (bug 1322938)
Backed out changeset b6bdaf0dd932 (bug 1322938)
Backed out changeset 4b6ed4bb4263 (bug 1322938)
2016-12-23 20:55:55 -08:00
Tim Nguyen
19655e43c1 Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called. r=smaug
MozReview-Commit-ID: 7OKlKFb3lok
2016-12-23 16:01:50 +01:00
Neil Deakin
d88256a9f9 Bug 1309596, add an updateDragImage method to modify the drag feedback image during the drag, r=smaug 2016-12-23 18:09:44 -05:00
Wes Kocher
1e19e7e80a Backed out 6 changesets (bug 1322938) for android failures in test_lowDiskSpace.html CLOSED TREE a=backout
Backed out changeset 8d9ed256d618 (bug 1322938)
Backed out changeset 0d04a7f9567b (bug 1322938)
Backed out changeset f3bed08a1f6f (bug 1322938)
Backed out changeset 2992c400da4d (bug 1322938)
Backed out changeset cf6c65628dd0 (bug 1322938)
Backed out changeset 4c88ef02c5d4 (bug 1322938)
2016-12-23 13:40:26 -08:00
Michelangelo De Simone
682555bbc4 Bug 1313169 - Remove dom/inputmethod/ and related code. r=Ehsan
MozReview-Commit-ID: 5jkBVon3ZSz

--HG--
extra : rebase_source : e13a061650abe81ea58ffca22f74e3ec6122fede
2016-12-20 16:32:12 -08:00
Carsten "Tomcat" Book
0aed7a4ac5 Merge mozilla-central to mozilla-inbound
--HG--
rename : testing/docker/base-build/HASH => taskcluster/docker/base-build/HASH
rename : testing/docker/base-test/HASH => taskcluster/docker/base-test/HASH
rename : testing/docker/centos6-build-upd/HASH => taskcluster/docker/centos6-build-upd/HASH
rename : testing/docker/centos6-build/HASH => taskcluster/docker/centos6-build/HASH
rename : testing/docker/decision/HASH => taskcluster/docker/decision/HASH
rename : testing/docker/image_builder/HASH => taskcluster/docker/image_builder/HASH
rename : testing/docker/recipes/tooltool.py => taskcluster/docker/recipes/tooltool.py
rename : testing/docker/tester/HASH => taskcluster/docker/tester/HASH
2016-12-22 16:25:35 +01:00
Stone Shih
7448d04902 Bug 1323960 Part3: disable failed test case and remove nit. r=smaug.
MozReview-Commit-ID: KVam1N1Xik5
2016-12-20 10:09:33 +08:00
Stone Shih
d0c20dd3b5 Bug 1323960 Part2: sync test cases from testing/web-platform/tests/pointerevents. r=smaug
MozReview-Commit-ID: 6KIRgC5oQ2Q
2016-12-17 12:54:47 +08:00
Stone Shih
838a09cbf3 Bug 1323960 Part1: dynamically inject mochitest helper js to test cases. r=smaug.
MozReview-Commit-ID: 90q9RPwkWfw
2016-12-20 10:00:44 +08:00
Bill McCloskey
e4426ae30f Bug 1318506 - Label AsyncEventDispatcher runnables with DocGroup (r=ehsan)
I still don't completely understand why we sometimes need to use the global
and sometimes the node. As far as I understand it:
- Not all event targets are nodes, so the node code can't always be used.
- The nsINode::GetOwnerGlobal implementation uses GetScriptHandlingObject,
  which returns null in some cases where GetScopeObject doesn't. Here
  is one:
    http://searchfox.org/mozilla-central/rev/62db1c9021cfbde9fa5e6e9601de16c21f4c7ce4/dom/base/nsDocument.cpp#4627

MozReview-Commit-ID: DdLWeQJIWZx
2016-12-23 11:48:13 -08:00
Tim Nguyen
3a9c63ff99 Bug 1322938 - Emit close event when HTMLDialogElement.prototype.close() is called. r=smaug
MozReview-Commit-ID: 7OKlKFb3lok
2016-12-23 16:01:50 +01:00
Carsten "Tomcat" Book
d1a09e06c8 Merge mozilla-central to autoland 2016-12-21 17:07:24 +01:00
Carsten "Tomcat" Book
e8b62ac15b merge mozilla-inbound to mozilla-central a=merge 2016-12-21 16:57:08 +01:00
Stone Shih
3efdfea16f Bug 1324380 - Make setting Event's cancelBubble to false a no-op. r=smaug.
MozReview-Commit-ID: x8u7tw6psd

--HG--
extra : rebase_source : a8af0802d969b4a4757530ec9c28572062c71f15
2016-12-20 09:35:17 +08:00
Phil Ringnalda
4f5f9f3222 Merge m-i to m-c, a=merge
MozReview-Commit-ID: EI1fU13SR79
2016-12-20 20:15:20 -08:00
Mantaroh Yoshinaga
90c5d3d372 Bug 1202333 part 1 - Remove excessive animationiteration event. r=birtles
The Firefox fired excessive animationiteration event.
But We fixed specification in order to prevent firing the animationiteration when animation is start.

For detail, See https://github.com/w3c/csswg-drafts/issues/68

MozReview-Commit-ID: 391DRxSpq86

--HG--
extra : rebase_source : 38e6710da4d9ad7422d6313eeae2803402a51b24
2016-12-20 15:57:13 +09:00
Wes Kocher
b5f33578be Merge m-c to inbound, a=merge 2016-12-20 11:47:17 -08:00
Wes Kocher
584a2f0f62 Merge inbound to central, a=merge
MozReview-Commit-ID: Cr9L1dhIzP2
2016-12-20 11:41:57 -08:00
Neil Deakin
3bcbbdcf40 Bug 41708, support scrolling when hovering over the edge of a scrollframe while dragging, r=smaug 2016-12-20 13:39:30 -05:00
Carsten "Tomcat" Book
14b24ddfb5 Backed out changeset 83c4d145e937 (bug 1323916)
--HG--
extra : rebase_source : 4d356aa8982eb273052f422ba80c9bacc7c425ea
2016-12-20 14:46:00 +01:00
Andrea Marchesini
4f29b70d10 Bug 1324537 - Implement the OfflineAudioCompletionEvent constructor, r=smaug 2016-12-20 10:41:30 +01:00
Masayuki Nakano
e0dcff15d2 Bug 1322736 part.3 Remove dom::BeforeAfterKeyboardEvent and InternalBeforeAfterKeyboardEvent r=smaug
MozReview-Commit-ID: Eyz2HjIdQEW

--HG--
extra : rebase_source : 182f4f8236dcfb83f8725a9c66cc46dedbb14f2c
2016-12-16 16:25:22 +09:00
Masayuki Nakano
d48cef4255 Bug 1322736 part.2 Remove "after keydown" and "after keyup" events r=smaug
MozReview-Commit-ID: ICFPyDhgfh7

--HG--
extra : rebase_source : 6d3a9d227ac99710ac2daa036e1e169d31ae9e6a
2016-12-16 16:01:51 +09:00
Masayuki Nakano
abc299239b Bug 1322736 part.1 Remove "before keydown" and "before keyup" events r=smaug
MozReview-Commit-ID: 3umPBwTowLc

--HG--
extra : rebase_source : c77a7f4b9334f261623d655edb3bf50377d1804d
2016-12-16 15:59:25 +09:00
Stone Shih
c383970755 Bug 1323916 - [Pointer Event] Fix errors in pointer event test cases. r=smaug
MozReview-Commit-ID: KEayE2B7aKX
2016-12-13 14:05:10 +08:00
Iris Hsiao
565402ee1b Backed out changeset 8f01cf080e69 (bug 1323983) 2016-12-20 15:30:51 +08:00
Xidorn Quan
be76c082e0 Bug 1323983 part 1 - Ensure to release the pointer even if the document has been detached. r=smaug
MozReview-Commit-ID: FY5lDQBYl6U

--HG--
extra : rebase_source : 47159f623c46549b48c786b28b5c00c246288076
2016-12-21 12:02:24 +11:00
Wes Kocher
0b3c388b2f Merge m-c to autoland, a=merge 2016-12-20 11:48:21 -08:00
Masayuki Nakano
7436f01057 Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug
Doing QI from nsIEditor to nsIEditorIMESupport doesn't make sense because editor should always support all methods and attributes of nsIEditorIMESupport (it does NOT mean that all nsIEditor implementation need to support IME).

This patch moves all of them to nsIEditor for avoiding redundant QIs.

MozReview-Commit-ID: DzIKuGHG4iy

--HG--
extra : rebase_source : cc5e9a6ae4572ebe461d9770ffa5c23d33dc8526
2016-12-20 21:47:31 +09:00
Xidorn Quan
5c12d2debc Bug 1323983 part 1 - Ensure to release the pointer even if the document has been detached. r=smaug
MozReview-Commit-ID: FY5lDQBYl6U

--HG--
extra : rebase_source : a4d8540f9d22de86549660e173b5a0dc52835b75
2016-12-19 15:28:31 +11:00
Olli Pettay
2f85471cc3 Bug 1323815, FocusEvent.relatedTarget should work consistently with MouseEvent.relatedTarget, r=masayuki
--HG--
extra : rebase_source : ee11583116bd52618f6bfba063e920e8064c1ec3
2016-12-19 13:36:48 +02:00
Daosheng Mu
94effe3091 Bug 1315896 - Part 2: Remove MOZ_GAMEPAD in Gamepad module; r=ted.mielczarek
MozReview-Commit-ID: Hbv6THaI5Rk

--HG--
extra : rebase_source : aa6b247881c45b2d615d5e37576801e91ed77312
2016-12-08 13:00:44 -10:00