Closed Bug 1755481 Opened 1 year ago Closed 1 year ago

Correct documentation of `nsIClipboard::getData`

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: mbrodesser, Assigned: mbrodesser)

References

Details

Attachments

(1 file)

No description provided.
Summary: ename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and document it → Rename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and document it

Before, it was confusing. One could have assumed that the method gets
the data for all flavors.

Pushed by mbrodesser@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00f6bd7aa727
rename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and document it. r=mccr8

Backed out for causing multiple clipboard related failures

Backout link

Push with failures

Failure log 1 // Failure log 2 // Failure log 3

Failure line 1: TEST-UNEXPECTED-FAIL | accessible/tests/mochitest/editabletext/test_2.html | uncaught exception - TypeError: Services.clipboard.getData is not a function at getTextFromClipboard@chrome://mochitests/content/a11y/accessible/tests/mochitest/common.js:852:22

Failure line 2: TEST-UNEXPECTED-FAIL | toolkit/components/reader/test/browser_readerMode.js | Uncaught exception in test - at resource://specialpowers/SpecialPowersChild.jsm:1746 - TypeError: Services.clipboard.getData is not a function

Failure line 3: TEST-UNEXPECTED-FAIL | dom/tests/mochitest/general/test_clipboard_events.html | Failed "Failed to initial set/get clipboard text" due to "TypeError: Services.clipboard.getData is not a function"

Flags: needinfo?(mbrodesser)

Also bc2 Failure Log

Thanks for the ni?-request and the backout. I'm testing the fix.

Flags: needinfo?(mbrodesser)
Attachment #9263942 - Attachment description: Bug 1755481: rename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and document it. r=mccr8 → Bug 1755481: correct documentation of `nsIClipboard::getData`. r=mccr8
Summary: Rename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and document it → Correct documentation of `nsIClipboard::getData`
Pushed by mbrodesser@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/25761f33bc0e
correct documentation of `nsIClipboard::getData`. r=mccr8
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.