Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6c33e50ded39ce0ebb621dbd0918aa8bb477fe5f
      
https://github.com/WebKit/WebKit/commit/6c33e50ded39ce0ebb621dbd0918aa8bb477fe5f
  Author: Timothy Hatcher <[email protected]>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm

  Log Message:
  -----------
  WebExtensionContext::unload needs to clear more state.
https://webkit.org/b/275706
rdar://problem/130224407

Reviewed by Jeff Miller.

Audited all member variables of WebExtensionContext and clear / reset the 
relevant ones in
unload() so they don't have lingering state and are ready for the next load().

* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm:
(WebKit::WebExtensionContext::unload): Clear all relevant member variables.
(WebKit::WebExtensionContext::unloadBackgroundWebView): Clear 
m_unloadBackgroundWebViewTimer.
(WebKit::WebExtensionContext::didFailNavigation): Added missing call to 
unloadBackgroundWebView().
(WebKit::WebExtensionContext::webViewWebContentProcessDidTerminate): Use 
unloadBackgroundWebView().

Canonical link: https://commits.webkit.org/280234@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to