• Robert Knight's avatar
    Stop polling for navigations once a frame is disconnected · 27a8f6be
    Robert Knight authored
    Fix a bug in `onDocumentReady` where the callback would fire continuously with
    an error after the frame either navigated to a cross-origin URL, or was removed
    from its parent frame. Also emit a more appropriate error message in the case
    where the frame is disconnected.
    
    In the VitalSource integration this issue manifested in an `onDocumentReady`
    callback firing continuously for the previous chapter's iframe when it was
    removed from the document. This didn't cause an error because the callback
    registered by the VS integration does nothing in that case, but it wasted
    resources.
    27a8f6be
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...