Closed
Bug 203365
Opened 23 years ago
Closed 23 years ago
Add an nsIDOMEvent param to nsIClipboardDragDropHooks::OnCopyOrDrag
Categories
(Core Graveyard :: Embedding: APIs, defect)
Core Graveyard
Embedding: APIs
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.4final
People
(Reporter: sfraser_bugs, Assigned: Brade)
References
Details
(Keywords: topembed)
Attachments
(1 file, 1 obsolete file)
|
9.15 KB,
patch
|
cmanske
:
review+
Brade
:
superreview+
asa
:
approval1.4+
|
Details | Diff | Splinter Review |
OnCopyOrDrag needs to take an nsIDOMEvent, which will be null for copies.
| Assignee | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Comment 2•23 years ago
|
||
Comment on attachment 121733 [details] [diff] [review]
fixes for this bug plus some whitespace changes in docshell requested by adamlock
>Index: content/base/src/nsContentAreaDragDrop.cpp
>===================================================================
>- nsresult hookResult = override->OnCopyOrDrag(trans, &doContinueDrag);
>+ nsresult hookResult = override->OnCopyOrDrag(trans, inMouseEvent, &doContinueDrag);
Er, the event is the first param in the IDL. This won't compile.
>Index: layout/base/src/nsCopySupport.cpp
>===================================================================
>RCS file: /cvsroot/mozilla/layout/base/src/nsCopySupport.cpp,v
>retrieving revision 1.23
>diff -u -8 -r1.23 nsCopySupport.cpp
>--- layout/base/src/nsCopySupport.cpp 18 Apr 2003 20:20:02 -0000 1.23
>+++ layout/base/src/nsCopySupport.cpp 25 Apr 2003 22:15:56 -0000
>@@ -309,17 +309,17 @@
> while (NS_SUCCEEDED(enumerator->HasMoreElements(&hasMoreHooks))
> && hasMoreHooks)
> {
> rv = enumerator->GetNext(getter_AddRefs(isupp));
> if (NS_FAILED(rv)) break;
> override = do_QueryInterface(isupp);
> if (override)
> {
>- nsresult hookResult = override->OnCopyOrDrag(aTrans, aDoPutOnClipboard);
>+ nsresult hookResult = override->OnCopyOrDrag(aTrans, nsnull, aDoPutOnClipboard);
The first param should be null.
| Assignee | ||
Comment 3•23 years ago
|
||
Attachment #121733 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Attachment #122037 -
Flags: superreview?(sfraser)
Attachment #122037 -
Flags: review?(cmanske)
| Reporter | ||
Updated•23 years ago
|
Attachment #122037 -
Flags: superreview?(sfraser) → superreview+
Updated•23 years ago
|
Attachment #122037 -
Flags: superreview?(sfraser)
Attachment #122037 -
Flags: superreview+
Attachment #122037 -
Flags: review?(cmanske)
Attachment #122037 -
Flags: review+
| Assignee | ||
Comment 4•23 years ago
|
||
Comment on attachment 122037 [details] [diff] [review]
patch that builds :-)
re-mark sr= from sfraser
Attachment #122037 -
Flags: superreview?(sfraser) → superreview+
| Assignee | ||
Comment 5•23 years ago
|
||
I would like to land this small api change for 1.4beta. Is it too late?
Comment 6•23 years ago
|
||
Too late for 1.4beta. Sorry I didn't see this sooner. To request approval to
land a fix use the patch flag "approval1.x?". The bug flag "blocking1.x?" is
used to nominate a bug for blocking the release (asking drivers to hold the
release until the bug is fixed).
Flags: blocking1.4b? → blocking1.4b-
| Assignee | ||
Updated•23 years ago
|
Attachment #122037 -
Flags: approval1.4?
Comment 7•23 years ago
|
||
Comment on attachment 122037 [details] [diff] [review]
patch that builds :-)
a=asa (on behalf of drivers) for checkin to 1.4.
Attachment #122037 -
Flags: approval1.4? → approval1.4+
| Assignee | ||
Comment 8•23 years ago
|
||
fix checked in for 1.4final
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.4final
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•