• Robert Knight's avatar
    Work around Chrome bug causing sidebar to become invisible · 325741fb
    Robert Knight authored
    Work around a Chrome bug [1] that can cause the sidebar to become
    invisible if:
    
     1. The sidebar app is loaded from a Chrome extension AND
     2. The current tab was opened by clicking a link inside the sidebar
        app in a different tab.
    
    When the issue occurs, the sidebar web app loads and runs normally but
    is just not visible on screen. This happens due to an internal issue in
    Chrome which can be avoided adding `rel="noopener"` to all "normal" [2]
    links in the client that open URLs in a new tab/window.
    
    Doing so enables Chrome to use a separate process for the Hypothesis
    client in the new tab in step (2) than the one used for the Hypothesis
    client in step (1). This change also prevents potential tab-jacking
    attacks in all browsers that support `rel="noopener"`.
    
    Fixes #516
    
    [1] https://bugs.chromium.org/p/chromium/issues/detail?id=753314
    [2] ie. Those which do not use JS to handle the link
    325741fb
Name
Last commit
Last update
..
components Loading commit data...
directive Loading commit data...
filter Loading commit data...
reducers Loading commit data...
templates Loading commit data...
test Loading commit data...
util Loading commit data...
vendor Loading commit data...
analytics.js Loading commit data...
annotation-mapper.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-ui.js Loading commit data...
api-routes.js Loading commit data...
app.js Loading commit data...
auth.js Loading commit data...
build-thread.js Loading commit data...
date-util.js Loading commit data...
drafts.js Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.js Loading commit data...
form-respond.coffee Loading commit data...
frame-sync.js Loading commit data...
ga.js Loading commit data...
get-api-url.js Loading commit data...
groups.js Loading commit data...
host-config.js Loading commit data...
live-reload-client.js Loading commit data...
local-storage.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
oauth-auth.js Loading commit data...
permissions.js Loading commit data...
query-parser.coffee Loading commit data...
raven.js Loading commit data...
render-markdown.js Loading commit data...
retry-util.js Loading commit data...
root-thread.js Loading commit data...
search-client.js Loading commit data...
search-filter.js Loading commit data...
service-config.js Loading commit data...
service-url.js Loading commit data...
session.js Loading commit data...
store.js Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tabs.js Loading commit data...
tags.js Loading commit data...
time.js Loading commit data...
ui-constants.js Loading commit data...
unicode.js Loading commit data...
view-filter.coffee Loading commit data...
virtual-thread-list.js Loading commit data...
websocket.js Loading commit data...