New issue
Advanced search Search tips

Issue 813244 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

AddScriptToEvaluateOnNewDocument does not called for sandbox'ed iframes

Reported by dcole...@gmail.com, Feb 16 2018

Issue description

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

Steps to reproduce the problem:
1. Add script to evaluate on new document
2. create iframe with sandbox="allow-same-origin", append it to page's body

What is the expected behavior?
script is called on new document

What went wrong?
script is not called

Did this work before? N/A 

Chrome version: 64.0.3282.140  Channel: dev
OS Version: 
Flash Version:
 
Labels: Needs-Triage-M64
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET Needs-Feedback
dcolecki@ Thanks for the issue.

Request you to please provide a test file where this issue can be reproduced, which will help in further triaging of the issue.

Thanks..
Components: Blink>SecurityFeature>IFrameSandbox

Comment 4 by dcole...@gmail.com, Feb 20 2018

t.html
101 bytes View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Feb 20 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
Components: Platform>DevTools
Owner: pfeldman@chromium.org
Pavel: I don't quite understand the context, but I take it AddScriptToEvaluateOnNewDocument is a dev tools thing. Could you take a look, please?

Comment 7 by dcole...@gmail.com, Feb 21 2018

Sry for confusing you, attaching a nodejs test to reproduce bug:
chromium-browser --remote-debugging-port=1234
node test.js
Result:
start
connected
evaluate
waiting for event

Expected result (or if you comment line 33 with +"i.sandbox=\"allow-same-origin\";"):
start
connected
evaluate
waiting for event
message: onNewDocument
done
test.js
841 bytes View Download
Status: Assigned (was: Unconfirmed)
Friendly ping.
Owner: kozy@chromium.org

Sign in to add a comment