• Robert Knight's avatar
    Unload client from iframes when it is unloaded in the host frame · f18218f7
    Robert Knight authored
    When the client is unloaded in a frame H, ensure that it is also unloaded from
    guest frames whose host frame is H. This enables toggling the browser
    extension's active state to work properly in VitalSource Bookshelf and other
    pages which have annotation-enabled iframes.
    
    This works by having the `Guest` instance in the iframe listen for the existing
    "close" message from its connection to the host frame, and relaying that to the
    entry point via a "hostDisconnected" event, which then handles it in the same
    way as if the client had been unloaded directly in the guest frame.
    f18218f7
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
integrations Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
bucket-bar-client.js Loading commit data...
bucket-bar.js Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.ts Loading commit data...
highlight-clusters.tsx Loading commit data...
highlighter.ts Loading commit data...
hypothesis-injector.js Loading commit data...
icons.js Loading commit data...
index.ts Loading commit data...
notebook.js Loading commit data...
range-util.js Loading commit data...
selection-observer.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.js Loading commit data...
toolbar.js Loading commit data...