Skip to main content

window_open

Function window_open 

Source
pub(crate) fn window_open(
    _it: &mut Interp,
    _this: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

window.open(url, target, features)(丸ごと未対応だった。confirm/ promptと同じ監査で発見。typeof window.open === 'function'という 定番のフィーチャー検出ガードや、ポップアップを試みるコードが TypeErrorで丸ごと落ちる状態だった。2026-07-16 発見・実装)。この処理系 には複数ウィンドウ/ポップアップを新規に開く仕組みが無いため、実際には 何も開かず、仕様上「開けなかった(ポップアップブロック等)」場合と 同じnullを返す誠実な簡略実装(ブラウザのポップアップブロッカーが window.open()を拒否した場合の正規の戻り値と同じ形)。