Closed Bug 296972 Opened 20 years ago Closed 20 years ago

Update service behaves badly with unset prefs

Categories

(Toolkit Graveyard :: XULRunner, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: readams, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8b2) Gecko/20050607 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8b2) Gecko/20050607 Firefox/1.0+

Running xulrunner (nightly as of 6/7/05) enters 100% CPU-mode failing to update
from a null URL, since it sets a timeout with a null interval, so it creates a 0
interval timer.

Std Error:
../../../dist/bin/xulrunner ../../../dist/xpi-stage/emr/application.ini 
==================*** interval = undefined
*** downloadUpdate
***
/home/readams/mozilla/obj-x86_64-unknown-linux-gnu/dist/bin/updates/0/update.status
*** no patch to download
*** update url: null
[last line repeated infinitely]

Logged to the console (repeated infinitely):
 [JavaScript Error: "[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIXMLHttpRequest.open]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
file:///home/readams/mozilla/obj-x86_64-unknown-linux-gnu/dist/bin/components/nsUpdateService.js
:: anonymous :: line 697"  data: no]" {file:
"file:///home/readams/mozilla/obj-x86_64-unknown-linux-gnu/dist/bin/components/nsUpdateService.js

Reproducible: Always
Severity: major → critical
Flags: blocking1.8b3+
Flags: blocking-aviary1.1+
I wonder if this is affecting thunderbird nightlies as well.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 296976 has been marked as a duplicate of this bug. ***
BenG checked in a fix for this.  Thanks Ben!
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.