• Robert Knight's avatar
    Send frame identifier for guests as part of connection setup · d72c4b1d
    Robert Knight authored
    Guest frames pass an identifier for their associated browser frame to the
    sidebar. The sidebar in turn uses this identifier as a key to refer to different
    guests in various places. This identifier used to be sent as part of the
    `documentInfoChanged` message after a guest <-> sidebar connection is
    established, rather than as part of the initial connection metadata. As a result
    the sidebar had to invent a temporary ID for the new guest, which was used until
    it learned the real ID.
    
    This commit simplifies the picture by adding a `sourceId` attribute to frame
    connection setup messages. This replaces the `frameIdentifier` in the
    `documentInfoChanged` message, and allows the sidebar to know the final ID of
    the guest as soon as it connects.
    d72c4b1d
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.js Loading commit data...
highlighter.js Loading commit data...
hypothesis-injector.js Loading commit data...
icons.js Loading commit data...
index.js 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...