Closed Bug 563969 Opened 14 years ago Closed 12 years ago

JavaScript component does not have a method named: "observe" when calling method: [nsIObserver::observe] (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: martijn.martijn, Assigned: mfinkle)

References

Details

Attachments

(1 file)

I'm seeing this error in the js console when clicking on the "Clear Private Data" button in the options:
[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://browser/content/sanitize.js :: anonymous :: line 171"  data: no]

It seems to be happening when you have an about: url (about:firefox, etc) opened.

(to be able to see js errors, make sure you have the javascript.options.showInConsole pref set to true and the browser.console.showInPanel set to true in about:config)

I'm seeing this on trunk and branch as on windows and Maemo.
Whiteboard: mobile-triage
Assignee: nobody → mark.finkle
Whiteboard: mobile-triage
Mozilla/5.0 (Android; Linux armv71; rv2.0b8pre) Gecko/20101122 Firefox/4.0b8pre Fennec/4.0b3pre
Mozilla/5.0 (Maemo; Linux armv71; rv:2.0b8pre) Gecko/20101122 Firefox/4.0b8pre Fennec/4.0b3pre

1. go to http://www.bestbuymobile.com
2. go to http://www.rottentomatoes.com
3. go to http://www.cnn.com
4. go to http://www.espn.com
5. go to http://www.bbc.co.uk/news/
6. go to the control side panel
7. go to the preferences
8. hit the clear button to clear private data
9. go to the error console

Expected: No errors
Actual: 
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://browser/content/sanitize.js :: <TOP_LEVEL> :: line 195" data: no]  Source File: chrome://browser/content/sanitize.js Line: 195
OS: Windows 7 → All
Hardware: x86 → All
Attached image screenshot
It is still reproducing on:
Build id : Mozilla/5.0 (Android;Linux armv7l;rv:7.0a1)Gecko/201100602
Firefox/7.0a1 Fennec/7.0a1
Device: LG Optimus 2x
OS: Android 2.2
Seeing this on today's nightly on start-up clean profile

Mozilla/5.0 (Android; Linux armv7l; rv:8.0a1) Gecko/20110721 Firefox/8.0a1 Fennec/8.0a1 
Device: Samsung Nexus S
OS: Android 2.3.4
Mass resolving XUL Fennec I filed to WORKSFORME. If someone still cares about this bug, please reopen.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: