Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:41:03+00:00 2026-06-10T10:41:03+00:00

I am writing a Firefox extension that automatically sorts bookmarks. Everything works fine, except

  • 0

I am writing a Firefox extension that automatically sorts bookmarks.

Everything works fine, except one thing:

The bookmarks are not refreshing.

The bookmarks get sorted, but Firefox don’t refresh the bookmark list.

I am using a bookmark observer to know when a bookmark is added.

In the onItemAdded() method, I call my sorting function. The folder gets sorted, but Firefox does not show it. If I close Firefox and reopen it, the folder is sorted. I can also see it sorted if I click on “Show all bookmarks” and click on the folder.

I added a button in my extension and when I click on it, the bookmarks get sorted without any problem. This problem comes when the bookmarks are sorted right after a bookmark insert or move.

By the way, my extension also sort bookmarks when the user moves a bookmark.
The bookmarks get refreshed if I move a bookmark within the same folder.
But they didn’t get refreshed if I move a bookmark in another folder.

So I looking for a way to refresh the Firefox bookmarks to show the sorted folder at the right time.

Is there a way of doing that?
If not, what do you propose?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:41:05+00:00Added an answer on June 10, 2026 at 10:41 am

    I solved my problem by using setTimeout() so that the script wait one second before sorting.
    This works fine and the bookmarks get sorted and refreshed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Firefox extension that's to be used in house. Basically, I need
I am writing a firefox extension that interacts with a JSON server interface. I
I'm writing a firefox extension and I have a menulist of links that should
I'm writing a Firefox extension that needs to inject a css file into webpages.
Hi: I'm writing a firefox extension (my first) that among other things, gets an
In the Firefox extension I'm writing, I have a variable containing some data that
I am writing a Firefox extension. I am using a content script that matches
I am writing a Firefox extension that needs to write and submit a form
I'm writing a Firefox extension that needs to know what the username of the
I'm writing a Firefox extension that uses lots of XMLHttpRequests, following the pattern of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.