Bug 124695
Summary: | invalid keygen keytypes are not returning an empty string | ||
---|---|---|---|
Product: | WebKit | Reporter: | Patrick Kettner <patrickkettner> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | data:text/html, <keygen keytype="notrsa"> |
Patrick Kettner
If you go to data:text/html, <keygen keytype="notrsa">, and use javascript to query to keytype, it returns 'notrsa'
According to the spec (http://www.w3.org/TR/2012/WD-html5-20121025/the-keygen-element.html#attr-keygen-keytype), if the keytype is not 'rsa', it should return an empty string. The reasoning is to allow for feature detection on browsers that can't provide native encryption.
This bug is particular troubling because it means there is no easy way to detect wether or not iOS/Android browsers support encryption.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Patrick Kettner
This issue has been fixed in chrome - https://code.google.com/p/chromium/issues/detail?id=321862
Ahmad Saleem
<keygen> related code was deleted as part of this commit:
https://github.com/WebKit/WebKit/commit/eb67381495b5815bca642c03f8f5171a8b59c551
Marking this bug as "RESOLVED WONTFIX". Thanks!