ブラウザの設定でJava Scriptの使用を有効にしてご利用ください。
出典:Wiktionary
chancing upon
「chancing upon」は複合動詞「chance upon」の現在分詞です