https://bugs.kde.org/show_bug.cgi?id=414512

Kai Uwe Broulik <k...@privat.broulik.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/pla
                   |                            |sma-browser-integration/084
                   |                            |68773f1fefecbe27bab89e64f8d
                   |                            |f80254315a
             Status|CONFIRMED                   |RESOLVED

--- Comment #9 from Kai Uwe Broulik <k...@privat.broulik.de> ---
Git commit 08468773f1fefecbe27bab89e64f8df80254315a by Kai Uwe Broulik.
Committed on 14/04/2020 at 09:19.
Pushed by broulik into branch 'master'.

Restore old Audio prototype after exportFunction

exportFunction doesn't carry over a prototype, nor can I assign a non-function
with it afterwards.
However, Firefox exports the "unsafe" stuff in wrappedJSObject, so I can
actually get the original untrusted prototype,
exportFunction my new function, and then set it back.

I can't just use the prototype in content-script since it wouldn't be
accessible from the webpage.
Interestingly enough, I have to use window.Audio rather than
window.wrappedJSObject.Audio for creating the player as the
wrapped one doesn't appear to be working when used from this function. This one
then still passes onto the website like
normal and plays sound.

Differential Revision: https://phabricator.kde.org/D28706

M  +13   -3    extension/content-script.js

https://commits.kde.org/plasma-browser-integration/08468773f1fefecbe27bab89e64f8df80254315a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to