Closed
Bug 503754
Opened 16 years ago
Closed 16 years ago
dragging and dropping a tab on the content area reloads the page before detaching the tab
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: dao, Assigned: enndeakin)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.54 KB,
patch
|
asaf
:
review+
|
Details | Diff | Splinter Review |
Dragging and dropping a tab on the content area reloads the page before detaching the tab. The tab should be detached without reloading.
Flags: blocking-firefox3.6?
Reporter | ||
Updated•16 years ago
|
OS: Windows XP → All
Hardware: x86 → All
![]() |
||
Comment 1•16 years ago
|
||
Regression window:
Fine:
http://hg.mozilla.org/mozilla-central/rev/794b04051344
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090620 Minefield/3.6a1pre ID:20090620042612
Broken:
http://hg.mozilla.org/mozilla-central/rev/a8daae5ef5ce
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090621 Minefield/3.6a1pre ID:20090621041734
Pushlog between the above regression window:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=794b04051344&tochange=a8daae5ef5ce
Candidate bug:
Bug 456106, use new drag and drop api in browser and toolkit
The following workaround patch for chrome://browser/content/browser.jswill fix this isuue.
var contentAreaDNDObserver = {
onDragOver: function (aEvent)
{
var types = aEvent.dataTransfer.types;
if (types.contains("application/x-moz-file") ||
types.contains("text/x-moz-url") ||
types.contains("text/uri-list") ||
types.contains("text/plain"))
aEvent.preventDefault();
},
onDrop: function (aEvent)
{
if (aEvent.getPreventDefault())
return;
+ var dt = aEvent.dataTransfer;
+ var types = dt.mozTypesAt(0);
+ // When drop tab onto contentarea, do nothing here.
+ if (types[0] == TAB_DROP_TYPE)
+ return;
+
let [url, name] = browserDragAndDrop.getDragURLFromDataTransfer(aEvent.dataTransfer);
// valid urls don't contain spaces ' '; if we have a space it
Assignee | ||
Comment 3•16 years ago
|
||
Updated•16 years ago
|
Attachment #389719 -
Flags: review?(mano) → review+
Comment 4•16 years ago
|
||
Comment on attachment 389719 [details] [diff] [review]
check types during drop
r=mano
Assignee | ||
Comment 5•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•16 years ago
|
Flags: blocking-firefox3.6?
You need to log in
before you can comment on or make changes to this bug.
Description
•