Commit 3dfe1c0a authored by mtomasz's avatar mtomasz Committed by Commit bot

Add a workaround for the load event not being called in image loader.

BUG=517741
TEST=Tested manually that reloading is fast.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2737383003
Cr-Commit-Position: refs/heads/master@{#456027}
parent 6d55717c
...@@ -194,6 +194,10 @@ PiexLoader.prototype.loadNaclModule_ = function() { ...@@ -194,6 +194,10 @@ PiexLoader.prototype.loadNaclModule_ = function() {
listenerContainer.style.height = '0px'; listenerContainer.style.height = '0px';
this.containerElement_ = listenerContainer; this.containerElement_ = listenerContainer;
document.body.appendChild(listenerContainer); document.body.appendChild(listenerContainer);
// Force a relayout. Workaround for load event not being called on <embed>
// for a NaCl module. crbug.com/699930
/** @suppress {suspiciousCode} */ this.naclModule_.offsetTop;
}.bind(this)); }.bind(this));
}.bind(this)).catch(function (error) { }.bind(this)).catch(function (error) {
console.error(error); console.error(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment