Bug 78468 - Sandbox not block autofocus on form controls inside iframe when 'allow-scripts' key is not set
Summary: Sandbox not block autofocus on form controls inside iframe when 'allow-script...
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 00:17 PST by jenny cao
Modified: 2012-02-13 21:36 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jenny cao 2012-02-13 00:17:03 PST
the sandbox attribute should block autofocus on form controls inside iframe if the 'allow-scripts' key is not set
spec
==
This flag blocks features that trigger automatically, such as automatically playing a video or automatically focusing a form control. It is relaxed by the same flag as scripts, because when scripts are enabled these features are trivially possible anyway, and it would be unfortunate to force authors to use script to do them when sandboxed rather than allowing them to use the declarative features.
==

that is to say the caret (text cursor) is not on the textbox in the below iframe.

but in the w3c submission test web page http://test.w3.org/html/tests/submission/Microsoft/sandbox/sandbox_003.htm .
the text cursor is on the textbox in the iframe
Comment 1 jenny cao 2012-02-13 00:21:58 PST
The chromium version are 17.0.963.46
Comment 2 Adam Barth 2012-02-13 13:32:21 PST
This should be fixed now.  Does this issue occur in WebKit nightly build?
Comment 3 Adam Barth 2012-02-13 13:32:39 PST
(Or a Chrome Canary build)
Comment 4 jenny cao 2012-02-13 21:36:11 PST
I tried on a Chrome Canary build (19.0.1040.0 canary),
this issue is fixed,
Thanks for your information.
I will close this bug
(In reply to comment #3)
> (Or a Chrome Canary build)