Status: New
Owner: ----
Labels: Type-Defect Priority-Low

New issue 1042 by felix8a: sometimes it's helpful to know the real browser version
http://code.google.com/p/google-caja/issues/detail?id=1042

caja sometimes exposes browser quirks that are
harmless and probably not worth the effort to normalize.

example 1:
  <table><tr><td id='a'></td></tr></table>
  <script>
    alert(document.getElementById('a').align);
  </script>
in firefox, the result is 'left'.  in other browsers, the result is ''.

example 2:
  <script>
    var a = document.createElement('div');
    a.setAttribute('title', '  123  ');
    alert(a.title.length);
  </script>
in opera, the result is 3.  in other browsers, the result is 7.

I think this is mainly a problem for testsuites.
a test case might want to account for a known quirk
by sniffing the browser version.  however, in a caja
sandbox, the navigator object only mentions caja,
it doesn't expose any info about the real browser.

given that the caja sandbox doesn't prevent indirect
sniffing of the real browser version, I don't think there's
much risk in exposing the real browser version
somewhere in the navigator object.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to