Closed Bug 7259 Opened 25 years ago Closed 25 years ago

navigator.preference() method does not return anything.

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: desale, Assigned: vidur)

References

Details

(Whiteboard: [TESTCASE] navigator.preference(javascript.enabled) returns nothing)

Attachments

(1 file)

navigator.preference(prefName[, setValue]) method returns the value of preference. If you use this method to set the value, it returns the new value. In this case [The test case I'm providing] I'm trying to set "Enable Javascript" preference to "true", so this method is supposed to return "true", but it does not return anything. Product: seamonkey [Apprunner/ Viewer] Build: 1999-05-27-08. Steps to reproduce bug: 1] Please copy code I'm providing. Save it as HTML file. 2] Open this HTML file in viewer as well as apprunner. 3] It should print the return value of method navigator.preference(javascript.enabled,true). Expected Results: Preference(javascript.enabled) = true Actual Results: Preference(javascript.enabled) = CODE: <html> <head> <title>Test Page</title> </head> <body > <form name="workform"> <SCRIPT LANGUAGE="JavaScript1.1"> document.writeln("<h3>"); document.writeln("Navigator Properties"); document.writeln("</h3>"); document.writeln("<br>"); document.writeln("Preference(javascript.enabled) = "); document.writeln(navigator.preference(javascript.enabled,true)); document.writeln("<br>"); </SCRIPT> </form> </body> </html> END OF CODE:
Status: NEW → ASSIGNED
Target Milestone: M9
Whiteboard: [TESTCASE] navigator.preference(javascript.enabled) returns nothing
desales' test case cannot be simplified much further. Still nothing is returned with the 1999070917 build.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed on 9/26/1999. Note that the fix involves querying the preferences library. I'm not sure where preferences are stored for us for now and whether the returned values will match those for 4.x, but my part of the bug is definitely done.
*** Bug 1073 has been marked as a duplicate of this bug. ***
Status: RESOLVED → VERIFIED
Verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: