Skip to content

Commit 88b0908

Browse files
committed
[wpe] Update to WPE WebKit 2.48.2
Web Inspector resources now being shipped as a .gresource file instead of a shared library, which needed changes in the bootstrap script and setting the relevant environment variable. For now the .gresource file is installed along the injected bundle, as the shared library was previously, but this may change in the future.
1 parent 539eace commit 88b0908

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

tools/scripts/bootstrap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
class Bootstrap:
8383
default_arch = "arm64"
84-
default_version = "2.46.7"
84+
default_version = "2.48.2"
8585

8686
_cerbero_origin = "https://github.com/Igalia/wpe-android-cerbero.git"
8787
_cerbero_branch = "main"
@@ -275,7 +275,7 @@ def extract_deps(self, version):
275275

276276
runtime_file_path = os.path.join(self._project_build_dir,
277277
self._runtime_package_name_template.format(arch=self._arch, version=version))
278-
subprocess.check_call(["tar", "xf", runtime_file_path, "-C", self._sysroot_dir, "lib"])
278+
subprocess.check_call(["tar", "xf", runtime_file_path, "-C", self._sysroot_dir, "lib", "share"])
279279

280280
def _copy_headers(self, target_dir):
281281
shutil.rmtree(target_dir, True)
@@ -347,7 +347,7 @@ def _copy_wpe_injected_modules(self, target_dir):
347347
shutil.rmtree(target_dir, True)
348348
os.makedirs(target_dir)
349349
sysroot_inspector_resources_file = os.path.join(
350-
self._sysroot_dir, "lib", "wpe-webkit-2.0", "libWPEWebInspectorResources.so")
350+
self._sysroot_dir, "share", "wpe-webkit-2.0", "inspector.gresource")
351351
shutil.copy(sysroot_inspector_resources_file, target_dir)
352352
sysroot_injected_bundle_file = os.path.join(
353353
self._sysroot_dir, "lib", "wpe-webkit-2.0", "injected-bundle", "libWPEInjectedBundle.so")

wpeview/src/main/java/org/wpewebkit/wpe/WKRuntime.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class WKRuntime {
5050

5151
// Bump this version number if you make any changes to the font config
5252
// or the gstreamer plugins or else they won't be applied.
53-
private static final String assetsVersion = "ui_process_assets_2.46.7";
53+
private static final String assetsVersion = "ui_process_assets_2.48.2";
5454

5555
static { System.loadLibrary("WPEAndroidRuntime"); }
5656

@@ -96,6 +96,9 @@ public void initialize(@NonNull Context context) {
9696
envStrings.add(new File(context.getFilesDir(), "gio").getAbsolutePath());
9797
envStrings.add("WEBKIT_INJECTED_BUNDLE_PATH");
9898
envStrings.add(new File(context.getFilesDir(), "injected-bundles").getAbsolutePath());
99+
// TODO: Move elsewhere than the injected bundle path.
100+
envStrings.add("WEBKIT_INSPECTOR_RESOURCES_PATH");
101+
envStrings.add(new File(context.getFilesDir(), "injected-bundles").getAbsolutePath());
99102

100103
String filesPath = context.getFilesDir().getAbsolutePath();
101104
envStrings.add("XDG_DATA_DIRS");

wpeview/src/main/java/org/wpewebkit/wpe/services/NetworkProcessService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class NetworkProcessService extends WPEService {
3636

3737
// Bump this version number if you make any changes to the gio
3838
// modules or else they won't be applied.
39-
private static final String assetsVersion = "network_process_assets_gst1.24.7";
39+
private static final String assetsVersion = "network_process_assets_2.48.2_gst_1.24.8";
4040

4141
@Override
4242
protected void loadNativeLibraries() {

wpeview/src/main/java/org/wpewebkit/wpe/services/WebDriverProcessService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class WebDriverProcessService extends WPEService {
1616

1717
// Bump this version number if you make any changes to the gio
1818
// modules or else they won't be applied.
19-
private static final String assetsVersion = "webdriver_process_assets_gst1.24.7";
19+
private static final String assetsVersion = "webdriver_process_assets_2.48.2_gst_1.24.8";
2020

2121
@Override
2222
protected void loadNativeLibraries() {

wpeview/src/main/java/org/wpewebkit/wpe/services/WebProcessService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class WebProcessService extends WPEService {
4444

4545
// Bump this version number if you make any changes to the font config
4646
// or the gstreamer plugins or else they won't be applied.
47-
private static final String assetsVersion = "web_process_assets_gst1.24.7";
47+
private static final String assetsVersion = "web_process_assets_2.48.2_gst_1.24.8";
4848

4949
@Override
5050
protected void loadNativeLibraries() {
@@ -122,6 +122,9 @@ protected void setupServiceEnvironment() {
122122
envStrings.add(filesPath);
123123
envStrings.add("WEBKIT_INJECTED_BUNDLE_PATH");
124124
envStrings.add(new File(context.getFilesDir(), "injected-bundles").getAbsolutePath());
125+
// TODO: Move elsewhere than the injected bundle path.
126+
envStrings.add("WEBKIT_INSPECTOR_RESOURCES_PATH");
127+
envStrings.add(new File(context.getFilesDir(), "injected-bundles").getAbsolutePath());
125128

126129
if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) == ApplicationInfo.FLAG_DEBUGGABLE) {
127130
String gstDebugLevels = "*:FIXME";

0 commit comments

Comments
 (0)