Skip to content

Instantly share code, notes, and snippets.

@lauromoura
lauromoura / patch.diff
Created July 29, 2021 17:54
Webkitgtk/wpe buildfix
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 03:03
WPE WebDriver demo with lichess
# 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 February 10, 2021 21:02
webkit-bwrap debugging
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 January 27, 2021 17:44
Python3 issue in run-webdriver-tests
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
@lauromoura
lauromoura / kill.patch
Created September 9, 2020 20:16
kill-old-processes fix
diff --git a/Tools/BuildSlaveSupport/kill-old-processes b/Tools/BuildSlaveSupport/kill-old-processes
index 880258d1c324..d831e3b5be45 100755
--- a/Tools/BuildSlaveSupport/kill-old-processes
+++ b/Tools/BuildSlaveSupport/kill-old-processes
@@ -180,7 +180,7 @@ def main(user=None):
builddir_bin = "WebKitBuild/Release/bin" if os.path.isdir("WebKitBuild/Release/bin") else "WebKitBuild/Debug/bin"
for task in tasksToKill + taskToKillUnix + listAllWebKitPrograms(builddir_bin):
os.system("killall -9 -v " + task)
- os.system("ps aux | grep -P '.+/python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs kill")
+ os.system("ps aux | grep -P '.+/python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs -r kill")
@lauromoura
lauromoura / output.txt
Created June 23, 2020 14:40
./go T output
go //rb:bundle # Install gem dependencies for the current Ruby
go //rb:cdp # Call class cdp in build/rb
go //rb:chrome # Build chrome in build/rb
go //rb:chrome-test # Run ruby tests for chrome
go //rb:common # Build common in build/rb
go //rb:devtools # Build devtools in build/rb
go //rb:docs # Generate Ruby API docs
go //rb:edge # Build edge in build/rb
go //rb:edge-chrome # Build edge-chrome in build/rb
go //rb:edge-chrome-test # Run ruby tests for edge-chrome
@lauromoura
lauromoura / parallel_wtr.py
Created April 9, 2020 01:00
Script to try to run multiple WTR in parallel
#!/usr/bin/python3
import os
import sys
import argparse
from multiprocessing import Pool
def parse_args():
parser = argparse.ArgumentParser()
@lauromoura
lauromoura / disk-cache.patch
Created March 24, 2020 04:12
WebkitGTK disk-cache fix
From a5b0d220c1527e5a06db46505bc56f7c49ae57b5 Mon Sep 17 00:00:00 2001
From: Lauro Moura <lmoura@igalia.com>
Date: Tue, 24 Mar 2020 00:28:13 -0300
Subject: [PATCH xserver] [GTK] Using --skip-failing-tests cause some
disk-cache tests to fail https://bugs.webkit.org/show_bug.cgi?id=209338
Reviewed by NOBODY (OOPS!).
GLIB's getVolumeFreeSpace implementation requires the file to exist to
return the correct size. During the NetworkProcess initialization it
@lauromoura
lauromoura / ienumerable_efl_sharp.md
Created November 28, 2019 22:53
Some notes about collection changes in EFL#

Eina collections replacement

Current approach

Currently C# bindings have explicit Eina collection classes that are used in the API. With them, an Eolian method list<int> method(int a, int b) maps to the following C# method: Eina.List<int> Method(int a, int b).

Proposal

@lauromoura
lauromoura / EFL_Cpp_Generators.md
Created November 19, 2019 16:07
Document on EFL#/EFL c++ generators

C++ Generators

Introduction

This is a simple introduction on the generator grammar EFL# and EFL C++ bindings use in their code generators.

Basic definition

The generators are classes with a templated bool as_generator(sink, params, context) const