Skip to content

Make it work with Chrome pdf plugin #8

@bersbersbers

Description

@bersbersbers

I would love to use this extension to free some pdf from iframes, such as this one:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6919256

However, this is a bit tricky. I have tried to work on this, with the following results.

The context menu can be enabled for the Chrome pdf plugin using
contexts: ['all']
instead of
contexts: ['frame'].

Then, one can use
var url = clickData.srcUrl || clickData.frameUrl || clickData.pageUrl;
to obtain the url to the pdf file in the onClicked listener.

However, tab.id == -1. This is where I am stuck. Are plugin extensions living in some invalid tab rather than the real one? Is this a Chromium bug? Can one maybe use the currently active tab instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions