New issue
Advanced search Search tips

Issue 756096 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 754976
Owner: ----
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

DevTools crashes when you pause the execution of a Chrome extension with contentSettings permission and try hovering over `window`

Reported by an...@octanelending.com, Aug 16 2017

Issue description

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

Steps to reproduce the problem:
1. Create a folder to house your extension
2. Add a manifest that requests the contentSettings permission, e.g.:
```
{
    "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
    "description": "Test",
    "manifest_version": 2,
    "name": "Test Extension",
    "permissions": [
        "contentSettings"
    ],
    "optional_permissions": [
        "cookies"
    ],
    "version": "0.0.0",
    "web_accessible_resources": []
}
```
3. Create a script that references window, e.g., index.js:
```
'use strict'
window;
```
4. Create index.html and reference your script:
```
<html>
    <head>
        <script type="text/javascript" src="index.js" charset="utf-8"></script>
    </head>
    <body>
    </body>
</html>
```
5. Launch Chrome, add the unpacked extension
6. Navigate to `chrome-extension://YOUR-EXTENSION-ID/index.html
7. Add a breakpoint on line 2 of index.js
8. Try hovering over `window;`
9. You'll get "Aw, Snap!"

What is the expected behavior?
Not to crash.

What went wrong?
The tab crashes

Did this work before? N/A 

Chrome version: 60.0.3112.101  Channel: stable
OS Version: OS X 10.10.5
Flash Version: 

I narrowed it down to it being a problem with the contentSettings permission by removing it from my manifest.json and then retrying; it's only when the permission is present that the crash occurs.
 
Screen Shot 2017-08-16 at 2.05.10 PM.png
251 KB View Download

Comment 1 by woxxom@gmail.com, Aug 16 2017

Sounds similar to issue 754976.

Mergedinto: 754976
Status: Duplicate (was: Unconfirmed)
Could this possibly be different from issue 754976?  I noticed that this is only triggered when the manifest requests the "contentSettings" permission... sans the permission, the DevTools seem to work fine.

Comment 4 by woxxom@gmail.com, Aug 17 2017

Seems the same. See the developer's explanation in the issue 754976 - it happens because an extension API is automatically requested during paused state on hovering the window object. The crash, though, shouldn't happen. So if they don't fix that other issue, it'd be reasonable to prevent the crash anyway. 

Comment 5 by woxxom@gmail.com, Aug 17 2017

* Introduced in 58.0.2992.0
  Bisect info: 445802 (good) - 445829 (bad)
  https://chromium.googlesource.com/chromium/src/+log/fdab33b3..e003d593?pretty=fuller
  Suspecting r445814 "DevTools: introduce object previews experiment"

* Enabled by default in 60.0.3102.0
  Bisect info: 472006 (good) - 472014 (bad)
  https://chromium.googlesource.com/chromium/src/+log/35c9b946..8cd4a51c?pretty=fuller
  Suspecting r472014 "DevTools: enable object previews experiment by default"

Repro: install the attached extension, follow the displayed instructions
Expected: contents of the object is displayed
Observed: crash of the tab, the extension, and the devtools panel
extension-crash-on-preview.zip
1.4 KB Download
expected.png
29.5 KB View Download

Sign in to add a comment