Colleagues, I need your advice. I am making an extension that displays media content in a new tab. Sometimes it can be large files, photos up to 7 megabytes, videos up to 100 megabytes. We use MV3.
Now the mechanism is as follows. The user does not have to wait for the download; we download the files in the background. Next, we put them in the extension storage. We are waiting for the user to open a new tab; at this moment, we create thumbnails of our files through the canvas and move the files themselves to the user's file system. And we save the records about the files in the indexDB.
Everything works, but we are not satisfied that to complete the preparation of the file completely, we need to wait for the user to open the tab. We need a windows object to transfer files to the file system. But we want to perform all operations in the background to already wait for the user with ready content.
We tried to work with other storages, but they are essential for us the speed of displaying files, and we did not find anything comparable in speed to the file system. Are we missing something?
Or maybe someone will tell us how to call some windows from the background in which we can finish preparing the content: creating thumbnails in the canvas and moving to the file system?