Browse Source

Remove DOM window URI check

Per discussion in #2937
Simon Kornblith 12 years ago
parent
commit
f524eaefe2
  1. 5
      extensions/firefox/components/PdfStreamConverter.js

5
extensions/firefox/components/PdfStreamConverter.js

@ -765,8 +765,6 @@ PdfStreamConverter.prototype = { @@ -765,8 +765,6 @@ PdfStreamConverter.prototype = {
// We get the DOM window here instead of before the request since it
// may have changed during a redirect.
var domWindow = getDOMWindow(channel);
// Double check the url is still the correct one.
if (domWindow.document.documentURIObject.equals(aRequest.URI)) {
var actions;
if (rangeRequest) {
// We are going to be issuing range requests, so cancel the
@ -790,9 +788,6 @@ PdfStreamConverter.prototype = { @@ -790,9 +788,6 @@ PdfStreamConverter.prototype = {
chromeWindow);
findEventManager.bind();
}
} else {
log('Dom window url did not match request url.');
}
listener.onStopRequest(aRequest, context, statusCode);
}
};

Loading…
Cancel
Save