- Oracle szervereket akar Musk AI-cége
- Linux kezdőknek
- Színészek hangjait lopta el egy AI-cég
- Xiaomi AX3600 WiFi 6 AIoT Router
- Kaspersky Antivirus és Internet Security Fórum
- Visszavonta az Intel és a Qualcomm Huawei-hez kiadott exportlicencét az USA
- A streamingszolgáltatások összecsomagolása lehet a következő divat
- Aliexpress tapasztalatok
- A tüntetések ellenére is bővítheti német gyárát a Tesla
- Ubiquiti hálózati eszközök
Új hozzászólás Aktív témák
-
sztanozs
veterán
A linkelt blogbejegyzésből vettem:
How It Works
If you wanted to share an object to the content, from your add-on code you would do something like this:var sharedObject = { foo : "Hello!" };
contentWindow.wrappedJSObject.sharedObject = sharedObject;Then from a script in the content you can do something like this:
alert(window.sharedObject.foo);
And this would alert the text “Hello!” in the page. Starting with Firefox 17, this won’t work. The page will be able to see window.sharedObject, but none of its properties or functions will be visible. For it to work, you now must do this in your add-on code:
var sharedObject = { foo : "Hello!", __exposedProps__ : { foo : "r"} };
contentWindow.wrappedJSObject.sharedObject = sharedObject;The __exposedProps__ property is the whitelist that tells Firefox it’s okay to share foo with the content. The value can be “r” (read-only), “w” (write-only), or “rw” (read and write). You generally want to use “r”.
Note that this only affects your add-on if you’re sharing objects with the content. If all you’re doing is passing values like numbers, booleans or strings, they should continue to work.
[ Szerkesztve ]
JOGI NYILATKOZAT: A bejegyzéseim és hozzászólásaim a személyes véleményemet tükrözik; ezek nem tekinthetők a munkáltatóm hivatalos állásfoglalásának...
Új hozzászólás Aktív témák
- Az AI felé fordul az IKEA is
- LG C4 tévé, a népszerű OLED-sorozat legfrissebb tagja
- Okos Otthon / Smart Home
- nVidia tulajok OFF topikja
- Huawei Watch Fit 3 - zöldalma
- Napelem
- Ezek a OnePlus 12 és 12R európai árai
- Horgász topik
- Sony MILC fényképezőgépcsalád
- Eredeti játékok OFF topik
- További aktív témák...
- Playstation 5 All Digital Edition 825GB, 12 hónap garanciával, Bp-i üzletből eladó!
- HP OMEN 15 GAMING laptop (i7-8750H, 32GB DDR4, GTX 1060)
- Vadi új HP VICTUS 16 i5-12500H // 16 GB DDR5 RAM // RTX 3050TI // 1TB m2 SSD // GARANCIA
- IPhone 12 Pro 128GB gyári független gyönyörű állapot új akku!!
- ÁRON ALUL ELADÓ GAMING, STREAMING PC KONFIG! AJÁNDÉKOKKAL!
Állásajánlatok
Cég: Ozeki Kft.
Város: Debrecen
Cég: Alpha Laptopszerviz Kft.
Város: Pécs