-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE has multiple severe errors in the console log file #466
Comments
@kimtuck THanks for reporting this. Do you see 1 and 2 on all books or just some specific ones? |
#1 -- first message occurs a lot; there is a console.error line that outputs this. I don't consider this an error; and the console.error statement could be removed. #2 I don't know yet. I've been working on other things for a while and so I haven't had time to investigate further. #3 is not a readium issue per se; the publisher included a file with a mimetype that is not recognized by the browser; and thus the browser issues this error. The file in question is a css file; and is included by the xhtml file; but the manifest says it is of some other mimetype, not text/css. |
I have observed #1 as well. However, just the I can add that I observe (consequently, I presume) IE making requests for the referenced content of the document from the stated (incorrect in our case at least, our application is hosted from a different domain than the content) base URI, which 404, and then again from the desired base URI. |
The iframes that host EPUB content documents (HTML files) are actually fed with BlobURIs in the cloud reader (rather than a regular URL), or via https://github.com/readium/readium-js/blob/develop/js/epub-fetch/iframe_zip_loader.js#L36 if (!iframe.baseURI) {
if (isIE && iframe.ownerDocument.defaultView.frameElement) {
//console.debug(iframe.ownerDocument.defaultView.location);
iframe.baseURI = iframe.ownerDocument.defaultView.frameElement.getAttribute("data-loadUri");
console.log("EPUB doc iframe src (BEFORE):");
console.log(src);
src = new URI(src).absoluteTo(iframe.baseURI).search('').hash('').toString();
}
else if (typeof location !== 'undefined') {
iframe.baseURI = location.href + "";
}
console.error("!iframe.baseURI => " + iframe.baseURI);
} |
When I view a particular epub in IE, I see a number of errors that I don't see when I view the same document in Chrome and Firefox. I have protractor tests that, at the end of each test, check the console.log to see if any severe errors were output. If severe errors occurred, then the test is failed.
So, these severe errors are preventing my protractor tests from passing in IE.
UPDATE: #3 is an issue caused by the inclusion of a file in the epub, where the mimetype of the file is not one that is recognized by readium.
The text was updated successfully, but these errors were encountered: