Closed
Bug 1213473
(webext-runtime)
Opened 9 years ago
Closed 8 years ago
Complete the implementation of chrome.runtime
Categories
(WebExtensions :: General, defect, P2)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: andy+bugzilla, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [runtime]triaged)
The methods on the API are:
https://developer.chrome.com/extensions/runtime
Currently implemented:
onStartup
getManifest − object chrome.runtime.getManifest()
getURL − string chrome.runtime.getURL(string path)
id
sendMessage − chrome.runtime.sendMessage(string extensionId, any message, object options, function responseCallback)
onMessage
onConnect
To be implemented:
Types
Port
MessageSender
PlatformOs
PlatformArch
PlatformNaclArch
PlatformInfo
RequestUpdateCheckStatus
OnInstalledReason
OnRestartRequiredReason
Properties
lastError
Methods
getBackgroundPage − chrome.runtime.getBackgroundPage(function callback)
openOptionsPage − chrome.runtime.openOptionsPage(function callback)
setUninstallURL − chrome.runtime.setUninstallURL(string url, function callback)
reload − chrome.runtime.reload()
requestUpdateCheck − chrome.runtime.requestUpdateCheck(function callback)
restart − chrome.runtime.restart()
connect − Port chrome.runtime.connect(string extensionId, object connectInfo)
connectNative − Port chrome.runtime.connectNative(string application)
sendNativeMessage − chrome.runtime.sendNativeMessage(string application, object message, function responseCallback)
getPlatformInfo − chrome.runtime.getPlatformInfo(function callback)
getPackageDirectoryEntry − chrome.runtime.getPackageDirectoryEntry(function callback)
Events
onInstalled
onSuspend
onSuspendCanceled
onUpdateAvailable
onBrowserUpdateAvailable
onConnectExternal
onMessageExternal
onRestartRequired
Reporter | ||
Comment 1•9 years ago
|
||
chrome.runtime.getPlatformInfo used by Ghostery
Blocks: e10s-ghostery
Reporter | ||
Updated•9 years ago
|
Flags: blocking-webextensions-
Comment 2•9 years ago
|
||
(In reply to Andy McKay [:andym] from comment #0)
> onUpdateAvailable
We're working on a way for add-ons to delay update in bug 1231172, I think that could be used to implement chrome.runtime.onUpdateAvailable() as it is currently documented in https://developer.chrome.com/extensions/runtime#event-onUpdateAvailable
Reporter | ||
Updated•9 years ago
|
Whiteboard: [runtime] → [runtime]triaged
Updated•9 years ago
|
Alias: webext-runtime
Updated•9 years ago
|
Updated•8 years ago
|
Comment 3•8 years ago
|
||
The Reddit Enhancement Suite needs the `chrome.runtime.lastError` property.
Updated•8 years ago
|
No longer blocks: webext-port-reddit-enhancement-suite
Comment 4•8 years ago
|
||
(Actually, we apparently *do* support runtime.lastError. No longer blocks 1208765.)
Reporter | ||
Comment 5•8 years ago
|
||
Matt has both the blocking bugs so gets the tracker.
Component: WebExtensions: Untriaged → WebExtensions: General
Flags: blocking-webextensions-
Priority: -- → P2
Reporter | ||
Comment 6•8 years ago
|
||
There are a couple of things not implemented by runtime, mostly by design, so I'm calling this bug done. The two remaining tracking bugs are about test improvements and not the runtime API itself.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•