go-browser

v0.3.6 -> v0.3.8

Summary

  • v0.3.7 Makes cancellation during manual verification explicit and brings the bilingual documentation into the repository.
  • v0.3.8 Tightens fetch input validation and adds multilingual error-title detection for page extraction. Profile selection now defaults to the last active browser profile when none is specified.

翻譯

  • v0.3.7 讓手動驗證的取消狀態更明確,並將雙語文件站納入版本庫。
  • v0.3.8 收緊擷取網址的輸入驗證,並為頁面萃取加入多語系錯誤標題辨識。未指定設定檔時,預設改沿用最後使用的瀏覽器設定檔。

Changes

FEAT

  • Add ValidURL and tighten URL validation in page fetching (@pardnchiu) [37405ab]
    • Reject URLs exceeding 2048 characters, containing embedded credentials, or lacking a valid hostname with a dot
    • Standardize validation errors with the [Invalid] prefix while keeping the scheme requirement in parseHref
  • Add IsErrorPageTitle with embedded multilingual error-page title patterns (@pardnchiu) [37405ab]
    • Match lowercase substrings against 101 patterns covering 404, 403, 410, and access-denied titles in core/embed/error_page_titles.json
  • Default Option.Profile to the last used Chrome profile from Local State (@pardnchiu) [37405ab]
    • Fall back to "Default" when the Chrome profile root or profile.last_used field is unavailable

翻譯

  • 新增 ValidURL 並收緊頁面擷取的網址驗證
    • 拒絕超過 2048 字元、內含帳號密碼或主機名稱不含點號的網址
    • 統一以 [Invalid] 前綴回報驗證錯誤,並於 parseHref 保留協定必填檢查
  • 新增 IsErrorPageTitle 與內嵌的多語系錯誤頁標題樣式表
    • 以小寫子字串比對 core/embed/error_page_titles.json 內 101 筆涵蓋 404、403、410 與拒絕存取的標題樣式
  • 當 Option.Profile 未指定時,預設改讀取 Local State 中最後使用的 Chrome 設定檔
    • 當 Chrome 設定檔根目錄或 profile.last_used 欄位無法取得時,退回使用 "Default"

FIX

  • End the manual verification wait when the browser window closes (@pardnchiu) [ce42ee2]
    • Return ErrChallengeClosed so callers can distinguish cancellation from a timeout

翻譯

  • 關閉瀏覽器視窗時,結束手動驗證等待
    • 回傳 ErrChallengeClosed,讓呼叫端區分取消與逾時

Scope

  • core/ — FEAT (fetch.go, launcher.go)
  • core/embed/ — FEAT (error_page_titles.json)
  • core/challenge.go — FIX
  • README.md — DOC
  • doc/ — DOC
  • wiki-worker/ — DOC
  • .gitignore, .gitattributes — DOC

Generated by SKILL