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>
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			960 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			960 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 73edc92dfa584117f6a4373388c9bc47e50a5713 Mon Sep 17 00:00:00 2001
 | |
| From: Luke Granger-Brown <git@lukegb.com>
 | |
| Date: Sat, 11 Jul 2020 00:45:57 +0000
 | |
| Subject: [PATCH 5/7] When using local fonts, always assume Gerrit is mounted
 | |
|  at the root.
 | |
| 
 | |
| ---
 | |
|  polygerrit-ui/app/rollup.config.js | 2 +-
 | |
|  1 file changed, 1 insertion(+), 1 deletion(-)
 | |
| 
 | |
| diff --git a/polygerrit-ui/app/rollup.config.js b/polygerrit-ui/app/rollup.config.js
 | |
| index db0e2f7159..7bde541405 100644
 | |
| --- a/polygerrit-ui/app/rollup.config.js
 | |
| +++ b/polygerrit-ui/app/rollup.config.js
 | |
| @@ -50,7 +50,7 @@ const importLocalFontMetaUrlResolver = function() {
 | |
|      name: 'import-meta-url-resolver',
 | |
|      resolveImportMeta: function (property, data) {
 | |
|        if(property === 'url' && data.moduleId.endsWith('/@polymer/font-roboto-local/roboto.js')) {
 | |
| -        return 'new URL("..", document.baseURI).href';
 | |
| +        return 'new URL("/", document.baseURI).href';
 | |
|        }
 | |
|        return null;
 | |
|      }
 | |
| -- 
 | |
| 2.27.0
 | |
| 
 |