| Summary: | accessibility/notification-listeners.html abandons a document | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||||
| Component: | Accessibility | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ap, commit-queue, darin, n_wang, simon.fraser, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Simon Fraser (smfr)
2018-08-18 16:28:35 PDT
GC inspector shows a ref from a function which is a "Protected values" root: Function cell 0x6643f04b0 (GC root—Protected values)Internal 0 JSGlobalLexicalEnvironment cell 0x65f7c4050 Internal 0 Window cell 0x65f7d8fb0 Variable document HTMLDocument cell 0x65f75c060 wrapped 0x664a02570 “file:///Volumes/Data/Development/apple/webkit/OpenSource/LayoutTests/accessibility/notification-listeners.html” Created attachment 349267 [details]
GC heap json
On AccessibilityNotificationHandler is not being cleaned up, so one JSValueProtect(context, m_notificationFunctionCallback) is never matched by a a JSValueUnprotect(). Created attachment 349269 [details]
Patch
Comment on attachment 349269 [details]
Patch
Great fix, even better that an existing test works as a regression test for it. Also glad it was only a mistake in the test code
Comment on attachment 349269 [details] Patch Clearing flags on attachment: 349269 Committed r235836: <https://trac.webkit.org/changeset/235836> All reviewed patches have been landed. Closing bug. |