NEW 235499
AX: When disabledAttr changes, we don't need to post a notification, only update the isolated tree
https://bugs.webkit.org/show_bug.cgi?id=235499
Summary AX: When disabledAttr changes, we don't need to post a notification, only upd...
Tyler Wilcock
Reported 2022-01-23 16:19:33 PST
In https://bugs.webkit.org/show_bug.cgi?id=235246, we added: else if (attrName == disabledAttr) postNotification(element, AXObjectCache::AXDisabledStateChanged); So that we could update the isolated tree when this happens. However, posting a notification here is unnecessary work, since we can just call updateIsolatedTree directly instead.
Attachments
Patch (2.43 KB, patch)
2022-01-23 16:23 PST, Tyler Wilcock
darin: review+
ews-feeder: commit-queue-
Radar WebKit Bug Importer
Comment 1 2022-01-23 16:19:51 PST
Tyler Wilcock
Comment 2 2022-01-23 16:23:09 PST
Darin Adler
Comment 3 2022-01-23 16:50:08 PST
Comment on attachment 449770 [details] Patch I’ll take your word that this was not required. Is there some discipline where we can verify such things with tests, not just with knowledge of the code?
Andres Gonzalez
Comment 4 2022-01-24 08:09:17 PST
I'm not certain that a notification is not required. Clients may need to know that something is now disabled or not. Even if some clients are not using it at the moment, we should post the notification for API consistency.
Note You need to log in before you can comment on or make changes to this bug.