linux-traipu team mailing list archive
-
linux-traipu team
-
Mailing list archive
-
Message #09625
[Bug 1232575] Re: chrome.extension not available when called from extension scripts in Chromium but works on Chrome
Perfect. I found the fix; it was most likely a syntax/parsing error in
extension.json which then probably caused the entire file to not be
read.
Instead of the following lines:
+ "name": "isChromelessWindow",
+ "type": "function",
+ "unprivileged": true,
+ "description": "Checks is a given extension runs part of a chromeless window.",
use the following lines:
+ "name": "isChromelessWindow",
+ "nocompile": true,
+ "nodoc": true,
+ "type": "function",
+ "description": "Checks is a given extension runs part of a chromeless window.",
We don't have docs in the docs folder, and I'm not sure what nocompile
does.
--
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Chromium Browser.
https://bugs.launchpad.net/bugs/1232575
Title:
chrome.extension not available when called from extension scripts in
Chromium but works on Chrome
Status in Chromium Browser:
Unknown
Status in “chromium-browser” package in Ubuntu:
In Progress
Bug description:
When I updated to 13.10 and Chromium 29.0.1547.65-0ubuntu2, a few
extensions stopped working properly. The easiest to reproduce is
Reddit Enhancement Suite 4.3.0.1, it immediately fails on loading the
extension with this error:
chrome.extension is not available: 'extension' is not allowed for
specified context type content script, extension page, web page,
etc.). [VM] binding (22):427
Following from anywhere that called chrome.extension.sendMessage or
chrome.extension.onMessage in the extension. Chromium's own bug
tracker says this usage is deprecated (replaced by chrome.runtime
namespace which does work) but testing against Chrome 29.0.1547.76 on
the stable channel, the older namespace works correctly with the
extensions.
chromium-browser:
Installed: 29.0.1547.65-0ubuntu2
Candidate: 29.0.1547.65-0ubuntu2
Version table:
*** 29.0.1547.65-0ubuntu2 0
500 http://mirrors.cat.pdx.edu/ubuntu/ saucy/universe amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/chromium-browser/+bug/1232575/+subscriptions