mozilla/pdf.js — pull request #4357 by d3x7r0 (2014-02-28 12:48:01+00:00)
Title: Allow a url to omit the protocol

Currently we are working on an application that can be served by either http or https. To do so we are omitting the protocol from the URLs of static files to work in either case.

example:
` //static.example.com/filename.pdf `

instead of
` http[s]://static.example.com/filename.pdf `

This works for images and other files but the combineUrl function in PDF.js was mistakenly considering such urls as absolute instead which meant that we ended up with stuff like:
` http[s]://app.example.com//static.example.com/filename.pdf `
and the accompanying 404 not found error.

This is a quick fix for this issue.