From f87dbc57359de4d48a5e84c574c027620cebec95 Mon Sep 17 00:00:00 2001 From: NovapaX Date: Wed, 28 Feb 2018 22:59:01 +0100 Subject: [PATCH] retru importHref once to solve a webkit refresh issue (#958) --- src/layouts/partial-panel-resolver.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/layouts/partial-panel-resolver.html b/src/layouts/partial-panel-resolver.html index c9338df7af..f9abdc592d 100644 --- a/src/layouts/partial-panel-resolver.html +++ b/src/layouts/partial-panel-resolver.html @@ -99,13 +99,24 @@ class PartialPanelResolver extends Polymer.Element { }, () => { - this.errorLoading = true; + // a single retry of importHref in the error callback fixes a webkit refresh issue + if (!this.retrySetPanelForWebkit(panel)) { + this.errorLoading = true; + } }, true /* async */ ); } + retrySetPanelForWebkit(panel) { + if (this._retryingPanelChanged) { + return false; + } + this._retryingPanelChanged = true; + return this.panelChanged(panel); + } + updateAttributes() { var customEl = Polymer.dom(this.$.panel).lastChild; if (!customEl) return;