Exceptions thrown in onDrop function of nsDragAndDrop.js leads to side effects

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
13 years ago
10 years ago

People

(Reporter: mimecuvalo, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.60 KB, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

If an exception is thrown while in the onDrop function, the browser will start to load the transferData as a url into the browser.  The url it loads depends on what text is in the transferData.

I will attach a sample test case shortly.

Reproducible: Always

Steps to Reproduce:
1. Open test case in chrome.
2. Perform drag and drop operation.  Exception is thrown manually in the code.
3. Get redirected to a url.
Actual Results:  
Get redirected to a url.

Expected Results:  
Don't get redirected.
(Reporter)

Comment 1

13 years ago
Created attachment 224189 [details]
Test case

Comment 2

10 years ago
The new drag and drop api added in bug 356295 makes nsDragAndDrop.js obsolete.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.