Closed Bug 1171979 Opened 10 years ago Closed 10 years ago

Thunderbird: Change usage of draggesture to dragstart, dragdrop to drop

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 45.0

People

(Reporter: enndeakin, Assigned: mkmelin)

References

Details

(Keywords: addon-compat)

Attachments

(1 file, 1 obsolete file)

In bug 1162050, we'd like to remove support for the draggesture and dragdrop events in favour of the standard dragstart and drop events. They should work the same, so it should be a search and replace. In addition, I'd like to remove the old nsDragAndDrop.js library and instead convert to using the standard drag and drop api. This is a more significant amount of work, so Thunderbird could include the existing version in its own code in the meantime.
Component: Untriaged → General
Keywords: addon-compat
It would be great if someone could take on this adaptation from the Thunderbird side. Jorg? Aceman?
I can take a look.
Assignee: nobody → mkmelin+mozilla
Attached patch bug1171979_tb_drag_events.patch (obsolete) — Splinter Review
The cases I tried seem to work Mostly automated + fix a few comments. find ./mail ./mailnews ./calendar -type f -readable -writable -exec sed -i "s/draggesture/dragstart/g" {} \; find ./mail ./mailnews ./calendar -type f -readable -writable -exec sed -i "s/dragdrop/drop/g" {} \; Not completely sure about the jar.mn change, havent't tried building with bug 1162050 applied yet.
Attachment #8616160 - Flags: review?(philipp)
Attachment #8616160 - Flags: review?(bwinton)
Attachment #8616160 - Flags: feedback?(enndeakin)
The jar.mn change should be fine. At least it resolves if I map it to chrome://global/content/nsDragAndDropX.js (for testing)
Comment on attachment 8616160 [details] [diff] [review] bug1171979_tb_drag_events.patch That looks ok, but the intent is to remove the nsDragAndDrop.js file. I'll ensure the other bug has a patch that does this.
Attachment #8616160 - Flags: feedback?(enndeakin) → feedback+
Attachment #8616160 - Flags: review?(philipp) → review+
Including our own copy too, since toolkit is about to remove the file.
Attachment #8616160 - Attachment is obsolete: true
Attachment #8616160 - Flags: review?(bwinton)
Attachment #8621205 - Flags: review?(bwinton)
Comment on attachment 8621205 [details] [diff] [review] bug1171979_tb_drag_events.patch LGTM, assuming you didn't change anything when copying over nsDragAndDrop.js. ;) Thanks, and I apologize for the length of time it took me to review.
Attachment #8621205 - Flags: review?(bwinton) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 45.0
Filed bug 1226362 for using the standard drag drop api.
Backed out - https://hg.mozilla.org/comm-central/rev/7c24277d79ad ValueError: Item already in manifest: chrome/toolkit/content/global/nsDragAndDrop.js https://treeherder.mozilla.org/logviewer.html#?job_id=26473&repo=comm-central
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Magnus Melin from comment #11) > ValueError: Item already in manifest: > chrome/toolkit/content/global/nsDragAndDrop.js > https://treeherder.mozilla.org/logviewer.html#?job_id=26473&repo=comm-central SeaMonkey uses an override. See http://hg.mozilla.org/comm-central/rev/317ca58dbe02
Flags: needinfo?(mkmelin+mozilla)
Thx, Philip! I must have originally tested the patch with the toolkit version eliminated. https://hg.mozilla.org/comm-central/rev/b0fd980cf36e -> FIXED with the manifest adjusted to use an override instead. (try run at https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=666e0912c9b3)
Flags: needinfo?(mkmelin+mozilla)
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Depends on: 1228434
Depends on: 1267804
Depends on: 1268363
Just for the record: This solution was incomplete since ondrop (eDrop) and ondragdrop (eLegacyDragDrop) are *NOT* the same. Read the regression bug 1267804 comment #13 for an analysis.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: