8 Commits

Author SHA1 Message Date
Adrian Vollmer
3eda0fb604 Change behavior of loading indicator
We don't show the loading indicator at all between clicks. Instead, just
append the new iframe. Delete the old iframe when the new one sent the
"ready" message. This way we prevent flashing of the white browser
background, which looks jarring when viewing dark mode pages.
2024-04-27 18:59:25 +02:00
Adrian Vollmer
4c0484a1a5 Show more relevant data in log messages 2024-04-27 17:29:01 +02:00
Adrian Vollmer
f667106a9c Fix issues when mimetype is incorrectly determined
This caused tons of popups.
2024-04-27 17:28:25 +02:00
Adrian Vollmer
e207e2086f Fix links with anchor; add test 2024-04-27 16:55:00 +02:00
Adrian Vollmer
b40354235a Improve performance by using messages
Instead of inserting the entire global context into the iframe's HTML,
where we need to encode it to and decode it from JSON and base64, we
only insert a stripped global context, i.e. without the file tree and
the utils. If these are needed in the iframe, for example when a script
changes the DOM and needs to load an image, we use messages to
communicate with the parent document and retrieve the file in question.
2024-04-27 15:44:16 +02:00
Adrian Vollmer
2a8cbc75c8 Add logic for a menu 2024-04-21 17:35:29 +02:00
Adrian Vollmer
b496b1cad7 Fix doc title and loading indicator 2024-04-21 17:35:29 +02:00
Adrian Vollmer
8aa570030b Rename some files; also finish some work from prev commit 2024-04-21 17:35:29 +02:00