Closed Bug 769881 Opened 12 years ago Closed 12 years ago

copyStringToClipboard Optional parameters should go at the end, also this will make it backward compatible for version bumped extensions.

Categories

(Core :: Widget, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: philip.chee, Assigned: ehsan.akhgari)

References

Details

(Keywords: addon-compat)

Attachments

(1 file)

From 722872 Comment 26:
> (In reply to Philip Chee from comment #21)
>> > -  void copyStringToClipboard(in AString aString, in long aClipboardID);
>> > +  void copyStringToClipboard(in AString aString, [optional] in nsIDOMDocument aDoc, in long aClipboardID);
>> 
>> Won't it be better to put the |[optional] in nsIDOMDocument aDoc| at the end
>> to make this method backward compatible for extensions that need to work in
>> more than one version of Firefox/Thunderbird/etc?
> 
> Please file a bug on that and assign it to me.  Thanks!

Also from Comment 23:
> Are you even allowed a non-trailing optional parameter?
Attached patch Patch (v1)Splinter Review
Attachment #638201 - Flags: review?(roc)
http://hg.mozilla.org/mozilla-central/rev/108984fa0a89
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: