[webkit-changes] [WebKit/WebKit] 0f7c9d: Crash under WebExtensionContextProxy::enumerateFra...

Timothy Hatcher noreply at github.com
Mon Jul 8 14:06:32 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0f7c9d38a4fefa0cd1fae7f59bc4103c10274ace
      https://github.com/WebKit/WebKit/commit/0f7c9d38a4fefa0cd1fae7f59bc4103c10274ace
  Author: Timothy Hatcher <timothy at apple.com>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M Source/WebKit/WebProcess/Extensions/WebExtensionContextProxy.cpp
    M Source/WebKit/WebProcess/Extensions/WebExtensionContextProxy.h

  Log Message:
  -----------
  Crash under WebExtensionContextProxy::enumerateFramesAndNamespaceObjects.
https://webkit.org/b/276337
rdar://129820399

Reviewed by Chris Dumez and Brian Weinstein.

Use forEach() when iterating m_extensionContentFrames, since it might be mutated
during the iteration as frames are added or removed.

* Source/WebKit/WebProcess/Extensions/WebExtensionContextProxy.cpp:
(WebKit::WebExtensionContextProxy::enumerateFramesAndNamespaceObjects):
* Source/WebKit/WebProcess/Extensions/WebExtensionContextProxy.h:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list