Skip to content

Feature request: downloads and window permissions #9

@lmmx

Description

@lmmx

I'm trying to download a few scientific papers with chromix but can't get the raw function to use chrome.downloads.download [since downloads isn't in the chromi manifest permissions]

chromix raw chrome.downloads.download '{url: http://www.bioscirep.org/bsr/034/e120/034e120.pdf, filename: abcd}'

returns

json parse error: {url: "http://www.bioscirep.org/bsr/034/e120/034e120.pdf", filename: "abcd"}
Chromi 1746990595 error could not find function chrome.downloads.download

Wrapping both/either URL/title in double/single quotes makes no difference to the JSON parsing result - I'm assuming this would go away with sufficient permissions.

The code should definitely work as above, it's functioning within a browser extension I wrote. Would you consider adding permissions downloads and windows* to the manifest? I'd download the repo and run it locally as a dev mode extension but I'd assume chromix-server wouldn't connect then... (?)

​* I'd like windows in permissions as at present when chromix brings a tab into focus, there can be other windows in the way of it. I've not done so before but I'd think it should be trivial to select the window with the focused tab in this event with chrome.windows.getCurrent

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