Disable Google Translate on viewer in Chrome.

test/pdfs/yo01.pdf triggered "This page is in Japanese. Would you like
to translate it?" info bar in Chrome.
Use dummy font for testing when pdf fonts are loaded.
[CRX] Improved navigation detection.

A user reported that the PDF Viewer is not rendered on Dropbox,
(Chrome on Mac OS X). This is apparently caused by the fact that the
PDF file is loaded in an iframe in such a way that the tabs.onUpdated
event is not triggered.

This patch switches to the webNavigation event API, which improves the
reliability of the navigation detection.

Unfortunately Opera 15 does not support the webNavigation API, so the
old (tabs.onUpdated) method is used (feature-detection is used, so
whenever Opera decides to implement this API, it will profit from it).
Add atob polyfill. Remove uneeded data uri polyfill.
[CRX] Delay render of viewer if needed...

Sometimes, the viewer did not render for PDF files in an iframe,
because document.readyState not reaching "complete".

Deferring window.stop() until the root element is placed in the
document fixes the problem (typically a few ten milliseconds).
Viewer: Remove inline events; set height on error

Move inline event handlers to viewer.js to comply with a
Content-Security-Policy where directive "unsafe-inline" is not set.

Change textarea.rows = <number of newlines> to
textarea.style.height = textarea.scrollHeight.
(The former is extremely unreliable; consider long lines...)
Removing code duplication
Merge pull request #3487 from timvandermeij/remove-code-duplication

Removing code duplication
Merge pull request #3486 from Rob--W/csp-unsafe-inline

Remove all inline JavaScript from viewer.html to comply with CSP unsafe-inline and correct error textarea's height
Merge pull request #3476 from Rob--W/no-google-translate

Disable Google Translate on viewer in Chrome.
Merge pull request #3484 from Rob--W/crx-improved-navigation-detection

[Chrome extension] Improved navigation detection by using webNavigation instead of tabs API.
Merge pull request #3477 from brendandahl/font-loading

Use dummy font for testing when pdf fonts are loaded.
Fix merge conflicts and add comment