• Robert Knight's avatar
    Use separate channels for guest / host messages from sidebar · 564e8cfe
    Robert Knight authored
    Use separate channels for sending messages to guests vs the host in the
    sidebar, even for the common case when there is only one guest and it is
    the same frame as the host.
    
    This change makes it clear for readers which part of the annotator code
    is intended to handle a particular message from the sidebar. It is also
    a step towards supporting host frames that are not guests. This will be
    needed in ebook readers where the host frame provides the navigation UI
    and contains the frame displaying the book content, but should not be
    annotatble itself.
    
     - Remove the `bridge` service in the sidebar. The `frameSync` service
       now provides the entry point for other services/components to make RPC calls
       to the host or guest frames. Currently the only use case is
       sending notifications to the host via `FrameSyncService.notifyHost`.
    
     - Create separate `Bridge` instances in `FrameSyncService` for sidebar
       <-> guest and sidebar <-> host communication. The sidebar <-> guest
       bridge works the same as before. The sidebar <-> host bridge
       is established by having `FrameSyncService` create a MessageChannel
       when sending the `hypothesisSidebarReady` notification to the host.
    
       The sidebar / host frames then add respective ports of this channel
       to a Bridge instance.
    
     - Change the various existing RPC calls between frames to use either
       the guest <-> sidebar or host <-> sidebar communication channels as
       appropriate
    564e8cfe
Name
Last commit
Last update
..
AnnotationView-test.js Loading commit data...
AutocompletList-test.js Loading commit data...
Excerpt-test.js Loading commit data...
FilterSelect-test.js Loading commit data...
FilterStatus-test.js Loading commit data...
HelpPanel-test.js Loading commit data...
HypothesisApp-test.js Loading commit data...
LaunchErrorPanel-test.js Loading commit data...
LoggedOutMessage-test.js Loading commit data...
LoginPromptPanel-test.js Loading commit data...
MarkdownEditor-test.js Loading commit data...
MarkdownView-test.js Loading commit data...
Menu-test.js Loading commit data...
MenuItem-test.js Loading commit data...
MenuKeyboardNavigation-test.js Loading commit data...
MenuSection-test.js Loading commit data...
ModerationBanner-test.js Loading commit data...
NotebookFilters-test.js Loading commit data...
NotebookResultCount-test.js Loading commit data...
NotebookView-test.js Loading commit data...
PaginatedThreadList-test.js Loading commit data...
PaginationNavigation-test.js Loading commit data...
SearchInput-test.js Loading commit data...
SelectionTabs-test.js Loading commit data...
ShareAnnotationsPanel-test.js Loading commit data...
ShareLinks-test.js Loading commit data...
SidebarContentError-test.js Loading commit data...
SidebarPanel-test.js Loading commit data...
SidebarView-test.js Loading commit data...
SortMenu-test.js Loading commit data...
StreamSearchInput-test.js Loading commit data...
StreamView-test.js Loading commit data...
TagEditor-test.js Loading commit data...
TagList-test.js Loading commit data...
Thread-test.js Loading commit data...
ThreadCard-test.js Loading commit data...
ThreadList-test.js Loading commit data...
ToastMessages-test.js Loading commit data...
TopBar-test.js Loading commit data...
Tutorial-test.js Loading commit data...
UserMenu-test.js Loading commit data...
VersionInfo-test.js Loading commit data...
slider-test.js Loading commit data...