Closed
Bug 1310193
Opened 9 years ago
Closed 7 years ago
Remove wrapping of nsISupports in transferables
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P3)
Core
DOM: Copy & Paste and Drag & Drop
Tracking
()
RESOLVED
FIXED
mozilla64
People
(Reporter: enndeakin, Assigned: evilpies)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
|
20.24 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Various callers of nsITransferable::SetData will wrap nsISupports in a nsISupportsInterfacePointer, but this shouldn't be needed. Remove these.
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Updated•8 years ago
|
status-firefox56:
--- → wontfix
status-firefox57:
--- → wontfix
status-firefox58:
--- → fix-optional
Priority: -- → P3
Comment 2•7 years ago
|
||
status-firefox59:
--- → ?
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 4•7 years ago
|
||
I rebased the patch. I suspect we might actually be able to completely remove nsISupportsInterfacePointer.
| Assignee | ||
Updated•7 years ago
|
Attachment #9015127 -
Attachment description: Rebased → Remove nsISupportsInterfacePointer usage from nsITransferables
| Assignee | ||
Updated•7 years ago
|
Attachment #8812180 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•7 years ago
|
||
Comment on attachment 9015127 [details] [diff] [review]
Remove nsISupportsInterfacePointer usage from nsITransferables
Review of attachment 9015127 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/extensions/parent/ext-clipboard.js
@@ +53,5 @@
> // a nsIInputStream instance fails.
> // For example HTMLEditor::InsertObject (HTMLEditorDataTransfer.cpp)
> // and DataTransferItem::FillInExternalData (DataTransferItem.cpp).
> //
> // As a work-around, we force nsClipboard::GetNativeClipboardData to
We really need to remove this work-around if we want to remove the length parameter.
| Assignee | ||
Comment 6•7 years ago
|
||
Comment on attachment 9015127 [details] [diff] [review]
Remove nsISupportsInterfacePointer usage from nsITransferables
Patch by Neil (will fix commit author)
Various callers of nsITransferable::SetData will wrap nsISupports in a nsISupportsInterfacePointer, that is not really necessary, we can just use the pointer directly. Most code actually already does that.
Attachment #9015127 -
Flags: review?(bugs)
Comment 7•7 years ago
|
||
Comment on attachment 9015127 [details] [diff] [review]
Remove nsISupportsInterfacePointer usage from nsITransferables
I guess nsISupportsInterfacePointer was used originally to have some more consistency, but in practice it just makes code harder to follow and error prone.
Attachment #9015127 -
Flags: review?(bugs) → review+
Pushed by evilpies@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/15fe5851f113
Remove wrapping of nsISupports as nsISupportsInterfacePointer in transferables. r=smaug
Comment 9•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment 10•7 years ago
|
||
Thanks, all! I'm pleased to see this simplified.
You need to log in
before you can comment on or make changes to this bug.
Description
•