prefiks / u2f4moz

U2F support extension for Firefox
GNU Lesser General Public License v2.1
197 stars 15 forks source link

window.u2f not registered within <iframe> #7

Closed keppler closed 8 years ago

keppler commented 8 years ago

The u2f object is only registered within the "top" window. In our software, we're running U2F registration/signing within an IFRAME. The plugin works fine when all references to "window.u2f" are replaced by "top.u2f", or maybe by doing something like if (typeof window.u2f === 'undefined') window.u2f=top.u2f; (untested). So this issue is not critical (as we have this workaround), but maybe it's cleaner to register "window.u2f" in all frames (if possible).