1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 20:27:58 +01:00

Make binaries compilable on non-hemorrhage-edge releases. Add binaries subrepo.

This commit is contained in:
Kris Maglione
2011-09-23 16:40:56 -04:00
parent e1db34990b
commit 39ceae4f92
7 changed files with 79 additions and 42 deletions

View File

@@ -271,7 +271,7 @@ static nsresult
ReadScript(nsIURI *uri, JSContext *cx, JSObject *target_obj,
jschar *charset, const char *uriStr,
nsIIOService *serv, nsIPrincipal *principal,
JSScript **scriptObjp)
JSScriptType **scriptObjp)
{
nsCOMPtr<nsIChannel> chan;
nsCOMPtr<nsIInputStream> instream;
@@ -518,12 +518,17 @@ dactylUtils::LoadSubScript (const PRUnichar * aURL
}
bool writeScript = false;
JSScript *scriptObj = nsnull;
JSScriptType *scriptObj = nsnull;
JSVersion version = cx->findVersion();
nsCAutoString cachePath;
cachePath.Append("jssubloader/");
cachePath.Append(version);
if (charset) {
cachePath.Append("/");
cachePath.Append(NS_ConvertUTF16toUTF8(
nsDependentString(reinterpret_cast<PRUnichar*>(charset))));
}
if (false)
// This is evil. Very evil. Unfortunately, the PathifyURI symbol is