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)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 45.0
People
(Reporter: enndeakin, Assigned: mkmelin)
References
Details
(Keywords: addon-compat)
Attachments
(1 file, 1 obsolete file)
|
49.40 KB,
patch
|
bwinton
:
review+
|
Details | Diff | Splinter Review |
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.
Updated•10 years ago
|
Component: Untriaged → General
Keywords: addon-compat
Comment 1•10 years ago
|
||
It would be great if someone could take on this adaptation from the Thunderbird side. Jorg? Aceman?
| Assignee | ||
Comment 3•10 years ago
|
||
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)
| Assignee | ||
Comment 4•10 years ago
|
||
The jar.mn change should be fine. At least it resolves if I map it to chrome://global/content/nsDragAndDropX.js (for testing)
| Reporter | ||
Comment 5•10 years ago
|
||
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+
Updated•10 years ago
|
Attachment #8616160 -
Flags: review?(philipp) → review+
| Assignee | ||
Comment 6•10 years ago
|
||
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 8•10 years ago
|
||
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+
| Assignee | ||
Comment 9•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 45.0
| Assignee | ||
Comment 10•10 years ago
|
||
Filed bug 1226362 for using the standard drag drop api.
| Assignee | ||
Comment 11•10 years ago
|
||
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 → ---
Comment 12•10 years ago
|
||
(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)
| Assignee | ||
Comment 13•10 years ago
|
||
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)
| Assignee | ||
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 14•9 years ago
|
||
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.
Description
•