chrome.extension.getBackgroundPage doesn't work in Private Mode
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: alexeiatyahoodotcom+mzllbgzll, Unassigned)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•8 years ago
|
||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Comment 24•7 years ago
|
||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
Updated•7 years ago
|
Comment 28•6 years ago
|
||
Comment 29•5 years ago
|
||
The problem is understandable, the browser is designed like this and it is not possible... BUT it is not possible because it was bad designed. It has no sense at all this behavior and should be addressed. Bug (because it is a bug, not a feature) opened 4 years ago and no fix yet.
Comment 30•5 years ago
|
||
(In reply to dcanofr from comment #29)
The problem is understandable, the browser is designed like this and it is not possible... BUT it is not possible because it was bad designed. It has no sense at all this behavior and should be addressed. Bug (because it is a bug, not a feature) opened 4 years ago and no fix yet.
I would say it should never existed in the first place. It's better to keep things encapsulated (less spaghetti).
Anyway, there are workarounds, for example:
- using ES6 modules you can simply import common functions into different parts of your extension
- if you need something from background script, you can use
runtime.sendMessage
to get what you need. Example.
Description
•