Use |toUnicode| when creating the glyph map for standard CIDFontType2 fonts without embedded font file
Fix inconsistencies in the preference names used by PDFViewerApplication

Since `preferenceSidebarViewOnLoad` is an enumeration value, it seems better to initialize it with the default one instead of a boolean.
`preferencesPdfBugEnabled` uses a superfluous "s", which is a typo I made when I introduced it.
Fix disableAutoFetch regression in the generic viewer

After PR 5263, setting `disableAutoFetch = true` in the generic viewer no longer works correctly, since the entire file loads even with `disableStream = true`.
Disables streaming in the extension when length is undefined.
Merge pull request #5373 from yurydelendik/issue5372

Disables streaming in the extension when length is undefined.
Merge pull request #5369 from Snuffleupagus/viewer-temp-pref-names

Fix inconsistencies in the preference names used by PDFViewerApplication
Merge pull request #5371 from Snuffleupagus/disableAutoFetch-regression

Fix disableAutoFetch regression in the generic viewer
addon: isWindowPrivate -> isContentWindowPrivate

As of Firefox 35, isContentWindowPrivate should be used for DOM windows instead of isWindowPrivate.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1069059 and
http://hg.mozilla.org/mozilla-central/diff/324798b60ba3/toolkit/modules/PrivateBrowsingUtils.jsm

Without this fix, you will get the following error message when Firefox+PDF.js is started:
>
WARNING: content window passed to PrivateBrowsingUtils.isWindowPrivate. Use isContentWindowPrivate instead (but only for frame scripts).
pbu_isWindowPrivate@resource://gre/modules/PrivateBrowsingUtils.jsm:25:14
ChromeActions.prototype.isInPrivateBrowsing@resource://pdf.js/PdfStreamConverter.jsm:237:12
xhr_onreadystatechange@resource://pdf.js/PdfStreamConverter.jsm:545:30
NetworkManager_requestRange@resource://pdf.js/network.js:95:7
NetworkManager_requestRange@resource://pdf.js/network.js:81:14
RangedChromeActions_requestDataRange@resource://pdf.js/PdfStreamConverter.jsm:596:1
RequestListener.prototype.receive@resource://pdf.js/PdfStreamConverter.jsm:705:5
PdfStreamConverter.prototype.onStartRequest/proxy.onStopRequest/<@resource://pdf.js/PdfStreamConverter.jsm:909:11
FirefoxComClosure/<.request@resource://pdf.js/web/viewer.js:529:14
PdfDataRangeTransport_requestDataRange@resource://pdf.js/web/viewer.js:2977:9
transportDataRange@resource://pdf.js/build/pdf.js:2122:13
messageHandlerComObjOnMessage@resource://pdf.js/build/pdf.js:1219:9
Merge pull request #5364 from Rob--W/firefox-pbu_isWindowPrivate

Firefox addon: Use isContentWindowPrivate instead of isWindowPrivate if available
Fix |cleanup| regression in the viewer
Merge pull request #5374 from Snuffleupagus/viewer-cleanup-regression

Fix |cleanup| regression in the viewer
Adds optional argument to FontFace contructor call.
Merge pull request #5376 from yurydelendik/fontface3

Adds optional argument to FontFace contructor call.
Fix how matches are found in search

Instead of keeping track of where the search starts, just
keep track of the number of pages and make sure we don't
visit pages more than once.
Use existing page count in nextMatch
Require destinations when they are needed and do not fetch all of them in advance
Implemented NameTree.get() using binary search
Merge pull request #5351 from timvandermeij/destinations

Require destinations when they are needed and do not fetch all of them in advance
Merge pull request #5352 from Snuffleupagus/issue-2840

Use |toUnicode| when creating the glyph map for standard CIDFontType2 fonts without embedded font file
Merge pull request #5325 from fzembow/findcontrollerfix

Update findbar to wrap on initial search