Instance Method

visibleContentsAsDataURL

Fetches a data URL for an image of the tab’s visible contents.

Declaration

void visibleContentsAsDataURL(in function callback);

Parameters

callback

A function that takes a single DOMString argument, the image of the visible contents of the tab as a data URL.

Discussion

The data URL is a base-64 encoded PNG.

See Also

Getting Information About Browser Tabs

browserWindow

The browser window containing this tab.

private

Indicates whether this tab uses Private Browsing.

reader

The Reader view associated with this tab.

title

The tab’s current title.

page

A proxy object for the the web content displayed in the tab.

url

The URL loaded in this tab.