I've launched Chrome explicitly forcing it to use the dedicated GPU in my laptop.
After a while a sudden graphical glitch occured, which turned all the open Chrome windows completely black including the url bar and the tabs section, only an outline of the window remained.
The pages were still responsive thought, because when I pressed space while the window in which spotify was open was focused, the music started playing.
I could've just restarted the browser and it would most likely return to normal that way, but I had information on a few pages that were important to me and would be lost after a restart, so I was looking for a way to preserve that data.