refactor: use async invoke to get webPreferences in security-warnings.ts (#18821)
refactor: use async invoke to get webPreferences in security-warnings.ts (#18821)


bpasero/electron,electron/electron,bpasero/electron,seanchas116/electron,bpasero/electron,the-ress/electron,gerhardberger/electron,the-ress/electron,seanchas116/electron,electron/electron,electron/electron,bpasero/electron,electron/electron,electron/electron,gerhardberger/electron,gerhardberger/electron,the-ress/electron,the-ress/electron,the-ress/electron,gerhardberger/electron,seanchas116/electron,gerhardberger/electron,seanchas116/electron,bpasero/electron,the-ress/electron,electron/electron,gerhardberger/electron,seanchas116/electron,electron/electron,gerhardberger/electron,bpasero/electron,the-ress/electron,seanchas116/electron,bpasero/electron