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

Issue 661015 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug



Sign in to add a comment

CacheStorage.requestCacheNames aw-snaps the current tab if invoked with 'https://*' or 'file://*'

Reported by cyrus....@gmail.com, Nov 1 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

Steps to reproduce the problem:
1. Start Chrome with the `--remote-debugging-port=9222` option;

2. Issue the said method. I used `chrome-remote-interface inspect`[1] but any WebSocket client will do, for example `wscat`[2]:

        $ wscat -c ws://localhost:9222/devtools/page/7076eb2d-eace-4637-b982-6d34984eb69b
        connected (press CTRL+C to quit)
        > { "id": 42, "method": "CacheStorage.requestCacheNames", "params": {"securityOrigin": "https://*"}}
        < {"method":"Inspector.targetCrashed","params":{}}

   The same happens at least with `file://*` too.

[1]: https://github.com/cyrus-and/chrome-remote-interface
[2]: https://github.com/websockets/wscat

What is the expected behavior?
Not "Aw, Snap!".

What went wrong?
"Aw, Snap!".

Did this work before? N/A 

Chrome version: 56.0.2902.0 dev (64-bit)  Channel: dev
OS Version: Debian GNU/Linux 8
Flash Version: 

As a bonus, I was wondering what is the proper syntax of the `securityOrigin` method.

I read [4] and tried several things without luck, i.e., the method always returns an empty array:

    http://*
    *://*:*
    https://github.com
    https://github.com:443
    *

Thanks!

[4]: https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features
 
Owner: dgozman@chromium.org
Cc: dgozman@chromium.org
Labels: -Pri-2 Pri-1
Owner: allada@chromium.org
Status: Assigned (was: Unconfirmed)
Blaise, could you please take a look at this crash?
Labels: Hotlist-Polish
Owner: eostroukhov@chromium.org
Status: WontFix (was: Assigned)
Looks like this was fixed:

$ wscat -c ws://localhost:9222/devtools/page/\(2D0F3E40FB4C70A3720B1A79CCB6F2D2\)
connected (press CTRL+C to quit)
> { "id": 42, "method": "CacheStorage.requestCacheNames", "params": {"securityOrigin": "https://*"}}
< {"id":42,"result":{"caches":[]}}

Sign in to add a comment