Closed Bug 616755 Opened 15 years ago Closed 15 years ago

make Tab.getThumbnailURL() be Tab.getThumbnail() and update docs from Tab.thumbnail days

Categories

(Add-on SDK Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: irakli)

References

Details

(Whiteboard: [cherry-pick-1.0b1])

Attachments

(3 files)

The Tab.thumbnail property doesn't provide the flexibility that addon authors want from such an interface, as it doesn't allow them to specify the size of the thumbnail generated. And it's particularly problematic from an e10s perspective, since it requires an asynchronous call across the process boundary (unless we intend for the addon process to periodically poll the content process for a new thumbnail, which seems like a bad idea). So I think we should pull it and later implement a getThumbnail(options, callback) method that asynchronously retrieves and returns a thumbnail conforming to options specified by the method call.
Assignee: nobody → rFobic
Attachment #495486 - Flags: review?(myk)
Can we not remove this API? Instead can we implement the suggested solution, with no supported options, and have the default be what we return now?
Comment on attachment 495492 [details] Pointer to pull request After discussion with Dietrich I've implemented another option as well.
Attachment #495492 - Flags: review?(myk)
Actually, it turns out that I was mistaken, as this call across the process boundary can block, since the work being done in the chrome/content process is synchronous. So the only issue is that the docs are incorrect (they refer to a thumbnail property). But let's also make the getThumbnailURL -> getThumbnail change in the process.
Attachment #495988 - Flags: review?(myk)
Attachment #495486 - Flags: review?(myk)
Attachment #495492 - Flags: review?(myk)
Comment on attachment 495988 [details] Pointer to pull request Looks good! r=myk
Attachment #495988 - Flags: review?(myk) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: remove Tab.thumbnail property → make Tab.getThumbnailURL() be Tab.getThumbnail() and update docs from Tab.thumbnail days
Whiteboard: [cherry-pick-1.0b1]
Target Milestone: -- → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: