if (rc == XPCOM.NS_OK) { /* > 3.x */ result[0] = 0; rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); if (rc != XPCOM.NS_OK) {
if (rc == XPCOM.NS_OK) { /* > 3.x */ result[0] = 0; rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); if (rc != XPCOM.NS_OK) {
if (rc == XPCOM.NS_OK) { /* > 3.x */ result[0] = 0; rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); if (rc != XPCOM.NS_OK) {
if (rc == XPCOM.NS_OK) { /* > 3.x */ result[0] = 0; rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR31, true), result); if (rc == XPCOM.NS_OK) { /* 31.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR31); } else { rc = localFile.QueryInterface (IIDStore.GetIID (nsIFile.class, MozillaVersion.VERSION_XR24, true), result); if (rc == XPCOM.NS_OK) { /* 24.x */ MozillaVersion.SetCurrentVersion (MozillaVersion.VERSION_XR24); } else { /* 10.x */ rc = localFile.QueryInterface (IIDStore.GetIID (nsILocalFile.class, MozillaVersion.VERSION_XR10), result); if (rc != XPCOM.NS_OK) {
if (rc == XPCOM.NS_OK) { /* > 3.x */ result[0] = 0; rc = localFile.QueryInterface(nsIFile.NS_IFILE_17_IID, result); if (rc == XPCOM.NS_OK) { /* 17.x */ nsISupports.IsXULRunner17 = true; } else { /* 10.x */ rc = localFile.QueryInterface (nsILocalFile.NS_ILOCALFILE_IID, result); if (rc != XPCOM.NS_OK) { browser.dispose ();