declarativeContent.RequestContentScript not working in incognito mode (split)
Reported by
ivanri...@yahoo.com.ar,
Mar 24 2018
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Steps to reproduce the problem: 1. Allow the extension in incognito mode 2. Open a new incognito window 3. Press the extension action button 4. The HTML body on test.com should be replaced to 'WORKED!' What is the expected behavior? Rule defined with `chrome.declarativeContent.onPageChanged` works only in normal mode, but it should work too on Incognito mode. What went wrong? The `chrome.declarativeContent` API is not working in Incognito mode. I tried the solution posted at https://stackoverflow.com/a/25537746 for `chrome.runtime.onInstalled` but it does not work either. At least for `chrome.declarativeContent.onPageChanged` and a rule with `PageStateMatcher` and `RequestContentScript`. Tested on Chrome 65 and 49. I don't know if this is a bug on Chromium or if using `PageStateMatcher`/`RequestContentScript` is blocked in Incognito mode for some reason. Note: This issue differs from https://bugs.chromium.org/p/chromium/issues/detail?id=408326 Did this work before? No Does this work in other browsers? N/A Chrome version: 65.0.3325.181 Channel: stable OS Version: 10.0 Flash Version:
,
Mar 24 2018
> So apparently declarativeContent.ShowPageAction is broken. That should have been "declarativeContent.RequestContentScript is broken in split incognito mode".
,
Mar 24 2018
Rob, thanks for narrow it down! Looking at your issue https://bugs.chromium.org/p/chromium/issues/detail?id=708115 (which I faced too) posted almost a year ago it seems I will have to think for a work-around in incognito mode :)
,
Apr 12 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by rob@robwu.nl
, Mar 24 2018Components: Platform>Extensions>API
Labels: OS-Chrome OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Summary: declarativeContent.RequestContentScript not working in incognito mode (split) (was: declarativeContent not working in incognito mode (split))