fix: address pr-bug-scan validated finding from #4765

Pass browserDefaultZoomLevelRef.current as resetLevel to applyBrowserPageZoom at BrowserPane.tsx:3220 so reset uses configured default, not 0.
This commit is contained in:
orca-bug-scan-bot
2026-06-07 13:04:47 -07:00
parent 8aa5b53148
commit e8508024e8
@@ -3217,7 +3217,11 @@ function BrowserPagePane({
if (!isActiveRef.current) {
return
}
const nextLevel = applyBrowserPageZoom(webviewRef.current, direction)
const nextLevel = applyBrowserPageZoom(
webviewRef.current,
direction,
browserDefaultZoomLevelRef.current
)
if (nextLevel !== null) {
setBrowserDefaultZoomLevel(nextLevel)
showBrowserZoomFeedback(nextLevel)