Merge pull request #3023 from simonster/remove-URI-check

Remove DOM window URI check
This commit is contained in:
Brendan Dahl 2013-04-24 18:20:17 -07:00
commit ff616c830f

View File

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