New issue
Advanced search Search tips

Issue 787154 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

DevTools: Runtime.evaluate with returnByValue doesn't handle BoundingRect

Project Member Reported by lushnikov@chromium.org, Nov 20 2017

Issue description

DevTools's Runtime.evlauate with "returnByValue:true" doesn't handle the return value 
of getBoundingClientRect function.

There are certain other examples, e.g. `window.performance`.

It would be really nice if these seemingly innocent objects could be properly stringified by protocol.

This actually surfaced multiple times in pptr: https://github.com/GoogleChrome/puppeteer/issues/1433
 

Comment 1 by kozy@chromium.org, Dec 6 2017

Status: WontFix (was: Assigned)
BoundingRect properties are native accessors in blink, they looks like just property but can trigger side effects. We would like to avoid any sideeffects when protocol method is called with returnByValue. You can use callFunctionOn with JSON.stringify if needed.

Sign in to add a comment