This makes exception text to be accessible to JS outside of
cdn.googlesource.com domain.
See related https://crbug.com/690301
Bug: Issue 5509
Change-Id: Ib44037c8f5685e7fd25e6c8b057152e920503691
According to https://crbug.com/678429 the issue was that the script
tag doesn’t know to use the resource unless as="script" is added to
the preload tag. Separately, crossorigin="anonymous" is removed
because when it’s present it causes a double download.
Change-Id: I59478fd6a6cb150b0032b5a6e6f7d078b1791d77
JS exceptions are being muted by exception reporting pipeline in
production because of CORS-related settings. I'm not yet certain what
and how, and this potentially could be attributed to preload-specific
behavior.
Also, fall back for such exceptions to default 'Script Error' message.
@see https://bugs.chromium.org/p/gerrit/issues/detail?id=5471#c7
Change-Id: I073118002ef2516ae6c3d9ec02f0393e36caeaf3
Eliminate visual negative effects (such as invisible text or reflow)
caused by the font being unavailable while the browser attempts to use
it in the DOM.
Change-Id: Ia9c8562a76df1ee4adebe20b3dceb17c230b3739
Some specificity is needed via !important due to bugs that
appear to be fixed in the latest version of Polymer[1]. An
update of those libs will come in a later change.
[1] https://github.com/Polymer/polymer/issues/2531
Bug: Issue 3908
Change-Id: I384b27143471da266f752b247e87ab53886ff6c5
This change introduces a dependency of the routing behavior on
whether the user is logged in. Since the WebComponentsReady event
can fire before OR after the account info is retrieved, a Promise
is used to ensure deterministic ordering via `accountReady`.
There is also some minor cleanup of which element is being used
as the global `app` object.
Feature: Issue 3700
Change-Id: I9768f2eabd5cdb7c62ead16ae97df5c1c321eaf6
With Buck, we won't easily be able to follow the <!-- build:js -->
directive in index.html to combine multiple .js files into a single
app.js. Instead, move those includes into the top-level component
gr-app.html, so vulcanize will simply inline them. This leaves
index.html as a simple unvulcanized shim that will just load the
polyfills and the top-level app.
After this change, we can vulcanize gr-app.html and just swap out one
path in index.html, otherwise serving it as-is.
Change-Id: I782c4bbd259c03c2d7e2d33342462510a91f32e3
This is the beginnings of an experimental new non-GWT web UI developed
using a modern JS web framework, http://www.polymer-project.org/. It
will coexist alongside the GWT UI until it is feature-complete.
The functionality of this change is light years from complete, with
a full laundry list of things that don't work. This change is simply
meant to get the starting work in and continue iteration afterward.
The contents of the polygerrit-ui directory started as the full tree of
https://github.com/andybons/polygerrit at 219f531, plus a few more
local changes since review started. In the future this directory will
be pruned, rearranged, and integrated with the Buck build.
Change-Id: Ifb6f5429e8031ee049225cdafa244ad1c21bf5b5