Closed
Bug 571074
Opened 14 years ago
Closed 5 years ago
nsTransferable::GetTransferData callers depend on valid out params also when it returns an error
Categories
(Core :: DOM: Serializers, defect)
Core
DOM: Serializers
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: evilpie)
References
Details
Attachments
(2 files)
(Follow-up from bug 565392 comment 10) nsTransferable::GetTransferData callers depend on valid out params also when it returns an error.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → evilpies
Assignee | ||
Comment 1•6 years ago
|
||
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f9900ac6071c Mark nsITransferable.getTransferData as [must_use]. r=mats
Comment 3•6 years ago
|
||
Backed out for failing clipboard at browser/base/content/test/general/browser_clipboard.js Push that failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=f9900ac6071c17ff7af3ccfaf2a8ce02ea66cffc Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=214722805&repo=autoland&lineNumber=6278 Backout: https://hg.mozilla.org/integration/autoland/rev/1e64f8c3f949bb16b4981f255033021b42118586
Flags: needinfo?(evilpies)
Assignee | ||
Comment 4•6 years ago
|
||
In HTMLEditor::PasteInternal, the kHTMLContext and/or kHTMLInfo MIME types on the clipboard should not be required to paste.
Flags: needinfo?(evilpies)
Assignee | ||
Comment 5•5 years ago
|
||
nsContentUtils::TransferableToIPCTransferable changed in behavior, because we don't add an empty item anymore, but instead skip it. I think for that we should first clean this up.
Assignee | ||
Comment 6•5 years ago
|
||
While trying to handle a failed GetTransferData call I made some mistake, mostly because this function has incredibily confusing control flow. I would actually assume some of its current behavior is not intentional. For this we assume that data == nullptr <-> NS_FAILED(rv), this is probably not 100% correct, but doesn't seem to matter in practice. (This is a change in behavior that is intentional, because we want to check return value) If we trace the data == nullptr case through the old code, we realize that for aInSyncMessage we will just continue. (This is because nullptr doesn't queryInterface to anything)
Assignee | ||
Updated•5 years ago
|
Keywords: leave-open
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/b90c87fbab03 Refactor nsContentUtils::TransferableToIPCTransferable to make error handling more obvious. r=smaug
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b90c87fbab03
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2e4c5ef41c73 Mark nsITransferable.getTransferData as [must_use]. r=mats
Assignee | ||
Updated•5 years ago
|
Keywords: leave-open
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2e4c5ef41c73
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•