docs: function onBeforeUnloadIE () {
          nativeMethods.setTimeout.call(window, function () {
              //NOTE: except file downloading
              if (document.readyState === 'loading' &&
                  !(document.activeElement && domUtils.isAnchorElement(document.activeElement) &&
                  document.activeElement.hasAttribute('download')))
                  onBeforeUnload();
          }, 0);
      }