diff options
Diffstat (limited to 'dom/workers/test/navigator_languages_worker.js')
-rw-r--r-- | dom/workers/test/navigator_languages_worker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dom/workers/test/navigator_languages_worker.js b/dom/workers/test/navigator_languages_worker.js new file mode 100644 index 000000000..53aa4d39e --- /dev/null +++ b/dom/workers/test/navigator_languages_worker.js @@ -0,0 +1,11 @@ +var active = true; +onmessage = function(e) { + if (e.data == 'finish') { + active = false; + return; + } + + if (active) { + postMessage(navigator.languages); + } +} |