fix(gerrit): fix hovercards under Firefox

Firefox doesn't implement the IE6 fromElement/toElement, and it's
not in the MouseEvent spec (at the moment).

Replace with the worse-named but better-specified target and
relatedTarget attributes instead.

Upstream change: https://gerrit-review.googlesource.com/q/I9eeb26c032a38de9d7185749373c7982c796acb2

Change-Id: I9f9a1eb9342bc80b91b5b364a04cc5fa9a7ccaeb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1442
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Luke Granger-Brown 2020-07-26 01:17:00 +01:00 committed by lukegb
parent c3608fdf87
commit a5c7e03dbd
8 changed files with 42 additions and 6 deletions

View file

@ -48,6 +48,7 @@ pkgs.buildBazelPackage {
./0004-Add-titles-to-CLs-over-HTTP.patch
./0005-When-using-local-fonts-always-assume-Gerrit-is-mount.patch
./0006-Always-use-Google-Fonts.patch
./0007-Fix-gr-hovercard-behavior-under-Firefox.patch
];
bazelTarget = "release";