Closed Bug 308602 Opened 19 years ago Closed 19 years ago

onAlertClick() throws exception

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: rflint, Unassigned)

Details

Calling onAlertClick() from an alert slider fails with the following exception:

Error: [Exception... "'JavaScript component does not have a method named:
"observe"' when calling method: [nsIObserver::observe]"  nsresult: "0x80570030
(NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)"  location: "JS frame ::
chrome://global/content/alerts/alert.js :: onAlertClick :: line 127"  data: no]
Source File: chrome://global/content/alerts/alert.js
Line: 127
Turns out my extension and several others were calling a depreciated method.
Using the proper method works as expected - resolving invalid.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.