Closed
Bug 185033
Opened 22 years ago
Closed 22 years ago
Drag and drop of text broken.
Categories
(Core :: XUL, defect, P2)
Core
XUL
Tracking
()
VERIFIED
FIXED
mozilla1.3beta
People
(Reporter: jasonb, Assigned: peterv)
References
Details
(Keywords: regression)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
With 2002121204 under XP I am unable to highlight text on a Web site and drag
and drop it anywhere.
Note, however, that drag and drop of text still works from within text boxes -
just not text displayed outside of text boxes.
(Unless I'm losing my mind, this was something that could be done - it wasn't
limited to text boxes in the past. If I *AM* losing my mind, then this can be
turned into an enhancement request.)
I couldn't find a dupe of this after a quick Bugzilla search, but might have
just missed it.
Reproducible: Always
Steps to Reproduce:
1. Highlight text on any Web page that is not contained within a text box.
2. Drag and drop it into the Location bar, tab bar, or an input box.
Actual Results:
Nothing happens. (It is neither dragged nor dropped.)
Expected Results:
The text should have been pasted to the destination upon mouse button release.
| Reporter | ||
Updated•22 years ago
|
Keywords: regression
| Reporter | ||
Comment 1•22 years ago
|
||
*** Bug 185036 has been marked as a duplicate of this bug. ***
Data point: My debug build from 8am on 12/10/02 works fine, but my debug build
from 9am on 12/11/02 shows the bug.
This change to nsDOMEvent::GetView() for bug 183999 seems to have broken things.
That is, the CallQueryInterface() fails because nsWebShell doesn't implement
nsIDOMAbstractView so a Drag is never started:
@@ -483,14 +484,10 @@
rv = mPresContext->GetContainer(getter_AddRefs(container));
NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && container, rv);
- nsCOMPtr<nsIInterfaceRequestor> ifrq(do_QueryInterface(container));
- NS_ENSURE_TRUE(ifrq, NS_OK);
-
- nsCOMPtr<nsIDOMWindowInternal> window;
- ifrq->GetInterface(NS_GET_IID(nsIDOMWindowInternal), getter_AddRefs(window));
+ nsCOMPtr<nsIDOMWindowInternal> window = do_GetInterface(container);
NS_ENSURE_TRUE(window, NS_OK);
-
- window->QueryInterface(NS_GET_IID(nsIDOMAbstractView), (void **)aView);
+
+ CallQueryInterface(container, aView);
}
return rv;
Assignee: jaggernaut → peterv
FYI, I did verify that reverting that portion of the patch back to what it was
gets things working again.
Comment 5•22 years ago
|
||
Oh, yikes. Yeah, that should be:
CallQueryInterface(window, aView);
OS: Windows XP → All
Hardware: PC → All
| Assignee | ||
Comment 6•22 years ago
|
||
I corrected the obvious error. I'll see if that fixes it.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.3beta
| Assignee | ||
Comment 7•22 years ago
|
||
Fixed. Sorry.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 8•22 years ago
|
||
Verifying resolution of all bugs I've reported.
(Although drag & drop of text is broken again, it is not for the same reason, so
I will not reopen this one.)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•