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

141 Коммитов

Автор SHA1 Сообщение Дата
Michael Layzell 9cfa67ef65 Bug 1199729 - Part 1: Add the Protected mode to DataTransfer, r=baku 2017-09-08 11:05:06 -04:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Sebastian Hengst a5890afd0f Backed out changeset e0a52989a521 (bug 1352852) for timing out in dom/events/test/test_dragstart.html. r=backout 2017-05-11 18:07:41 +02:00
Michael Layzell 12717ff1a6 Bug 1352852 - Add dummy data to the DataTransfer when dragging a draggable object, r=enndeakin
When dragging a `draggable=true` HTML DOM node, if no data is added to the
DataTransfer during the DragStart event, we currently cancel the drag. This is
inconsistent with Chrome's behaviour.

This patch adds a chrome-only (hidden from content) item to the DataTransfer:
application/x-moz-dummy-data. This data is added only when no other data has
been added to the DataTransfer, and the target of the dragstart event was a
draggable=true HTML DOM node.

This hidden node allows for the drag event to complete successfully, while
appearing the same as Chrome's behavior to content scripts.

MozReview-Commit-ID: HVqEr7aR6DD
2017-05-11 10:09:14 -04:00
Michael Layzell 52e859430e Bug 1352281 - Include KIND_OTHER types in DataTransfer.types, r=baku
MozReview-Commit-ID: EoqzAydaLea
2017-04-17 14:57:25 -04:00
Neil Deakin 85b254f54b Bug 1347748, error check the write methods, r=layzell 2017-03-29 06:32:02 -04:00
Michael Layzell 23e8ac47d2 Bug 1348143 - Check nsresult values more places in DataTransfer. r=enndeakin
MozReview-Commit-ID: BP4avMImDB8
2017-03-27 17:44:27 -04:00
Michael Layzell a3d57f1d3f Bug 1342057 - Part 1: Use correct MIME type for files as DataTransferItem.type, r=baku
MozReview-Commit-ID: 4hrZ3YoGTJj
2017-03-07 18:18:42 -05:00
Wes Kocher 4424ad9cd7 Backed out 2 changesets (bug 1342057) for android failures in test_clipboard_events.html a=backout
Backed out changeset 5a1e069911fa (bug 1342057)
Backed out changeset 6758f6e0b836 (bug 1342057)

MozReview-Commit-ID: 6MHaDaORlqx
2017-03-07 11:44:03 -08:00
Michael Layzell b985d62013 Bug 1342057 - Part 1: Use correct MIME type for files as DataTransferItem.type, r=baku
MozReview-Commit-ID: 4hrZ3YoGTJj
2017-03-07 12:45:58 -05:00
Michael Layzell d982a16df5 Bug 1338328 - Change error type for custom-clipdata mime type, and add test for correct exception type, r=baku
MozReview-Commit-ID: 9qwwXxWgWrO
2017-03-06 14:37:27 -05:00
Wes Kocher 8d2ba463c0 Backed out changeset bfc13d436dd4 (bug 1338328) for browser_context_menu_autocomplete_interaction.js failures a=backout
MozReview-Commit-ID: DfOAidZWnWF
2017-03-01 15:38:21 -08:00
Michael Layzell 2f4b475ed1 Bug 1338328 - Change error type for custom-clipdata mime type, and add test for correct exception type, r=baku
MozReview-Commit-ID: 9qwwXxWgWrO
2017-03-01 15:15:36 -05:00
Makoto Kato 2dcf7753c2 Bug 1327798 - Part 1. PasteNoFormatting shouldn't set text/html to clipboard event on paste. r=enndeakin
MozReview-Commit-ID: 8VMudiPiXcK

--HG--
extra : rebase_source : 2476f69296a60f6978f97da2daef021b90350dbf
2017-02-22 18:34:45 +09: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
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
Boris Zbarsky 784a52fd02 Bug 1317720. Use NeedsCallerType instead of NeedsSubjectPrincipal for DataTransfer.types. r=mystor 2016-11-15 12:46:32 -05:00
Boris Zbarsky dda84c3ef8 Bug 1317599. Get rid of LegacyIsCallerChromeOrNativeCode use in datatransfer code. r=mystor 2016-11-15 12:46:32 -05:00
Michael Layzell 91e603e271 Bug 1306645 - Don't add application/x-moz-file entries from the clipboard to dataTransfer with e10s, r=enndeakin
application/x-moz-file entries on the clipboard are not able to be
successfully transmitted across synchronous IPC due to bug 1308007, thus
they appear as useless null files.

This patch hides those useless null files, and thus unhides image data
which may have been on the clipboard but was previously hidden by the
presence of an application/x-moz-file file

MozReview-Commit-ID: 4RmQe9kDZLe
2016-10-20 15:09:43 -04:00
Eric Rahm 1eb4ae7e0d Bug 1309698 - Remove usage of nsISupportsArray from nsIDragService. r=smaug 2016-10-18 11:56:20 -07:00
Michael Layzell d85d6ed949 Bug 1309645 - Stop providing image/jpeg files as a string to websites, r=enndeakin
MozReview-Commit-ID: 1NsWeMk5V5s
2016-10-13 16:58:19 -04:00
Boris Zbarsky a3ba31e74a Bug 1308287 part 2. Make DataTransfer.types use [NeedsSubjectPrincipal]. r=mystor 2016-10-10 21:07:48 -04:00
Boris Zbarsky 3f10f5ed57 Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku
The idea is to not make consumers think about whether the principal exists or
not when the caller knows for sure that it does.

The substantive changes are in dom/bindings, nsHTMLDocument::SetDesignMode, and
around the CanUseStorage bits.  Everything else is pretty mechanical.
2016-10-10 21:07:48 -04:00
Boris Zbarsky bae20efd7f Bug 1298243 part 7. Change DataTransfer.types from being a DOMStringList to being a frozen array. r=mystor,gijs 2016-10-10 21:07:47 -04:00
Boris Zbarsky 668b8a8b2d Bug 1298243 part 6. Remove the unused xpidl versions of DataTransfer.types and DataTransfer.getData. r=mystor 2016-10-10 21:07:47 -04:00
Boris Zbarsky 241a4d12eb Bug 1298243 part 5. Notify the DataTransfer whenever its types list changes. r=mystor 2016-10-10 21:07:47 -04:00
Boris Zbarsky ee441d05fb Bug 1298243 part 4. Drop the pointless ErrorResult from the DataTransferItemList indexed getter. r=mystor 2016-10-10 21:07:47 -04:00
Boris Zbarsky 27b35620e7 Bug 1298243 part 3. Restrict mutation of a DataTransferItem's kind to codepaths that are actually changing its data. r=mystor 2016-10-10 21:07:47 -04:00
Andrea Marchesini 6266ebefa2 Bug 1306222 - Use NeedsSubjectPrincipal in DataTransfer, r=ehsan 2016-09-30 19:54:28 +02:00
Andrea Marchesini b3b8830fcc Bug 1306220 - Get rid of nsIDOMDataTransfer::clearData and mozClearDataAt, r=ehsan 2016-09-29 22:47:01 +02:00
Andrea Marchesini afce29a145 Bug 1297393 - Make passing of subject principals to webidl entry points explicit - part 3 - DataTransferItemList, r=ehsan 2016-09-29 08:55:20 +02:00
Michael Layzell e4a2ac3b82 Bug 1297186 - Correctly propagate principals when getting the files list in DataTransfer, r=enndeakin
MozReview-Commit-ID: 8LRBekaOUJR
2016-09-01 11:22:15 -04:00
Michael Layzell 6dbd9e26cb Bug 1296041 - Check subject principal in Data(), instead of IndexedGetter, r=baku
MozReview-Commit-ID: 4aeGjTejP3z
2016-08-18 15:54:21 -04:00
Michael Layzell bf6425d33d Bug 1290688 - Part 3: Add the application/x-moz-file to the DataTransfer.types list even though the spec says not to for back-compat, r=baku
MozReview-Commit-ID: 1pUfBJyt22P
2016-08-15 13:16:15 -04:00
Michael Layzell aa4b32c8ac Bug 1290688 - Part 2: Don't include the types of files in DataTransfer.types, as per the spec, r=baku 2016-08-15 13:16:13 -04:00
Andrea Marchesini 60ab8339e0 Bug 1288736 - Add some missing rv.SuppressException(), r=smaug 2016-07-22 16:50:10 +02:00
Jimmy Wang aa9a74f34c Bug 1162050 - remove instances of eLegacyDragDrop and dragdrop. r=enn
MozReview-Commit-ID: Di41WT8zcZ1

--HG--
extra : rebase_source : b9502c06b5351d0c75d23b17319c77579ccbb5a1
2016-05-27 16:54:36 -04:00
Jimmy Wang af06755ad8 Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
MozReview-Commit-ID: 8kP1AY4peos

--HG--
extra : rebase_source : 0f64e55770c2b9cfd9737f8da53111bad007dca6
2016-05-27 14:32:59 -04:00
Carsten "Tomcat" Book d2e362e983 Backed out changeset f8fe3acf2e78 (bug 1162050) 2016-07-11 11:18:48 +02:00
Carsten "Tomcat" Book 50ea69d1c5 Backed out changeset 342274a86c0d (bug 1162050) 2016-07-11 11:18:44 +02:00
Jimmy Wang d89f7681bc Bug 1162050 - remove instances of eLegacyDragDrop and dragdrop. r=enn
MozReview-Commit-ID: Di41WT8zcZ1

--HG--
extra : transplant_source : %1D%B5%C0%B3g%2C%EC8%DD%0E%DB%DD%10%A5%81%8F%90o%27%96
2016-05-27 16:54:36 -04:00
Jimmy Wang 209f78f925 Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
MozReview-Commit-ID: 8kP1AY4peos

--HG--
extra : transplant_source : XY2kY%87%AE%2A%C8%E8MV%86L%22%0B%21%5C%90%1B
2016-05-27 14:32:59 -04:00
Andrea Marchesini c51c130742 Bug 1264236 - Implement DataTransfer.getFiles, r=smaug 2016-07-09 11:21:42 +02:00
Michael Layzell 01c990e206 Bug 1278939 - Store nsIFile entries as nsIFile, but continue to produce dom::File objects from relevant APIs, r=enndeakin 2016-07-04 15:45:45 -04:00
Michael Layzell e3f9006f22 Bug 906420 - Part 3: Either expose files or strings generated by system drag or clipboard events to content, not both, r=baku 2016-07-04 15:45:45 -04:00
Michael Layzell 038736ebef Bug 906420 - Part 2: Add support for images to DataTransfer, r=baku 2016-07-04 15:45:45 -04:00
Michael Layzell dde888ae28 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-07-04 15:45:45 -04:00
Carsten "Tomcat" Book afff301b32 Backed out changeset 5c836acf3197 (bug 906420) on developer request by baku
--HG--
extra : rebase_source : 9f109cdb706feef6d2bcd9a2e71f8c4d3c17ebdf
2016-06-09 15:30:53 +02:00
Carsten "Tomcat" Book cec713e0c7 Backed out changeset e3615a839821 (bug 906420)
--HG--
extra : rebase_source : f9898c9163ce45b9ecfeff88a0f140e890f40ef6
2016-06-09 15:30:37 +02:00
Carsten "Tomcat" Book ed14bc0dce Backed out changeset 18b3c95f1a38 (bug 906420)
--HG--
extra : rebase_source : 2cb14884f71aa8a41e56c935abe93755b0b0d8db
2016-06-09 15:30:35 +02:00