6a96de4073e3fba603dc52c69e2d19decc60badd
Fixes JavaScript error "given browserview is not attached to the window" that occurred when unlocking the screen after boot with password protection. Changes to unlockScreen() function: - Add try-catch around hidden view restoration to prevent crashes - Ensure view is attached with addBrowserView() before setTopBrowserView() - Add fallback to regular views if hidden view restoration fails - Validate currentIndex is within bounds before using it - Check views.length>0 before attempting to attach views This ensures safe view restoration in all unlock scenarios, particularly when unlocking immediately after boot with password protection enabled.
Languages
Shell
94.1%
JavaScript
4.7%
HTML
0.9%
CSS
0.3%