mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 533038 - 5. Support loading jar uris in the js subscript loader, r=bsmedberg a=blocking-beta6
This commit is contained in:
parent
ccd55337cc
commit
2be2e1f425
@ -281,7 +281,8 @@ mozJSSubScriptLoader::LoadSubScript (const PRUnichar * aURL
|
||||
if (!scheme.EqualsLiteral("chrome"))
|
||||
{
|
||||
// This might be a URI to a local file, though!
|
||||
nsCOMPtr<nsIFileURL> fileURL = do_QueryInterface(uri);
|
||||
nsCOMPtr<nsIURI> innerURI = NS_GetInnermostURI(uri);
|
||||
nsCOMPtr<nsIFileURL> fileURL = do_QueryInterface(innerURI);
|
||||
if (!fileURL)
|
||||
{
|
||||
errmsg = JS_NewStringCopyZ (cx, LOAD_ERROR_URI_NOT_LOCAL);
|
||||
|
Loading…
Reference in New Issue
Block a user