Closed Bug 53008 Opened 25 years ago Closed 25 years ago

Javascript error to console every time the browser window loses focus

Categories

(SeaMonkey :: General, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 22163

People

(Reporter: sspitzer, Assigned: asa)

Details

every time the browser window loses focus on the 20000091706 linux build, I get this JS error the console: JavaScript error: line 0: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPref.GetBoolPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://navigator/content/navigator.js :: URLBarBlurHandler :: line 2137" data: no]
the GetBoolPref error output is due to a missing checkin for bug 22163 The bug was reopened. See comments there. Marking dup. *** This bug has been marked as a duplicate of 22163 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
re-assign to anthoyd. the problem is there is no default pref value for the "browser.urlbar.clickSelectsAll" pref. anthony: from JS, if you call GetXXXPref() and the pref value isn't set, it will throw an exception. so you are forced to either use try & catch, or set a default value for this pref in the right default pref js file. in this case, it would be mozilla/modules/libpref/src/init/all.js Here's a patch to fix this bug: Index: all.js =================================================================== RCS file: /cvsroot/mozilla/modules/libpref/src/init/all.js,v retrieving revision 3.178 diff -p -r3.178 all.js *** all.js 2000/09/15 06:13:58 3.178 --- all.js 2000/09/18 03:21:57 *************** pref("sidebar.customize.more_panels.url" *** 514,516 **** --- 514,517 ---- pref("prefs.converted-to-utf8",false); pref("browser.throbber.url","chrome://navigator/locale/navigator.properties"); + pref("browser.urlbar.clickSelectsAll",false); I'm assuming that pref defaults to false.
verif. Thanks for checking thepref in.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.