зеркало из https://github.com/mozilla/pjs.git
Fixing all (I think) drag and drop issues between the content area, the personal toolbar, and the bookmarks panel/manager. Includes the inability to drag a bookmark with no name, many links dragged to the bookmarks panel not having a title (79600), and bookmarks dragged to personal toolbar having names like "NC:BookmarksRoot" (85328). r=kerz sr=ben
This commit is contained in:
Родитель
2a8662e526
Коммит
f4b1d45e41
|
@ -143,15 +143,13 @@ var contentAreaDNDObserver = {
|
|||
|
||||
// now create the flavour lists
|
||||
aXferData.data = new TransferData();
|
||||
if (urlstring && isAnchor) {
|
||||
aXferData.data.addDataForFlavour("text/x-moz-url", urlstring + "\n" + titlestring);
|
||||
}
|
||||
|
||||
aXferData.data.addDataForFlavour("text/unicode", isAnchor ? urlstring : titlestring);
|
||||
aXferData.data.addDataForFlavour("text/html", htmlstring);
|
||||
if (urlstring) {
|
||||
aXferData.data.addDataForFlavour("text/x-moz-url", urlstring + "\n" + titlestring);
|
||||
aXferData.data.addDataForFlavour("moz/rdfitem", urlstring + "\n" + titlestring);
|
||||
}
|
||||
else {
|
||||
aXferData.data.addDataForFlavour("moz/rdfitem", titlestring);
|
||||
}
|
||||
|
||||
// we use the url for text/unicode data if an anchor is being dragged, rather than
|
||||
// the title text of the link or the alt text for an anchor image.
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче