RESOLVED FIXED 71704
iframe sandbox treats vertical tab as a valid delimiter
https://bugs.webkit.org/show_bug.cgi?id=71704
Summary iframe sandbox treats vertical tab as a valid delimiter
Adam Barth
Reported 2011-11-07 10:17:41 PST
iframe sandbox treats vertical tab as a valid delimiter
Attachments
Patch (4.83 KB, patch)
2011-11-07 10:19 PST, Adam Barth
no flags
Adam Barth
Comment 1 2011-11-07 10:19:11 PST
Eric Seidel (no email)
Comment 2 2011-11-07 10:21:39 PST
Comment on attachment 113889 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=113889&action=review > Source/WebCore/page/SecurityOrigin.cpp:555 > + while (start < length && isHTMLSpace(characters[start])) I think we should just reproduce this function locally. I don't think we gain anything by depending on html/ here unless the security origin spec explicitly tries to match html?
Adam Barth
Comment 3 2011-11-07 10:27:07 PST
I'm not really sure where this function should live. It used to make sense in this file when the sandbox bits were stored on SecurityOrigin. When we create the SecurityContext class, it should probably live there. To answer your question more directly, the parsing of these policies is defined in HTML5, and the algorithm in the spec refers to the generic HTML space definition used throughout the spec, which is why I think it makes sense to call this function.
Eric Seidel (no email)
Comment 4 2011-11-07 10:32:45 PST
(In reply to comment #3) > To answer your question more directly, the parsing of these policies is defined in HTML5, and the algorithm in the spec refers to the generic HTML space definition used throughout the spec, which is why I think it makes sense to call this function. Ok. It might make sense to document that that's why we have this seeming dependency inversion. :) But if you feel the spec is good enough documentation for that, that's OK too.
Adam Barth
Comment 5 2011-11-07 10:40:33 PST
Comment on attachment 113889 [details] Patch I'll add a link to the spec when I move this to SecurityContext.
Adam Barth
Comment 6 2011-11-07 13:05:10 PST
Comment on attachment 113889 [details] Patch Clearing flags on attachment: 113889 Committed r99466: <http://trac.webkit.org/changeset/99466>
Adam Barth
Comment 7 2011-11-07 13:05:13 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.