Closed
Bug 1427463
Opened 6 years ago
Closed 6 years ago
Implement tabs.captureTab(tabId)
Categories
(WebExtensions :: General, enhancement, P5)
WebExtensions
General
Tracking
(firefox59 fixed)
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: ntim, Assigned: ntim)
References
(Depends on 1 open bug)
Details
(Keywords: dev-doc-complete, Whiteboard: [design-decision-approved])
Attachments
(1 file)
It seems absolutely arbitrary that we can only do tabs.captureVisibleTab() especially when we can already call ctx.drawWindow in a content script for background tabs, that allows doing the same thing, just in a much less convenient and more limited way (AMO/about pages unsupported for content scripts). So I would like a tabs.captureTab(tabId) that provides the convenience of captureVisibleTab for all tabs without running into the limitations of content scripts. I need this because I'm creating a new mode for VivaldiFox that allows matching the header color with the two first pixels of the page. You might think tabs.captureVisibleTab() does that perfectly fine, but unfortunately I need to wait for the page to load before I can capture a shot, which means it could capture the wrong tab if the user has switched tabs in between.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → ntim.bugs
Status: NEW → ASSIGNED
Updated•6 years ago
|
Severity: normal → enhancement
Priority: -- → P5
Whiteboard: [design-decision-needed]
Comment 1•6 years ago
|
||
Hi Tim, this has been added to the agenda for the January 9, 2018 WebExtensions APIs triage. Would you be able to join us? Here’s a quick overview of what to expect at the triage: * We normally spend 5 minutes per bug * The more information in the bug, the better * The goal of the triage is to give a general thumbs up or thumbs down on a proposal; we won't be going deep into implementation details Relevant Links: * Wiki for the meeting: https://wiki.mozilla.org/WebExtensions/Triage#Next_Meeting * Meeting agenda: https://docs.google.com/document/d/15JYw3L1490dKbr6yTLz1uirH8rfhcSiLJCubSWDlnfs/edit# * Vision doc for WebExtensions: https://wiki.mozilla.org/WebExtensions/Vision
Updated•6 years ago
|
Whiteboard: [design-decision-needed] → [design-decision-approved]
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8941424 [details] Bug 1427463 - Implement tabs.captureTab(tabId). https://reviewboard.mozilla.org/r/211726/#review219022
Attachment #8941424 -
Flags: review?(mixedpuppy) → review+
Pushed by ntim.bugs@gmail.com: https://hg.mozilla.org/integration/autoland/rev/514a4f908be4 Implement tabs.captureTab(tabId). r=mixedpuppy
Updated•6 years ago
|
Keywords: dev-doc-needed
Comment 5•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/514a4f908be4
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Comment 6•6 years ago
|
||
Is manual testing required on this bug? If Yes, please provide some STR and the proper webextension(if required), if No set the “qe-verify-“ flag.
Flags: needinfo?(ntim.bugs)
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(ntim.bugs) → qe-verify-
Comment 7•6 years ago
|
||
Added a page on this: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/captureTab Let me know if this covers it! The compat data is also in review: https://github.com/mdn/browser-compat-data/pull/945
Flags: needinfo?(ntim.bugs)
Assignee | ||
Comment 8•6 years ago
|
||
(In reply to Will Bamberg [:wbamberg] from comment #7) > Added a page on this: > https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs/captureTab > > Let me know if this covers it! > > The compat data is also in review: > https://github.com/mdn/browser-compat-data/pull/945 looks good, thanks
Flags: needinfo?(ntim.bugs)
Updated•6 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
Comment 9•6 years ago
|
||
Great feature! Thanks a lot! One issue though, I'm pretty sure `chrome.tabs.captureTab` with callback function is still capturing active tab only. Function `browser.tabs.captureTab` works perfect.
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to juraj.masiar from comment #9) > Great feature! Thanks a lot! > > One issue though, I'm pretty sure `chrome.tabs.captureTab` with callback > function is still capturing active tab only. > Function `browser.tabs.captureTab` works perfect. It's not meant to be used with a callback function.
Updated•6 years ago
|
Product: Toolkit → WebExtensions
Comment 11•5 years ago
|
||
Just to verify - this API is not on Android on purpose, right?
In such case, please merge this PR if you can to update the docs:
https://github.com/mdn/browser-compat-data/pull/3714
You need to log in
before you can comment on or make changes to this bug.
Description
•