r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Plugin-2] Browser Plugins

Josh
8-May-2006
[586]
Just a quick interjection, but I agree on the installation/interface 
being exactly the same as Flash.   The flash installation is mindless 
(see http://kealist.blogspot.com/) and the plugin should be identical 
to this.   I would have done the same for FF, but I can't get it 
to uninstall.
[unknown: 9]
8-May-2006
[587]
Yup...
Oldes
9-May-2006
[588x2]
About the settings: I would prefere something like built in side 
(top/left/down/right) bar which can be hidden if user want or still 
visible or even animated, where can be info about plugin version, 
configuration buttons or user defined buttons. In this bar there 
can be built in progress bar as well. I'm agains the right click 
context menu as the right click we can use for other user defined 
purposes, for example If I would like to make my own designed right-click 
menu etc.
But the advantage of the system right-click menu is, that can be 
out of Rebol boundaries. So maybe it's still worth to think about 
it. Here is example how it's possible to use user defined context 
menu in Flash: http://box.lebeda.ws/~hmm/rswf/index.php?example=127
Anton
9-May-2006
[590]
I think the inner border idea is a good one Oldes. That will give 
a standard look to rebol plugin instances. I imagine the border can 
have some controls to hide itself, go full-screen etc.
Pekr
9-May-2006
[591x4]
that is one of options I tried to suggest. The trick is imo to make 
it unobtrusive - will it be sliding? How long will you hold mouse-over 
the region to see it?
Anton - very good idea to eventually make it full-screen ....
I would make it also some 5% transparent, black and white design 
.... top bar displaying some basic buttons, date/time and progress 
dialog ... kind of minimalistic aproach ....
... and I dare to repeat the idea for rebol 3.0 - we need rebol native 
windowing, or imo we are in trouble ...
JoshM
9-May-2006
[595x8]
Hi all -- Carl and I are still talking about these versioning issues. 
So we'll have an update on that soon.
Cyphre, I'm taking a look at that mouse event bug now....should get 
an update to you soon.
Ah, Cyphre, I know the problem.
This is an architecture issue with the plugin...we dealt with it 
back in 2004.
REBOL can only function with its own Win32 HWND window that it controls 
completely (due to message loop issues), so, in order to change as 
little as possible within REBOL, we created an invisible proxy window 
that REBOL controls. When events come into the plugin window, they 
are asynchronously posted to the invisible proxy window, and only 
then make their way into REBOL.
So the delay you're seeing is the delay between the event coming 
into the plugin and being received by REBOL, due to the post-message 
delay (it's actually crossing from one thread to another, hence why 
we are using async).
I think we should look at re-designing this for REBOL 3.0.
Re. Mozilla page refresh bug: This is a mysterious one. I'm going 
to have to dig down into the REBOL C code to figure out what is going 
on here. I'll get an update to you all soon on that as well.
Anton
9-May-2006
[603]
Thanks for the update. Sounds like fun ! :)
Henrik
9-May-2006
[604]
joshm: this may not be entirely related, but I'd like to see some 
kind of event throttling, because of the very varying mouse position 
sample frequency under different OS'es. too many events slows VID 
down
Pekr
9-May-2006
[605x2]
Josh - have you found out how to do 'do-browser in FF and Opera? 
Today I thought about how to properly "import" proxy settings (use 
what browser uses) - simply to use some JS facility of browser, if 
there is any such function ....
the trouble in our company is (not sure how common it is), that we 
use proxy configuration script, which gets executed by browser, and 
returns according proxy to go thru ....
Henrik
9-May-2006
[607]
I'm not sure that such information is possible through the DOM (which 
is where it would come from). wouldn't that be a security hole?
Pekr
9-May-2006
[608]
not sure, I am not skilled enough to see that far :-)
Henrik
9-May-2006
[609]
I think it would be. DOM only allows access to page related data, 
not anything beyond that. you can, I believe, tell which browser 
you are running through the DOM
Volker
9-May-2006
[610x2]
Maybe rebol3 can do networking thru the browser? Would be cleaner.
Versioning: I dont see the problem, but i may understand com wrong. 
AFAIK a single file can implement multiple interfaces. So you dont 
have multiple files when the new version implements the interfaces 
for the old rebols.
JoshM
9-May-2006
[612x5]
Volker, to clarify, the problem is not with COM versioning, but rather: 
when to download a new REBOL DLL binary
regarding proxy settings: please post that on the 1.3.3 checklist 
if you want me to take a look at that. if you could provide a sample 
configuration script for testing, that would be great
do-browser in Mozilla: haven't looked at it yet. it would require 
access to both the Javascript interpreter as well as an "evaluate" 
(or execScript) method that would parse and interpret the script.
if anyone knows of such a feature in the Mozilla API, please let 
me know
networking through the browser: you mean initiating HTTP requests 
for everything? that would slow performance waaay down.
Ryan
9-May-2006
[617]
As far as web stuff goes, my customers want the "real life" apps. 
 Security needs range from completely disabled to something like 
java's, but being able to save files locally (save-as requestor).
JoshM
9-May-2006
[618x6]
Henrik, do you mean x # of events per second?
That's kind of tricky to do. It might be worth thinking about for 
the 3.0, or better yet: how about speeding VID up?
From an architecture perspective, an application should be able to 
handle as many events as the OS throws at it. Especially for graphics-intensive 
applications: those extra mouse events make a huge difference.
Pekr, regarding proxy settings: is there a problem with proxy settings 
via the registry?
Pekr: actually, I'm sure there is, that's why you are asking. Can 
you explain the problem in a little more detail? You need that auto-config 
script interpreted? Maybe it would be easier to configure REBOL to 
rad the auto-configure script than to try to get IE to parse it and 
get the details via an API. Thoughts?
Question: Did someone say there was a wrapper for Mozilla plugins 
to run on IE? If so, can you post the URL please?
Henrik
9-May-2006
[624x2]
josh, it's probably not appropriate to talk about for the plugin, 
so I commented on it in the REBOL3.0 blog
(the events thing)
JoshM
9-May-2006
[626x2]
np
(I found a wrapper for ActiveX controls to run on Mozilla, but not 
the other way around)
ScottT
9-May-2006
[628]
doesn't IE already do netscape-style plugins?  I've never had any 
troubles running any plugin with IE.  It''s always been the other 
way around, where IE was the only browser that did ActiveX, well, 
until Neptune.   I guess I should try to make demo page with latest 
Moz plugin release before I pipe up.
BrianH
9-May-2006
[629]
I think Microsoft had patent problems with Netscape-style plugins 
(I may be thinking of something else).
Pekr
10-May-2006
[630x6]
Brian - yeah, I do remember something like patents involved, but 
mainly imo it was MS move with IE 5.5, to move out from NS kind of 
plug-ins - the rest of the world is still using NS plugin architecture, 
that is why Mozilla plug-in works with Netscape, Opera and possibly 
others.
ScotT - interesting - I posted some link and said it earlier, that 
RT could concentrate upon NS plug-in only .... as there is (somewhere 
:-) wrapper ActiveX, which can wrap to NS plug-ins ....
I would have to scan some links ......
JoshM - yes, I need the script to be interpreted by browser imo .... 
I will post you a source-code privately, as there are live IPs and 
I am lazy to change :-)
JoshM: please go to plugin-1 group, scroll up a bit to find my bold 
messages, and read on a bit, there are some findings. To post some 
notes - probably the most significant link is - 

http://www.mozilla.org/projects/plugins/


The plugin extension adobe, mozilla, apple, opera, macromedia and 
sun agreed upon is npruntime

How to host NS plug-ins in IE:

http://www.mozilla.org/projects/plugins/plugin-host-control.html
http://www.mozilla.org/projects/plugins/npruntime.html