diff --git a/manifest.json b/manifest.json index 25b2ed0..5fa1a21 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,8 @@ "downloads", "scripting", "storage", - "offscreen" + "offscreen", + "notifications" ], "host_permissions": [ "" diff --git a/smoke.sh b/smoke.sh index c582d4c..0f5e2d1 100755 --- a/smoke.sh +++ b/smoke.sh @@ -41,7 +41,25 @@ DOWNLOADS_DIR="${HOME}/Downloads" FIXTURE_DEST="${REPO_DIR}/tests/fixtures/last_30sec.webm" WEBM_TMP="/tmp/mokosh-last_30sec.webm" CHROME_LOG="/tmp/mokosh-chrome.log" -SHARE_TARGET="Mokosh Smoke Test" +# Plan 01-09 D-15-display-surface: SHARE_TARGET must match the OS-locale- +# specific name Chrome's picker uses for entire-screen selection. Known +# strings (Chrome stable, observed at plan-write time): +# English: "Entire screen" +# Russian: "Весь экран" +# German: "Gesamter Bildschirm" +# French: "Ecran entier" +# Authoritative source: Chromium's grit resource definitions in +# chrome/app/generated_resources.grd (per-locale .xtb translations under +# chrome/app/resources/). The IDS_DESKTOP_MEDIA_PICKER_SOURCE_TYPE_SCREEN +# identifier lives in the .grd, NOT in the .cc — per-locale translations +# drift across Chrome major versions, so the only reliable check is to +# run the picker once and inspect the source label in Chrome's UI. +# If --auto-select-desktop-capture-source="${SHARE_TARGET}" fails to +# auto-accept on the operator's Chrome locale, the operator picks the +# screen manually one time; KEEP_PROFILE=1 on subsequent runs carries +# the picker's last-pick memory across re-runs, sidestepping the +# auto-select string altogether. +SHARE_TARGET="Entire screen" CHROME_BIN="${CHROME_BIN:-/usr/bin/google-chrome-stable}" KEEP_PROFILE="${KEEP_PROFILE:-0}" POLL_TIMEOUT="${POLL_TIMEOUT:-900}" @@ -104,7 +122,7 @@ fi # --- compose the smoke tab data URL --- read -r -d '' SMOKE_HTML <<'EOF' || true -Mokosh Smoke Test +Mokosh Smoke Test — monitor mode