From:  Vikas Mahato <>
Date:  06 Feb 2018 09:55:55 Hong Kong Time

Re: Bug 1410378 - Help Needed


I found the fix. I had to manually trigger an event after setting the title and url values using
fieldURL.dispatchEvent(new Event('input', {bubbles:true}));

Vikas Mahato

On Sat, Jan 27, 2018 at 2:30 PM, Vikas Mahato <> wrote:
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