Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6211)

Unified Diff: chrome/browser/resources/chromeos/chromevox/braille/liblouis.js

Issue 905353002: Quick fix for ChromeVox braille flakiness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
diff --git a/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js b/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
index 288711891e4ef3140dee1c07f11e2261de0307dd..474fbdabe5db6c7365e46ba7f525909074b8727b 100644
--- a/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
+++ b/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
@@ -100,6 +100,10 @@ cvox.LibLouis.prototype.attachToElement = function(elem) {
embed.addEventListener('message', goog.bind(this.onInstanceMessage_, this),
false /* useCapture */);
elem.appendChild(embed);
+ // TODO(plundblad): Remove when the real cause of crbug.com/455889
+ // is fixed. Sending this empty message will cause the nacl component
+ // to load and fire the load event properly.
+ embed.postMessage('{}');
this.embedElement_ = /** @type {!HTMLEmbedElement} */ (embed);
this.instanceState_ = cvox.LibLouis.InstanceState.LOADING;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698