Fixing a 5-Year-Old Firefox Bug Affects Amazon.com Removal
This article details how the author resolved a long-standing bug in Mozilla Firefox where users couldn’t remove Amazon.com from their New Tab Page’s Top Sites list. The issue stemmed from Firefox’s search provider system altering URLs, making deletion ineffective. By analyzing bug reports and code, the author identified that Amazon’s URL was being replaced with a search shortcut version, causing mismatches in the Places database. The solution involved storing original URLs before modification, ensuring proper deletion. Collaboration with Mozilla engineers led to implementing changes in NewTabUtils.sys.mjs and link-menu-options.mjs files, preserving original URLs for accurate history management. This fix highlights the importance of maintaining data integrity in browser features and user control over browsing history.
