From:  Vikas Mahato <>
Date:  27 Jan 2018 17:00:20 Hong Kong Time

Bug 1410378 - Help Needed


Hello Developers,
When I try to run this code in a new tab of firefox, both Title and URL fields get cleared and it shows an error message. Inshort I am not able to create a new topsite entry using javascript.
Steps to reproduce:
1. Open a new tab in firefox
2. Open the javascript console
3. Paste the following code in console  and hit enter.

If you comment out the last line you'll see that the fields are populated. But upon executing the click event on the add button both the fields get cleared and cause the error message to show up.

Vikas Mahato