Closed Bug 1551779 Opened 5 years ago Closed 5 years ago

Stop using [array] in places IDLs

Categories

(Toolkit :: Places, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 2 open bugs)

Details

Attachments

(6 files, 1 obsolete file)

No description provided.
Blocks: 1551782

The old code used variants with SetAsAUTF8String, which would get converted to
a string when going into JS. We can just use Array<AUTF8String> directly
instead. C++ callers would need to change, but there aren't any.

That said, there are no non-test callers either, so maybe we could just remove
this API?

I audited the various callsites that pass in nsIFaviconDataCallback to
nsIFaviconService methods. I think I got all the ones that needed changing...

Blocks: 1552149

I'm going to move part 7 to a different bug, and see whether I can avoid that data copy it adds.

Attachment #9065054 - Attachment is obsolete: true
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/722c158c5386
part 1.  Stop using [array] for get/setTransitions in nsINavHistoryService.  r=mak
https://hg.mozilla.org/integration/autoland/rev/f5db7f234584
part 2.  Stop using [array] for get/setParents in nsINavHistoryService.  r=mak
https://hg.mozilla.org/integration/autoland/rev/4c91b3e1fede
part 3.  Stop using [array] for nsINavHistoryService.getObservers and nsINavBookmarksService.getObservers.  r=mak
https://hg.mozilla.org/integration/autoland/rev/87a537f8e5a8
part 4.  Stop using [array] for getItemAnnotationNames.  r=mak
https://hg.mozilla.org/integration/autoland/rev/5db31f792bf4
part 5.  Stop using [array] for getTagsForURI.  r=mak
https://hg.mozilla.org/integration/autoland/rev/fb8cc6cad30a
part 6.  Stop using [array] for replaceFaviconData.  r=mak
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: