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)
Tracking
()
VERIFIED
FIXED
M10
People
(Reporter: desale, Assigned: vidur)
References
Details
(Whiteboard: [TESTCASE] navigator.preference(javascript.enabled) returns nothing)
Attachments
(1 file)
431 bytes,
text/html
|
Details |
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:
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M9
Comment 1•25 years ago
|
||
Updated•25 years ago
|
Whiteboard: [TESTCASE] navigator.preference(javascript.enabled) returns nothing
Comment 2•25 years ago
|
||
desales' test case cannot be simplified much further. Still nothing is returned with the 1999070917 build.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•25 years ago
|
||
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.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•25 years ago
|
||
Verified.
You need to log in
before you can comment on or make changes to this bug.
Description
•