From:  Vikas Mahato <vikasmahato0@gmail.com>
Date:  27 Jan 2018 17:00:20 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.activity-stream
Subject:  

Bug 1410378 - Help Needed

NNTP-Posting-Host:  63.245.214.181

Hello Developers,
When I try to run this code https://pastebin.com/fdDK0wNj 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 https://pastebin.com/fdDK0wNj  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.


Regards,
Vikas Mahato