Issue119

Title Opera compatibility
Priority feature Status deferred
Superseder Nosy List connolly, davidh
Assigned To Topics

Created on 2006-08-22.07:40:34 by davidh, last changed 2006-08-23.10:07:07 by connolly.

Messages
msg313 (view) Author: connolly Date: 2006-08-23.10:07:07
ok, I added the link to
http://dig.csail.mit.edu/2005/ajar/ajaw/Help.html#Compatibility

I'm not sure what to do about the netscape.security.PrivilegeManager stuff,
but I doubt we'll get to it this release, so I'm deferring it. Anybody who gets
a bright idea is welcome to assign this issue to yourself.
msg312 (view) Author: davidh Date: 2006-08-23.05:28:28
Hi Dan.

The widget is now public and is available from <http://widgets.opera.com/widget/
5053>. Can you link to it from your page?
msg310 (view) Author: connolly Date: 2006-08-22.18:54:43
thanks for the contribution, David. Hm... we should make a note about this from
http://dig.csail.mit.edu/2005/ajar/ajaw/Help.html#Compatibility
msg305 (view) Author: davidh Date: 2006-08-22.12:11:44
Forgot to mention that I'm also hiding the map. It didn't show up, but wouldn't 
work anyway, as the comment in the index.html file says: "Script for Google 
Maps API --WARNING: Only works for dig.csail.mit.edu-originating requests"
msg303 (view) Author: davidh Date: 2006-08-22.07:55:16
By the way, this might not be the right place to post the beneath. In that 
case, sorry.
msg301 (view) Author: davidh Date: 2006-08-22.07:40:34
Hello Tabulator team.

My name is David Håsäther and I'm currently doing a summer internship at Opera 
Software.

I was assigned, by Charles McCathieNevile, to make the Tabulator (v 0.7) work 
as a widget in Opera.

Charles wanted me to write what was needed to make it work in Opera. It wasn't 
much at all really. The main issue was the mapURI function in tabulate.js. 
Since widgets will throw a security violation error when trying to contact 
localhost (as they can make XMLHttpRequest calls to other domains), I'm just 
returning the URI directly if the script is run from an Opera widget: if 
(window.opera && window.widget) return uri;.
Another issue was with the sources_fetch function in rdf/sources.js. The Mac 
version of Opera 9 did, for some reason, not get past the following lines (line 
97-108), so I commented them out in the widget version:

  if (1==1){
    try {
        
netscape.security.PrivilegeManager.enablePrivilege( "UniversalBrowserRead");
        tinfo("Got UniversalBrowserRead");
    } catch(e) {
        alert("(Please see the Tabulator Help!) Failed to get privilege 
UniversalBrowserRead to open "
    +uri+ ", " + e);
    }
  }
  try { 
netscape.security.PrivilegeManager.enablePrivilege( "UniversalXPConnect"); 
  } catch (e) { alert("couldn't get xp connect"); }

And that's it for the JavaScript. There are some other stuff that needs to be 
added to make it work as a widget, e.g. a config XML file and some extra CSS.

There may of course be other bugs that I haven't noticed, but all in all, it 
seems to work pretty fine right now.

Cool project by the way, keep up the good work.
History
Date User Action Args
2006-08-23 10:07:07connollysetstatus: chatting -> deferred
assignedto: connolly ->
messages: + msg313
2006-08-23 05:28:29davidhsetmessages: + msg312
2006-08-22 18:54:43connollysetassignedto: connolly
messages: + msg310
nosy: + connolly
2006-08-22 12:11:44davidhsetmessages: + msg305
2006-08-22 07:55:16davidhsetmessages: + msg303
2006-08-22 07:54:34davidhsetmessages: - msg302
2006-08-22 07:54:15davidhsetstatus: unread -> chatting
messages: + msg302
2006-08-22 07:40:34davidhcreate

To request an account, email [name of this project]@csail.mit.edu.