The amount of computational complexity and garbage array/string/object generation for each update to a pageAction property went up astronomically with the migration of WebExtension page actions to the Photon API. This resulted in non-trivial talos regression when Screenshots attempted to switch back to the built-in pageAction API. These changes fix most of the garbage generation, and reduce a lot of the duplicated work for each update. MozReview-Commit-ID: 4uPLnAesdU2
34 KiB
34 KiB