Skip to content

Instantly share code, notes, and snippets.

@lauromoura
lauromoura / pyenv_flatpak.md
Created December 12, 2022 11:54
Using different python versions with pyenv inside flatpak

Testing different python versions inside the flatpak environment

# Enter flatpak
./Tools/Scripts/webkit-flatpak --release --wpe bash

# Install pyenv somewhere else to avoid messing with host
export PYENV_ROOT=/home/lauro/pyenv-flatpak
git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
export PATH=$PYENV_ROOT/bin:$PATH
@lauromoura
lauromoura / errors.log
Created October 6, 2022 08:51
Non-unified build fixes codecamp edition
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_ADDRESS = "pt_BR.UTF-8",
LC_NAME = "pt_BR.UTF-8",
LC_MONETARY = "pt_BR.UTF-8",
LC_PAPER = "pt_BR.UTF-8",
LC_IDENTIFICATION = "pt_BR.UTF-8",
LC_TELEPHONE = "pt_BR.UTF-8",
@lauromoura
lauromoura / non-unified.diff
Last active September 23, 2022 04:49
Partial non-unified build fixes: Early spring edition
From 324ef779c3ed2dd788ba0a8e53ab6eb583974154 Mon Sep 17 00:00:00 2001
From: Lauro Moura <lmoura@igalia.com>
Date: Fri, 23 Sep 2022 04:43:24 +0000
Subject: [PATCH] WIP
---
Source/JavaScriptCore/dfg/DFGOperations.cpp | 1 +
Source/WebCore/bindings/js/JSElementInternalsCustom.cpp | 7 +++++++
Source/WebCore/css/ComputedStyleExtractor.cpp | 2 ++
Source/WebCore/dom/CustomElementDefaultARIA.cpp | 3 +++
@lauromoura
lauromoura / non-unified.diff
Created September 12, 2022 12:57
Partial non-unified build fixes
main lmoura@buildbox2 ~/WebKit $ git stash show -p
diff --git a/Source/JavaScriptCore/bytecode/PolyProtoAccessChain.cpp b/Source/JavaScriptCore/bytecode/PolyProtoAccessChain.cpp
index f1ea8915235c..de4f4d9550cc 100644
--- a/Source/JavaScriptCore/bytecode/PolyProtoAccessChain.cpp
+++ b/Source/JavaScriptCore/bytecode/PolyProtoAccessChain.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "PolyProtoAccessChain.h"
+#include "CacheableIdentifierInlines.h"
@lauromoura
lauromoura / git-webkit-log.txt
Created June 8, 2022 20:44
git-webkit pr log for PR 1367
$ ./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 11:54
Flatpak SDK pkg-config diff between r293838 and r294263 versions
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 April 5, 2022 03:52
Atspi flatpak bus fix (includes original Patrick's fix)
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 February 14, 2022 04:53
Bug 323780 changes after review
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 September 20, 2021 03:38
WebKit Flatpak SDK 21.08 update package comparison

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 September 18, 2021 00:03
WebKitGTK Hello World
#!/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