New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 842919 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 844428
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Content script is sometimes injected into chrome://newtab/

Reported by shuto...@gmail.com, May 14 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36

Steps to reproduce the problem:
1. Install DarkReader extension.
2. Browse the web for 2-3 hours.
3. Open new tab.

What is the expected behavior?
Tab looks as always.

What went wrong?
The script is injected into new tab. Background page can communicate with content script via `chrome.runtime.sendMessage` and `chrome.runtime.connect`.

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 66.0.3359.170  Channel: stable
OS Version: OS X 10.13.4
Flash Version: 

Unfortunately I was not able to find out actual steps to reproduce the problem for about a week.

I was able to reproduce it on Windows 10, MacOS 10.13, the issue was also reported for Ubuntu 18.04 https://github.com/darkreader/darkreader/issues/487

Just happens after some period of time. I remember seeing it 2-3 years ago when the extension used `chrome.tabs.injectScript`. Executing `chrome.tabs.query({active: true}, (t) => console.log(t[0].url))` gives `chrome://newtab/`
 
chrome-bug-newtab-contentscript.png
601 KB View Download

Comment 1 by shuto...@gmail.com, May 14 2018

Resetting the theme doesn't help. The bug disappears after closing all windows on Windows, or pressing Quit from context menu on Mac.
Labels: Needs-Triage-M66
Cc: krajshree@chromium.org
Components: Platform>Extensions
Labels: Triaged-ET Needs-Feedback
Unable to reproduce the issue on mac 10.13.3 using chrome reported version #66.0.3359.170 and latest canary #68.0.3431.0.

Following are the steps followed to reproduce the issue.
------------
1. Installed DarkReader extension.
2. Browsed the web for 2-3 hours.
3. Opened new tab.
4. Observed that new tab appear normally.

shutovby@ - Could you please check the issue on latest canary #68.0.3431.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!

Comment 4 by shuto...@gmail.com, May 18 2018

I had a luck to reproduce it today many times in Chrome 68.0.3434.1 Windows 10

Steps to reproduce are strange, but what I did:
1. Open Chrome, open some page.
2. Open new browser window as a Guest, open some page there (I used to open Chrome Web Store page).
3. Focus on some another application for about 2 minutes, go drink a cup of coffee or what you prefer.
4. Return to initial Chrome window and open new tab. It becomes affected by the extension.

But maybe the issue is related to total memory consumption on the system, I don't know (65% oh 8GB in my case).

How do you think, is the issue applicable to some Google security reward?
Project Member

Comment 5 by sheriffbot@chromium.org, May 18 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

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

Comment 6 by shuto...@gmail.com, May 18 2018

Also I was able to reproduce it on Mac with incognito window:

1. Open Chrome with Dark Reader installed, navigate somewhere.
2. Open new incognito tab, navigate somewhere.
3. Focus on some another application.
4. Do push-ups for 2 minutes.
5. Open initial Chrome window.
6. Open new tab. It is affected by the extension.
Mergedinto: 844428
Status: Duplicate (was: Unconfirmed)
Labels: Restrict-View-SecurityTeam
Project Member

Comment 9 by sheriffbot@chromium.org, Sep 6

Labels: -Restrict-View-SecurityTeam allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

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

Sign in to add a comment