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)
Tracking
(Not tracked)
RESOLVED
FIXED
1.0b1
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 | ||
Updated•15 years ago
|
Assignee: nobody → rFobic
| Assignee | ||
Comment 1•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
Attachment #495486 -
Flags: review?(myk)
Comment 2•15 years ago
|
||
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?
| Assignee | ||
Comment 3•15 years ago
|
||
| Assignee | ||
Comment 4•15 years ago
|
||
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)
| Reporter | ||
Comment 5•15 years ago
|
||
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.
| Assignee | ||
Comment 6•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
Attachment #495988 -
Flags: review?(myk)
| Assignee | ||
Updated•15 years ago
|
Attachment #495486 -
Flags: review?(myk)
| Assignee | ||
Updated•15 years ago
|
Attachment #495492 -
Flags: review?(myk)
| Reporter | ||
Comment 7•15 years ago
|
||
Comment on attachment 495988 [details]
Pointer to pull request
Looks good! r=myk
Attachment #495988 -
Flags: review?(myk) → review+
| Reporter | ||
Comment 8•15 years ago
|
||
Irakli landed this in merge commit:
https://github.com/mozilla/addon-sdk/commit/d78a463da3bbd5f25eefc4e536e54b2ebd0ae582
Change commit:
https://github.com/mozilla/addon-sdk/commit/c47ed8d7c6b65f7e09f0104355b1bf7ee5e20126
(plus a couple other merges)
I cherry-picked it in commit:
https://github.com/mozilla/addon-sdk/commit/a2a1a62c07f5dc4890fec95006c8e31353f280bf
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.
Description
•