New issue
Advanced search Search tips

Issue 646650 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Sep 2017
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

document.body is somtimes undefined when using chrome.declarativeContent.PageStateMatcher

Reported by me.br...@gmail.com, Sep 13 2016

Issue description

Chrome Version       : 55.0.2860.0 (Developer Build) (64-bit) f714d2bd4450811bae2c849b075344eb31814cd6-refs/heads/master@{#418368}
URLs (if applicable) :
Other browsers tested: NO

What steps will reproduce the problem?
(1) Install attached extensions
(2) Open the extensions options page
(3) Click "Request access to all websites" and "Allow" the additional permissions
(4) Open DevTools
(5) Navigate to https://github.com/
(6) The extension will reload the page as long as `document.body` is defined.

The test is failing on the following websites, always:
https://www.amazon.com/
http://www.apple.com/
https://www.airbnb.com/

Works sometimes:
https://github.com/

Is always working on:
https://twitter.com/
https://www.instagram.com/
https://bugs.chromium.org/


What is the expected result?
`document.body` should be always defined


What happens instead?
Randomly `document.body` is not defined.



Please provide any additional information below. Attach a screenshot if
possible.

If the `content_scripts.matches` array in the manifest.json contains `<all_urls>` it will work on every website. Therefore I guess it's somehow related with the optional permission.
 
demo.zip
1.3 KB Download
Project Member

Comment 1 by sheriffbot@chromium.org, Sep 14 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment