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
86.8%
JavaScript
5.8%
HTML
4.1%
Python
2.4%
Perl
0.5%
Other
0.4%