working on it, noted that in the pull request that I need to fix parts of
this. will add finding out why window is not being tabbed to. test cases
are not facing same problem


On Sat, Oct 5, 2013 at 3:11 AM, Yaffle <notifications@github.com> wrote:

> In dialog-polyfill.js:
>
> > +      }
> > +      else {
> > +        blurredElement = null;
> > +      }
> > +    }
> > +    return true;
> > +  }, true);
> > +
> > +  window.addEventListener('focus', function (e) {
> > +    var currentModalDialog = self.pendingDialogStack[self.pendingDialogStack.length-1];
> > +    if (currentModalDialog) {
> > +      // we need to check for wrapping (comparing position) and cursor resets (window)
> > +      switch ((e.target == window && 2) || e.target.compareDocumentPosition(currentModalDialog)) {
> > +        case 2://DOCUMENT_POSITION_PRECEDING:
> > +        case 16://DOCUMENT_POSITION_CONTAINED_BY:
> > +          e.target.blur();
>
> i uploaded your https://github.com/bmeck/dialog-polyfill, seems this
> method gives nothing useful in Chrome, activeElement is still window and i
> cannot reach "address bar" with tab
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/GoogleChrome/dialog-polyfill/pull/5/files#r6783294>
> .
>