Skip to content

Add support for browser.runtime.getVersion()#51763

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
kiaraarose:bug/299961
Oct 3, 2025
Merged

Add support for browser.runtime.getVersion()#51763
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
kiaraarose:bug/299961

Conversation

@kiaraarose
Copy link
Contributor

@kiaraarose kiaraarose commented Oct 3, 2025

c2ca833

Add support for browser.runtime.getVersion()
https://bugs.webkit.org/show_bug.cgi?id=299961
rdar://problem/161742137

Reviewed by Brian Weinstein and Timothy Hatcher.

Add support for browser.runtime.getVersion().
This was proposed in the WECG: w3c/webextensions#878

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIRuntime.mm
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIRuntimeCocoa.mm:
(WebKit::WebExtensionAPIRuntime::getVersion):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIRuntime.h:
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIRuntime.idl:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIRuntime.mm:
(TestWebKitAPI::TEST(WKWebExtensionAPIRuntime, GetVersion)):

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

dc50c61

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows Apple Internal
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win ❌ 🛠 ios-apple
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ❌ 🧪 win-tests ✅ 🛠 mac-apple
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe ❌ 🛠 vision-apple
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ❌ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 🧪 unsafe-merge ✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@kiaraarose kiaraarose self-assigned this Oct 3, 2025
@kiaraarose kiaraarose added the WebKit Extensions Bugs related to extension support. label Oct 3, 2025
@elijahsawyers elijahsawyers self-requested a review October 3, 2025 17:22
@kiaraarose kiaraarose added the safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks label Oct 3, 2025
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 3, 2025
@kiaraarose kiaraarose added unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed merging-blocked Applied to prevent a change from being merged safe-merge-queue Applied to automatically send a pull-request to merge-queue after passing EWS checks labels Oct 3, 2025
https://bugs.webkit.org/show_bug.cgi?id=299961
rdar://problem/161742137

Reviewed by Brian Weinstein and Timothy Hatcher.

Add support for browser.runtime.getVersion().
This was proposed in the WECG: w3c/webextensions#878

Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIRuntime.mm
* Source/WebKit/WebProcess/Extensions/API/Cocoa/WebExtensionAPIRuntimeCocoa.mm:
(WebKit::WebExtensionAPIRuntime::getVersion):
* Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIRuntime.h:
* Source/WebKit/WebProcess/Extensions/Interfaces/WebExtensionAPIRuntime.idl:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIRuntime.mm:
(TestWebKitAPI::TEST(WKWebExtensionAPIRuntime, GetVersion)):

Canonical link: https://commits.webkit.org/300972@main
@webkit-commit-queue
Copy link
Collaborator

Committed 300972@main (c2ca833): https://commits.webkit.org/300972@main

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

@webkit-commit-queue webkit-commit-queue merged commit c2ca833 into WebKit:main Oct 3, 2025
@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 Oct 3, 2025
bershanskiy added a commit to bershanskiy/browser-compat-data that referenced this pull request Jan 29, 2026
Add data for the new runtime.getVersion() method, supported on Chrome 143+,[1]
Safari 26.2.[2][3] Firefox does not support it yet.[4]

This method was created in W3C WECG as a standard way to access extension version,
and an alternative to implementation-dependent runtime.getManifest().version.[5][6]

Sources:
[1] https://developer.chrome.com/docs/extensions/reference/api/runtime#method-getVersion
[2] https://developer.apple.com/documentation/safari-release-notes/safari-26_2-release-notes
[3] WebKit/WebKit#51763
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=1992418
[5] w3c/webextensions#878
[6] w3c/webextensions#400
rebloor pushed a commit to mdn/browser-compat-data that referenced this pull request Feb 3, 2026
Add data for the new runtime.getVersion() method, supported on Chrome 143+,[1]
Safari 26.2.[2][3] Firefox does not support it yet.[4]

This method was created in W3C WECG as a standard way to access extension version,
and an alternative to implementation-dependent runtime.getManifest().version.[5][6]

Sources:
[1] https://developer.chrome.com/docs/extensions/reference/api/runtime#method-getVersion
[2] https://developer.apple.com/documentation/safari-release-notes/safari-26_2-release-notes
[3] WebKit/WebKit#51763
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=1992418
[5] w3c/webextensions#878
[6] w3c/webextensions#400
rebloor pushed a commit to mdn/content that referenced this pull request Feb 20, 2026
* [Extensions] Document runtime.getVersion() method

Add documentation for the new runtime.getVersion() method, supported on Chrome 143+[1],
Safari 26.2[2][3]. Firefox does not support it yet[4].

This method was created in W3C WECG as a standard way to access extension version,
and an alternative to implementation-dependent runtime.getManifest().version[5][6]

Sources:
[1] https://developer.chrome.com/docs/extensions/reference/api/runtime#method-getVersion
[2] https://developer.apple.com/documentation/safari-release-notes/safari-26_2-release-notes
[3] WebKit/WebKit#51763
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=1992418
[5] w3c/webextensions#878
[6] w3c/webextensions#400

* Review feedback
jdatapple pushed a commit to jdatapple/content that referenced this pull request Mar 6, 2026
* [Extensions] Document runtime.getVersion() method

Add documentation for the new runtime.getVersion() method, supported on Chrome 143+[1],
Safari 26.2[2][3]. Firefox does not support it yet[4].

This method was created in W3C WECG as a standard way to access extension version,
and an alternative to implementation-dependent runtime.getManifest().version[5][6]

Sources:
[1] https://developer.chrome.com/docs/extensions/reference/api/runtime#method-getVersion
[2] https://developer.apple.com/documentation/safari-release-notes/safari-26_2-release-notes
[3] WebKit/WebKit#51763
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=1992418
[5] w3c/webextensions#878
[6] w3c/webextensions#400

* Review feedback
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.

7 participants