Add test for id parameter in history.onTitleChanged event
Categories
(WebExtensions :: General, task)
Tracking
(firefox99 fixed)
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
()
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
In bug 1678611, as part of a refactor, the history.onTitleChanged
unintentionally started to receive an id
option, in https://hg.mozilla.org/mozilla-central/rev/942167393237
It makes sense to have this property, so let's add a unit test to verify that it is present.
Adding dev-doc-needed so that this id
property can be documented on MDN at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/history/onTitleChanged and possibly also in its browser compat table.
Assignee | ||
Comment 1•3 years ago
|
||
In bug 1678611, the id property was added to this event, without unit
tests. The existing test didn't pick up the change because it checked
for a specific property. This patch adds a check of the whole event
object to get coverage for the id property AND to avoid this kind of
issue in the future.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Doc change made in https://github.com/mdn/content/pull/17386 and https://github.com/mdn/browser-compat-data/pull/16715
Updated•3 years ago
|
Description
•