Skip to content

Instantly share code, notes, and snippets.

@lauromoura
lauromoura / git-webkit-log.txt
Created Jun 8, 2022
git-webkit pr log for PR 1367
View git-webkit-log.txt
$ ./Tools/Scripts/git-webkit pr --verbose
INFO:webkitscmpy: Found 1 commit...
Branch 'main' set up to track remote branch 'main' from 'origin'.
INFO:webkitscmpy:Using committed changes...
INFO:webkitscmpy:Rebasing 'wpe-external-audio-rendering-gardening' on 'main'...
From github.com:WebKit/WebKit
* branch main -> FETCH_HEAD
Current branch wpe-external-audio-rendering-gardening is up to date.
INFO:webkitscmpy:Rebased 'wpe-external-audio-rendering-gardening' on 'main!'
INFO:webkitscmpy: Found 1 commit...
@lauromoura
lauromoura / pkg-config.diff
Created May 17, 2022
Flatpak SDK pkg-config diff between r293838 and r294263 versions
View pkg-config.diff
14a15,16
> breakpad 0.1
> breakpad-client 0.1
94c96
< gpg-error 1.44
---
> gpg-error 1.45
154a157
> hwloc 2.7.1
196c199
@lauromoura
lauromoura / atspi-bus-fix.patch
Created Apr 5, 2022
Atspi flatpak bus fix (includes original Patrick's fix)
View atspi-bus-fix.patch
diff --git a/Tools/Scripts/webkitpy/port/gtk.py b/Tools/Scripts/webkitpy/port/gtk.py
index 57b066c58465..768ad1565723 100644
--- a/Tools/Scripts/webkitpy/port/gtk.py
+++ b/Tools/Scripts/webkitpy/port/gtk.py
@@ -122,6 +122,7 @@ class GtkPort(Port):
self._copy_value_from_environ_if_set(environment, 'WEBKIT_TOP_LEVEL')
self._copy_value_from_environ_if_set(environment, 'WEBKIT_DEBUG')
self._copy_value_from_environ_if_set(environment, 'WEBKIT_GST_USE_PLAYBIN3')
+ self._copy_value_from_environ_if_set(environment, 'AT_SPI_BUS_ADDRESS')
for gst_variable in ('DEBUG', 'DEBUG_DUMP_DOT_DIR', 'DEBUG_FILE', 'DEBUG_NO_COLOR',
@lauromoura
lauromoura / after_review.diff
Created Feb 14, 2022
Bug 323780 changes after review
View after_review.diff
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 5e9ac24cad57..e8981017e8a8 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -13,10 +13,14 @@
* platform/gtk/imported/w3c/web-platform-tests/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.image-expected.txt: Removed.
* platform/gtk/imported/w3c/web-platform-tests/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.worker-expected.txt: Removed.
* platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
+ * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.worker-expected.txt:
+ * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
@lauromoura
lauromoura / sdk_21.08_update.md
Last active Sep 20, 2021
WebKit Flatpak SDK 21.08 update package comparison
View sdk_21.08_update.md

WebKit flatpak SDK version comparison

SDK versions:

  • 21.08: r282308
  • 0.3: r280380

Packages with different versions

| package | 21.08 | 0.3 |

@lauromoura
lauromoura / browser.py
Created Sep 18, 2021
WebKitGTK Hello World
View browser.py
#!/usr/bin/env python3
from urllib.parse import urlparse
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("WebKit2", "4.0")
from gi.repository import Gtk
from gi.repository import WebKit2
@lauromoura
lauromoura / patch.diff
Created Jul 29, 2021
Webkitgtk/wpe buildfix
View patch.diff
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 3dabc55867d0..8de67e814021 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,14 @@
+2021-07-29 Lauro Moura <lmoura@igalia.com>
+
+ REGRESSION(r280423) [GSTREAMER][EME] Add missing gpg-error library
+ Need the bug URL (OOPS!).
+
@lauromoura
lauromoura / wpe_lichess.py
Last active May 31, 2021
WPE WebDriver demo with lichess
View wpe_lichess.py
# Copyright (C) 2021 Igalia S.L.
#
# Distributed under terms of the MIT license.
import argparse
import sys
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
@lauromoura
lauromoura / webkit-bwrap.diff
Created Feb 10, 2021
webkit-bwrap debugging
View webkit-bwrap.diff
diff --git a/Tools/flatpak/flatpakutils.py b/Tools/flatpak/flatpakutils.py
index b4061a5d1886..a2663c87b663 100644
--- a/Tools/flatpak/flatpakutils.py
+++ b/Tools/flatpak/flatpakutils.py
@@ -852,6 +852,8 @@ class WebkitFlatpak:
for envvar, value in sandbox_environment.items():
flatpak_command.append("--env=%s=%s" % (envvar, value))
+ flatpak_command.append("--env=WEBKIT_FOO=42")
+
@lauromoura
lauromoura / gist:de2bba50e5d5b6aa3258e0b3871039a2
Created Jan 27, 2021
Python3 issue in run-webdriver-tests
View gist:de2bba50e5d5b6aa3258e0b3871039a2
webkitpy.common.system.logutils: [DEBUG] Debug logging enabled.
webkitpy.port.win: [DEBUG] Not running on native Windows.
webkitpy.webdriver_tests.webdriver_test_runner: [INFO] Using port gtk
webkitpy.webdriver_tests.webdriver_test_runner: [INFO] Test configuration: <, x86, release>
webkitpy.webdriver_tests.webdriver_test_runner: [INFO] Using display server xvfb
webkitpy.common.system.executive: [DEBUG] "which Xvfb" took 0.00s
webkitpy.common.system.executive: [DEBUG] "perl Tools/Scripts/webkit-build-directory --configuration --release --gtk" took 0.09s
webkitpy.webdriver_tests.webdriver_test_runner: [INFO] Using driver at /home/lauro/dev/WebKit/WebKitBuild/Release/bin/WebKitWebDriver
webkitpy.webdriver_tests.webdriver_test_runner: [INFO] Browser: MiniBrowser
webkitpy.webdriver_tests.webdriver_test_runner: [INFO] Parsing expectations