Add a New Comment (Rich Markup)
Fixed in trunk and backported to branch 0.0.9. Available in 0.0.9-4.
The best way to fix this is to inject the script in the page when it runs within Greasemonkey. It is executed this way by Epiphany and Midori anyway. There is an open Greasemonkey issue about Firefox 4 and unsafeWindow, where it is also suggested to inject the script in the page and to not use unsafeWindow.
Same behaviour with VLC. The JavaScript API the plugins export are accessible in the browser outside the Greasemonkey sandbox. All these return undefined with Totem within Greasemonkey:
console.log(unsafeWindow.document.getElementById("linterna-magica-video-object-0").playlist); console.log(window.document.getElementById("linterna-magica-video-object-0").playlist); console.log(window.document.getElementById("linterna-magica-video-object-0").wrappedJSObject.playlist);
While outside Greasemonkey this:
console.log(window.document.getElementById("linterna-magica-video-object-0").playlist);
returns:
[object NPObject JS wrapper class]
The web buttons for controlling the video are not working with GNU IceCat 4 and Totem. The duration of the clip is not showed. Probably could be reproduced with other plugins. The JavaScript API the plugin exports is not accessible. It might be bug in the NPAPI for plugins in IceCat/Firefox 4. FireBug output for most buttons: video_object.playlist is undefined (3591 out of range 509) greasemonkey.js (line 3591) video_object.playlist is undefined (3570 out of range 509) greasemonkey.js (line 3570) video_object.playlist is undefined (3591 out of range 509) greasemonkey.js (line 3591) video_object.playlist is undefined (3570 out of range 509) greasemonkey.js (line 3570) video_object.input is undefined (3640 out of range 509) greasemonkey.js (line 3640) video_object.audio is undefined (3745 out of range 509) video_object.playlist is undefined
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 3 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11