1. 23 Jan, 2017 1 commit
    • Robert Knight's avatar
      Only import known config params from the host page · 0d95508e
      Robert Knight authored
      The previous method of importing config params allowed the host page to
      override any configuration parameter provided by the service hosting the
      client's app.html file, potentially introducing vulnerabilities.
      
      This PR limits the client to importing only config parameters from a
      whitelist. This also has the benefit of clearly documenting all the
      parameters that can come from the host page in one place in the code.
      0d95508e
  2. 19 Jan, 2017 3 commits
  3. 17 Jan, 2017 2 commits
  4. 16 Jan, 2017 7 commits
  5. 12 Jan, 2017 2 commits
  6. 10 Jan, 2017 7 commits
  7. 09 Jan, 2017 1 commit
  8. 05 Jan, 2017 3 commits
    • Robert Knight's avatar
      Remove initial redirect when sidebar loads · 1c933e5a
      Robert Knight authored
      Avoid redirecting to '/viewer' when the sidebar loads.
      
      This redirect is unnecessary since the sidebar never changes its mode
      once loaded and it caused the viewer embedded on a page to fail to load
      when restoring a closed tab in Chrome.
      
      This may also resolve issues where the user agent disallows the
      'replaceState' call in certain situations (search prod-client reports on
      Sentry for "replaceState")
      
      Fixes #178
      1c933e5a
    • Robert Knight's avatar
      0.50.0 · 26bd2791
      Robert Knight authored
      26bd2791
    • Robert Knight's avatar
      Update Change Log · 743ce656
      Robert Knight authored
      743ce656
  9. 23 Dec, 2016 4 commits
  10. 22 Dec, 2016 1 commit
    • Robert Knight's avatar
      Display annotations in Annotations tab after timeout · cd4039ca
      Robert Knight authored
      Instead of marking annotations as orphans after the anchoring timeout
      expires, instead display them in the Annotations tab but with a visual
      indicator that they have not yet anchored. This avoids showing
      annotations that are still anchoring in the Orphans tab, which can be
      confusing when it happens in long PDF documents with many annotations.
      
       * Add an `$anchorTimeout` flag to annotations that is set if
         annotations fail to anchor within the timeout period.
      
       * Display annotations with this flag set in the Annotations tab,
         on the optimistic basis that they will eventually anchor.
      
       * When rendering annotations with this flag set, display them with
         a quote struck through (same as orphans) to indicate that they are
         pending. The visual representation of the pending state may be
         tweaked in future.
      cd4039ca
  11. 21 Dec, 2016 2 commits
  12. 20 Dec, 2016 1 commit
  13. 19 Dec, 2016 3 commits
    • Robert Knight's avatar
      Remove unused module stub · 51daa256
      Robert Knight authored
      51daa256
    • Robert Knight's avatar
      Consolidate logic for annotation <-> tab assignment · f9ee271c
      Robert Knight authored
      Previously the logic for determining which tab an annotation should appear
      in occurred both in `root-thread.js` where it was used to filter
      annotations based on the selected tab, and in `widget-controller.js` where
      it was used to switch to the tab containing a particular annotation.
      
      Consolidate all the logic for deciding which tab an annotation should
      appear in into a single module. This makes it easier to test that tab
      assignment is correct with different combinations of feature flags and
      annotation states and to add additional logic in future.
      f9ee271c
    • Robert Knight's avatar
      Move the list of connected frames to the Redux store · 5df4a9cd
      Robert Knight authored
      Move metadata about the frames that are connected to the sidebar app,
      such as the document's URL and fingerprint, to the central app state
      store.
      
      This is part of an effort to unify how important application state is
      managed.
      5df4a9cd
  14. 16 Dec, 2016 2 commits
  15. 30 Nov, 2016 1 commit