Features/Desktop/Add-on hotfix/Test Plan

From MozillaWiki
Jump to navigation Jump to search

Add-on hotfix

Release Target Status Lead Engineer QA Lead Status Health
Firefox 10 Complete Christian Legnitto VladG Landed OK

Summary

Firefox will have a hardcoded add-on id. When checking for add-on updates (every 24 hours), it will always check for a specific add-on id and install it if an update is found.

Use Cases to Test

  • We ship a new feature (like http:// hiding) and the user response is extremely negative. We issue an update to the add-on that flips a pref back to old behavior
  • We need to distrust a CA. We ship an update to the add-on that makes Firefox distrust it and users are silently updated within 24 hours
  • We have a problem with add-ons that require a rebuild of add-on metadata. We issue an empty add-on
  • We have an issue that only affects Italian builds. Rather than issue a new Firefox update to everyone, we ship an update to the add-on which only acts when the locale is set to Italian
  • We want to blocklist a widely used plugin. We turn on crude click-to-play and whitelist it for known good websites
  • We know that Netflix/Hulu/etc does bad user sniffing for a particular Firefox version. We issue an update that drops down a infobar telling users what is happening and to contact the site, or we ship the add-on that changes the user agent on the site while they work on a fix
  • We want to speak directly to our users with a one-time marketing message / news flash. We ship an update to the add-on that pops up an infobar with the message and then never shows again
  • We want to A/B test a UI pref on beta. We ship the add-on to x% of our population or ship it to all Beta users and have the add-on enable functionality x% of the time

Test Case

Steps to reproduce

  • Start Firefox 10 beta 4 with a new profile
  • In about:config set the following prefs:
    • set extensions.hotfix.id to test-hotfix@mozilla.org
    • set extensions.update.interval to 10
  • Restart Firefox

Expected Results

  • After restart, navigate randomly over 10 seconds
  • Open Add-ons Manager and Firefox Hotfix Test 1 should be installed
Firefox 10 Beta 4
  • [DONE] MacOS X 10.6.7 - PASS - 2012-01-13
  • [DONE] Windows 7 x86 - PASS - 2012-01-13
  • [DONE] Ubuntu 11.10 x64 - PASS - 2012-01-13
  • [DONE] Windows XP - PASS - 2012-01-13