Closed Bug 203365 Opened 23 years ago Closed 23 years ago

Add an nsIDOMEvent param to nsIClipboardDragDropHooks::OnCopyOrDrag

Categories

(Core Graveyard :: Embedding: APIs, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.4final

People

(Reporter: sfraser_bugs, Assigned: Brade)

References

Details

(Keywords: topembed)

Attachments

(1 file, 1 obsolete file)

OnCopyOrDrag needs to take an nsIDOMEvent, which will be null for copies.
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.
Attachment #121733 - Attachment is obsolete: true
Attachment #122037 - Flags: superreview?(sfraser)
Attachment #122037 - Flags: review?(cmanske)
Attachment #122037 - Flags: superreview?(sfraser) → superreview+
Attachment #122037 - Flags: superreview?(sfraser)
Attachment #122037 - Flags: superreview+
Attachment #122037 - Flags: review?(cmanske)
Attachment #122037 - Flags: review+
Comment on attachment 122037 [details] [diff] [review] patch that builds :-) re-mark sr= from sfraser
Attachment #122037 - Flags: superreview?(sfraser) → superreview+
I would like to land this small api change for 1.4beta. Is it too late?
Blocks: 197121
Status: NEW → ASSIGNED
Flags: blocking1.4b?
Keywords: topembed
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-
Attachment #122037 - Flags: approval1.4?
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+
fix checked in for 1.4final
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.4final
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: