Closed Bug 281466 Opened 20 years ago Closed 20 years ago

Start page can not be set with javascript

Categories

(Firefox :: Settings UI, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: kh_naba, Assigned: bugs)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.9
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.9

Following javascript to set start page does not work.

<a href="http://mysite.com/#"
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://mysite.com/eng/');"><b>Make
Mysite your start page</b></a>


Reproducible: Always

Steps to Reproduce:

Actual Results:  
Nothing happens.

Expected Results:  
Should set the start page in preference.
There's a very good reason for this: its almost universally abused.  This is an
IE-only "innovation" that will most likely never be implemented in Mozilla core.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
What do you think of the 'javascript:window.external.AddFavorite' command,
unique to IE, that is used to open the bookmarks window and request that you
bookmark the current page (as in 'Add To IE Bookmarks Script' attachment)?
That its abused often on less-reputable sites and that we don't want it?
(In addition to comment #3)
There is a keyboard shortcut for this in Mozilla (Ctrl + D). Couldn't people
fake the keypress and thus abuse the function?
No, we differentiate between events from trusted and untrusted content.
*** Bug 279850 has been marked as a duplicate of this bug. ***
*** Bug 345706 has been marked as a duplicate of this bug. ***
See also bug 29770, same thing for adding bookmarks from script.
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs,
filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: