Showing content from http://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/extension/lastError below:
extension.lastError - Mozilla | MDN
MDN Web Docs
- Mozilla
- Add-ons
- Browser extensions
- JavaScript APIs
- extension
- extension.lastError
Filter sidebar
In this article
- Browser extensions
- Getting started
- What are extensions?
- Your first extension
- Your second extension
- Anatomy of an extension
- Example extensions
- What next?
- Concepts
- JavaScript APIs
- Content scripts
- Background scripts
- Match patterns
- Work with files
- Internationalization
- Content Security Policy
- Native messaging
- Native manifests
- User actions
- Differences between API implementations
- Chrome incompatibilities
- User interface
- Toolbar button
- Address bar button
- Sidebars
- Context menu items
- Options page
- Extension pages
- Notifications
- Address bar suggestions
- devtools panels
- Browser styles
- Popups
- How to
- Intercept HTTP requests
- Modify a web page
- Insert external content
- Share objects with page scripts
- Add a button to the toolbar
- Implement a settings page
- Work with the Tabs API
- Work with the Bookmarks API
- Work with the Cookies API
- Work with contextual identities
- Interact with the clipboard
- Extend the developer tools
- Build a cross-browser extension
- JavaScript APIs
- Browser support for JavaScript APIs
- action
- alarms
- bookmarks
- browserAction
- browserSettings
- browsingData
- captivePortal
- clipboard
- commands
- contentScripts
- contextualIdentities
- cookies
- declarativeNetRequest
- devtools
- dns
- dom
- downloads
- events
- extension
- Methods
getBackgroundPage()
getExtensionTabs()
getURL()
Deprecated
getViews()
isAllowedFileSchemeAccess()
isAllowedIncognitoAccess()
sendRequest()
Deprecated
setUpdateUrlData()
- Properties
inIncognitoContext
lastError
- Types
ViewType
- Events
onRequest
onRequestExternal
- extensionTypes
- find
- history
- i18n
- identity
- idle
- management
- menus
- notifications
- omnibox
- pageAction
- permissions
- pkcs11
- privacy
- proxy
- runtime
- scripting
- search
- sessions
- sidebarAction
- storage
- tabGroups
- tabs
- theme
- topSites
- types
- userScripts
- userScripts (Legacy)
- webNavigation
- webRequest
- windows
- Manifest keys
action
author
background
browser_action
browser_specific_settings
chrome_settings_overrides
chrome_url_overrides
commands
content_scripts
content_security_policy
declarative_net_request
default_locale
description
developer
devtools_page
dictionaries
externally_connectable
homepage_url
host_permissions
icons
incognito
manifest_version
name
offline_enabled
Deprecated
omnibox
optional_host_permissions
optional_permissions
options_page
options_ui
page_action
permissions
protocol_handlers
short_name
sidebar_action
storage
theme
theme_experiment
user_scripts
version
version_name
web_accessible_resources
- Extension Workshop
- Develop
- Publish
- Manage
- Enterprise
- Contact us
- Channels
- Add-ons blog
- Add-ons forum
- Add-ons chat
In this article
extension.lastError
Warning: This function is deprecated, use runtime.lastError
instead.
An alias for runtime.lastError
.
Browser compatibility
Note: This API is based on Chromium's chrome.extension
API. This documentation is derived from extension.json
in the Chromium code.
Help improve MDN Was this page helpful to you? Learn how to contribute
.
This page was last modified on Jul 17, 2025 by MDN contributors.
View this page on GitHub
â¢
Report a problem with this content
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4