Skip to content

Instantly share code, notes, and snippets.

View hjanuschka's full-sized avatar
🤖
-.-

Helmut Januschka hjanuschka

🤖
-.-
  • Vienna/Austria
View GitHub Profile
@hjanuschka
hjanuschka / pdf-jxl-README.md
Created February 2, 2026 11:31
PDFium JXL-in-PDF bringup artifacts (tar.gz base64)

PDFium JXL-in-PDF bringup artifacts

This gist contains the PDFs + rendered PNG outputs from ~/pdf-jxl/.

Because GitHub gists (via gh gist) don’t support uploading binary files directly, the artifacts are bundled as a tarball and base64-encoded.

Contents

The tarball contains:

  • pdf-jxl/zoltan-jxldecode.pdf
  • pdf-jxl/zoltan-jxldecode.pdf.0.png
@hjanuschka
hjanuschka / jxl-pdfium-one-pager.md
Last active February 2, 2026 09:57
Design Doc: JPEG XL (JXL) image support in PDFium (Rust-only)

One-page overview: JPEG XL (JXL) image decoding in PDFium (jxl-rs, Rust-only)

Overview

Add JPEG XL (JXL) image decoding support to PDFium using jxl-rs, a pure Rust decoder. This enables PDFs that embed JXL-compressed image XObjects (per the upcoming PDF Association / ISO standardization work) to render correctly in PDFium.

JXL benefits:

  • 30–50% better compression than JPEG (typical for photographic content)
  • Lossless JPEG transcoding (recompress JPEG sources without generation loss)
  • Progressive decoding
@hjanuschka
hjanuschka / screenshots.md
Created February 1, 2026 23:02
Chromium bubble fix screenshots

Chromium Bubble Fix Screenshots

Before/After

Screenshot 1

Screenshot 2

@hjanuschka
hjanuschka / 0001-Fix-bubble-positioning-in-app-windows.patch
Created February 1, 2026 22:52
Fix bubble positioning in app windows (Chromium patch)
From b29d44529f19aa24beeaf197838793b8d1b3d1cf Mon Sep 17 00:00:00 2001
From: Helmut Januschka <[email protected]>
Date: Sun, 1 Feb 2026 23:41:10 +0100
Subject: [PATCH] Fix bubble positioning in app windows
When the toolbar isn't visible (e.g., --app mode), fall back to anchoring
bubbles to the contents view and reposition them to the top-right corner.
---
.../location_bar_bubble_delegate_view.cc | 15 +++++++++++++++
chrome/browser/ui/views/toolbar/toolbar_view.cc | 9 +++++++++
@hjanuschka
hjanuschka / chromium-bubble-fix.patch
Created February 1, 2026 22:52
Fix bubble positioning in app windows
Fix bubble positioning in app windows
When the toolbar isn't visible (e.g., --app mode), fall back to anchoring
bubbles to the contents view and reposition them to the top-right corner.
---
diff --git a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
index 01a5846cd6d9d..203c9c56c9b8a 100644
@hjanuschka
hjanuschka / chromium-wayland-app-mode-subsurface-bug.md
Created February 1, 2026 19:09
Chromium --app mode Wayland subsurface positioning bug

Chromium --app Mode Wayland Subsurface Positioning Bug

Summary

When running Chromium with --app flag on Wayland (Hyprland compositor), popup dialogs (like "Save Password" prompts) appear outside the window bounds, positioned to the top-left of the screen instead of inside the application window.

Environment

  • Compositor: Hyprland 0.53.0
  • Chromium Version: 144.0.7559.109 (Arch Linux)
@hjanuschka
hjanuschka / didomi-consent-gate.js
Created January 22, 2026 14:38
Didomi Consent Gate - Load scripts only when vendor 755 + purpose 1 (cookies) are consented
@hjanuschka
hjanuschka / jxl-rs-audit.md
Last active January 16, 2026 08:41
jxl-rs audit report: v0.2.2 → main (7c74207)
@hjanuschka
hjanuschka / gist:3c6c0e00069281c34b438576c5037493
Created December 28, 2025 19:13
Fix Chromium crash caused by corrupted Sync Data LevelDB
# Chromium Coredump Fix - Corrupted Sync Data
## Symptom
Chromium crashes immediately on launch with SIGTRAP coredump.
## Cause
Corrupted `Sync Data/LevelDB` database in the Chromium profile.
## Fix
```bash
@hjanuschka
hjanuschka / orca_test_page.html
Created December 26, 2025 20:23
Orca Accessibility Test - Named Forms as Landmarks (CL 7232474)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Orca Accessibility Test - Named Forms as Landmarks</title>
<style>
body { font-family: sans-serif; max-width: 800px; margin: 40px auto; padding: 20px; }
section, form, nav, aside { border: 1px solid #ccc; padding: 15px; margin: 15px 0; }
h1, h2, h3 { color: #333; }
label { display: block; margin: 10px 0 5px; }