Chrome Extension Debugging Lessons — Domain Whitelist, Duplicate Listeners, Closure Pitfalls

When maintaining a Chrome extension, “this should definitely work, why doesn’t it?” comes up more often than expected. I made four consecutive mistakes in a short period, each with a different root cause. Writing them down. 1. A return in the dispatch block silently kills generic detection Content scripts typically end with a pattern like this: if (isSomeSpecificPage()) { doSomethingSpecific(); return; // ← exits here } // Generic DOM detection (MutationObserver, etc.) const observer = new MutationObserver(() => { ... }); observer.observe(document.body, { childList: true, subtree: true }); After adding a feature for a specific domain with an early return, the generic DOM detection never ran in a popup window on that domain. ...

2026-03-09 · 5 min read · Seunghan
Chrome Extension Oacx Iframe Korean Ime Fix

Chrome Extension iframe OACX Auto-Fill Not Working — Timing and Korean IME Issues

I built a Chrome extension that auto-fills the OACX (simplified authentication) form on Korean government sites. It worked on most sites, but got feedback saying “the name field isn’t being filled” on a specific major site. Symptoms Extension auto-fills name, birthdate, and phone number when the simplified auth popup opens Works correctly on most government sites (Gov24, National Health Insurance, etc.) Only on a specific site, the name field was empty – birthdate and phone number also weren’t filled Investigation: Checking Actual DOM Structure with Playwright Opened the page reported by the user directly using Playwright MCP. ...

2026-01-23 · 5 min read · Seunghan
Api Response Wrapper Token Parsing Debug

Login Keeps Logging Out — Chain Bugs Caused by API Wrapper Format Mismatch

The mobile app keeps logging out. It works fine right after login, but when you background the app briefly and reopen it, the login screen appears. Token storage in SecureStorage was verified, and 401 auto-refresh via Dio interceptor was implemented. So why? Reproducing the Symptom Login to app -> works normally Restart app around access token expiration time -> Session restore fails, forced logout Found a hint in the server logs. ...

2025-12-02 · 5 min read · Seunghan
Chrome Extension Insurance Autofill Playwright Gif

Chrome Extension Content Script — Korean Insurance Auto-Fill, HTML Mock Screenshots, MOV to GIF

Notes from extending the form auto-fill feature in a browser extension and the various struggles along the way. 1. Direct Car Insurance Site Content Script Auto-Fill Problem: Can’t Read Form Structure via WebFetch on JS-Rendered Sites Korean insurance company direct sites mostly use SPA/RIA architecture. Samsung Fire: SFMI proprietary RIA framework Hyundai Marine, DB Insurance: Spring MVC .do URL patterns KB Insurance, Meritz: Separate mobile/PC domains Scraping URLs with WebFetch doesn’t yield form field structures. I chose to cover common industry field name patterns instead of manually checking each site via DevTools. ...

2025-10-28 · 5 min read · Seunghan
Privacy Policy Terms Disclaimer Contact