replit / desktop

Replit Desktop App
114 stars 3 forks source link

Update window open handler to accept new allowlisted protocols #152

Closed sergeichestakov closed 6 months ago

sergeichestakov commented 6 months ago

Why

Follow on to https://github.com/replit/desktop/pull/151, I missed a spot here when I updated our allowlisted protocols to include replit:// and vscode://. We need to update the window open handler logic to match that of the will-navigate event handler to account for URLs opened via target="_blank" and programmatically via window.open. This ensures the behavior will be consistent to what we see in the will-navigate handler which fires in all other cases.

What changed

Update window open handler to accept new allowlisted protocols to match what we do in the will nav handler so that target=_blank and window.open work as expected.

Test plan