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

Issue 651567 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Proxying window.caches not working

Reported by arbesf...@gmail.com, Sep 29 2016

Issue description

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

Steps to reproduce the problem:
https://jsfiddle.net/nmther6v/

What is the expected behavior?
I should be able to access window.caches via a proxy.

What went wrong?
It threw an error.

Did this work before? No 

Chrome version: 53.0.2785.116  Channel: n/a
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 23.0 r0
 
Components: -Blink Blink>JavaScript
This is the second bug in 2 days related to Proxy. Is this a regression?
Cc: littledan@chromium.org adamk@chromium.org
Components: -Blink>JavaScript Blink>JavaScript>Language
"VM70:51 Uncaught TypeError: 'get' on proxy: property 'caches' is a read-only and non-configurable data property on the proxy target but the proxy did not return its actual value (expected '#<CacheStorage>' but got '[object Object]')"

Is it even intended that it works with window?

Comment 3 by adamk@chromium.org, Oct 4 2016

Owner: adamk@chromium.org
Status: WontFix (was: Unconfirmed)
This is working as intended per spec, see https://tc39.github.io/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-get-p-receiver step 10.a.i. The error message explains pretty clearly what the problem is (and matches up with the informative NOTE in the same bit of the spec).

Comment 4 by arbesf...@gmail.com, Oct 11 2016

I'm curious if this spec will be visited at any point? I'm looking to proxy host objects in the browser to be able to emulate behavior across sessions.

Comment 5 by adamk@chromium.org, Oct 11 2016

I would recommend filing an issue against the spec, with an explanation of your use case, at https://github.com/tc39/ecma262/issues/

Sign in to add a comment