bugLinterna Mágica - Bugs: bug #33120, Web buttons are not responding...

 
 

bug #33120: Web buttons are not responding with GNU IceCat 4

Submitted by:  Ivaylo Valkov <valkov>
Submitted on:  Tue 19 Apr 2011 09:09:25 AM UTC
 
Category:  Interface bug Severity:  5 - Blocker
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  valkov
Open/Closed:  Closed Release:  0.0.9-3
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Tue 26 Apr 2011 10:27:53 AM UTC, comment #3: 

Fixed in trunk and backported to branch 0.0.9. Available in 0.0.9-4.

Ivaylo Valkov <valkov>
Project Administrator
Mon 25 Apr 2011 01:17:45 PM UTC, comment #2: 

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.

Ivaylo Valkov <valkov>
Project Administrator
Tue 19 Apr 2011 11:18:14 AM UTC, comment #1: 

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]

Ivaylo Valkov <valkov>
Project Administrator
Tue 19 Apr 2011 09:09:25 AM UTC, original submission:  

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

Ivaylo Valkov <valkov>
Project Administrator

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by valkov (Submitted the item)
  •  

    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.

     

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-26 valkov StatusIn Progress => Fixed
        Open/ClosedOpen => Closed
    2011-04-25 valkov StatusNeed Info => In Progress

    Back to the top


    Powered by Savane 3.9