Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_WKWebExtensionSQLiteStore object is being deallocated before extension storage is removed #29234

Conversation

kiaraarose
Copy link
Contributor

@kiaraarose kiaraarose commented May 29, 2024

0d9af47

_WKWebExtensionSQLiteStore object is being deallocated before extension storage is removed
https://bugs.webkit.org/show_bug.cgi?id=274850
rdar://128907598

Reviewed by Timothy Hatcher and Brian Weinstein.

In Release builds, the _WKWebExtensionSQLiteStore object being used to remove extension storage
is being deallocated before we make the call to remove the extension data. To prevent this from
happening, don't use weakSelf in `deleteDatabaseWithCompletionHandler` to keep the object alive
longer.

* Source/WebKit/Shared/Extensions/_WKWebExtensionSQLiteStore.mm:
(-[_WKWebExtensionSQLiteStore deleteDatabaseWithCompletionHandler:]):

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

a3efce9

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2 ✅ 🧪 wincairo-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🛠 wpe-cairo
🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 tv ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 tv-sim 🧪 mac-wk2-stress loading-orange 🧪 api-gtk
🛠 watch
✅ 🛠 🧪 unsafe-merge ✅ 🛠 watch-sim

@kiaraarose kiaraarose self-assigned this May 29, 2024
@kiaraarose kiaraarose added the WebKit Extensions Bugs related to extension support. label May 29, 2024
@kiaraarose kiaraarose added safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks labels May 29, 2024
…on storage is removed

https://bugs.webkit.org/show_bug.cgi?id=274850
rdar://128907598

Reviewed by Timothy Hatcher and Brian Weinstein.

In Release builds, the _WKWebExtensionSQLiteStore object being used to remove extension storage
is being deallocated before we make the call to remove the extension data. To prevent this from
happening, don't use weakSelf in `deleteDatabaseWithCompletionHandler` to keep the object alive
longer.

* Source/WebKit/Shared/Extensions/_WKWebExtensionSQLiteStore.mm:
(-[_WKWebExtensionSQLiteStore deleteDatabaseWithCompletionHandler:]):

Canonical link: https://commits.webkit.org/279465@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Deleting-Extension-Storage-Fails-In-Release-Builds branch from a3efce9 to 0d9af47 Compare May 29, 2024 21:44
@webkit-commit-queue
Copy link
Collaborator

Committed 279465@main (0d9af47): https://commits.webkit.org/279465@main

Reviewed commits have been landed. Closing PR #29234 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 0d9af47 into WebKit:main May 29, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Extensions Bugs related to extension support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants