1 2009-11-06 Chris Toshok <toshok@ximian.com>
3 * plugin.cpp (PluginInstance::FlushSplash): WalkTreeForLoaded ->
4 WalkTreeForLoadedHandlers, and explicitly emit Loaded
7 2009-11-05 Alan McGovern <amcgovern@novell.com>
9 * cbinding.h: regen. r: toshok
11 2009-11-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
13 * plugin-class.cpp: Don't try to throw js exceptions when returning
16 * plugin-class.h: Remove THROW_JS_EXCEPTION2, not used anymore.
20 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
22 * plugin.cpp|h: Don't create the window if the splash failed to load -
23 this fixes a crash with MS DRT #352 where the splash error handler
24 shuts down the browser, causing us to crash later on when we try to
29 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
31 * plugin.cpp|h: Remove all code which handles downloading of assemblies
32 which aren't in the xap, since that can't happen. Some of this code was
33 already commented out.
37 2009-11-02 Alan McGovern <amcgovern@novell.com>
39 * cbinding.h: regen. r: rolf
41 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
43 * plugin.cpp: Add missing Deployment::SetCurrent.
47 2009-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
49 * plugin.cpp: Always show the codec download entry in the right click
50 menu - this allows easy redownload for whatever reason, instead of
51 requiring the user to manually locate and delete the codecs if they're
56 2009-10-20 Jeffrey Stedfast <fejj@novell.com>
58 * plugin.cpp (same_site_of_origin): If either of the urls is null,
59 return true. Fixes drt #329.
63 2009-10-20 Chris Toshok <toshok@ximian.com>
65 * plugin-class.cpp (MoonlightObject::ClearEventProxies): fix
66 ancient sles-10 build.
70 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
72 * plugin-glue.cpp: We might need the current plugin (NPP->pdata) during
73 plugin shutdown (to report errors to js in case of any errors).
75 * plugin-class.cpp|h|in.h:
76 Added MoonlightScriptControlObject::[Pre|Post]SwitchPlugin methods: stores
77 the data (event handlers) we need to copy over from one plugin instance to
78 the next when the source changes. Also make sure to delete all current
79 event handlers / proxies, since the root npobjects are not recreated.
80 EventListenerProxy: added GetCallback and IsFunc accessors.
81 MoonlightObject: Add a SetPlugin method that allows moving MoonlightObjects
82 from one PluginInstance to another.
85 Added a PluginInstance::Recreate method that recreates the PluginInstance
86 when the source changes. Remove unused parameter to PluginInstance ctor.
87 Keep track whether the window has been created or not (used to not recreate
88 the window, since it moves from one PluginInstance to another).
92 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
94 * plugin-class.h.in: Update with recent changes to plugin-class.h.
98 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
100 * plugin-class.[g.]cpp|h: Store a reference to the PluginInstance on
101 all MoonlightObjects instead of the NPP instance, since we'll soon
102 have more than one PluginInstance per NPP instance.
106 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
109 * plugin-class.h: Use the proper type for the content and settings
114 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
116 * windowless.cpp: Don't access the deployment field, use the
117 new SetCurrentDeployment method.
121 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
123 * plugin.cpp|h: Move all managed code handling to Deployment.
127 2009-10-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
129 * plugin-downloader.cpp: We should never allow downloading with another
130 plugin than the correct one.
134 2009-10-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
136 * plugin.cpp|h: Remove two obsolete and unused methods.
140 2009-10-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
142 * cbinding.h: Regenerated.
146 2009-10-08 Chris Toshok <toshok@ximian.com>
148 * plugin.cpp (PluginInstance::StreamAsFile): Add another cross
149 domain check after loading the splash (and emitting loaded
151 (PluginInstance::LoadSplash): substantially bulk up this code to
152 check for all the XDomain splash possibilities defined in drt
155 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
156 comment out a line of spew that's really really spewing in xdomain
161 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
163 * plugin.cpp|h: Make PluginInstance work with async shutdown by using
164 refcounting to only delete the PluginInstance when nobody needs it
165 anymore. Add two flags, HasShutdown and IsShuttingDown informing about
166 the current shutdown status. Destructor: rename to Shutdown and make
167 sure we zero/null out all the fields. Finalize: removed, not used.
168 Also ensure that the PluginInstance is not deleted until the managed
169 appdomain has been unloaded, since managed code has references to it.
170 Maintain a counter of the number of instances alive so that we can detect
171 when they are all deleted.
173 * plugin-class.cpp: Make html_release_object thread-safe by marshalling
174 any calls to the main thread. Also detect if the plugin has shut down
175 when trying to retain or release a npobject, in which case do nothing
176 at all, since firefox has already freed it.
178 * plugin-glue.cpp: Don't delete the plugin instance, call Shutdown
179 instead and unref it. Only shutdown moonlight if all the plugin instances
180 and all the deployments have been destroyed.
184 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
186 * plugin.cpp: Remove unused variable (fixes compiler warning).
190 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
192 * cbinding.h: Regenerated.
196 2009-09-25 Sebastien Pouliot <sebastien@ximian.com>
198 * plugin-class.cpp|h|h.in: Change html_object_invoke[_self] to
199 return the boolean representing the invokation result.
203 2009-09-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
205 * plugin-debug.cpp: Remove unused variable (fixes compiler warning).
209 2009-09-23 Chris Toshok <toshok@ximian.com>
211 * plugin-class.cpp (EventObjectCreateWrapper): return
212 dependency_object_classes [MOUSE_EVENT_ARGS_CLASS]; for both
213 MOUSEBUTTONEVENTARGS and MOUSEWHEELEVENTARGS.
215 fixes DRT #50 regression.
219 2009-09-23 Chris Toshok <toshok@ximian.com>
225 2009-09-23 Chris Toshok <toshok@ximian.com>
227 * plugin-accessibility.h (class Accessibility):
228 @ManagedEvents=Manual
234 2009-09-18 Jackson Harper <jackson@ximian.com>
237 * plugin.cpp: Remove the import_default_xmlns stuff, this is
238 handled by flags now.
241 2009-09-16 Jeffrey Stedfast <fejj@novell.com>
243 * plugin.cpp (Properties): Display the RuntimeVersion attribute.
247 2009-09-14 Chris Toshok <toshok@ximian.com>
249 * plugin-class.cpp (MoonlightErrorEventArgs::GetProperty): use
250 ErrorEventArgs accessors.
252 * plugin.cpp (PluginInstance::network_error_tickcall): pass a
253 MoonError to the ErrorEventArgs ctor.
254 (PluginInstance::splashscreen_error_tickcall): same.
255 (PluginXamlLoader::TryLoad): same, use accessor.
256 (PluginInstance::ManagedExceptionToErrorEventArgs): same.
258 2009-09-14 Jackson Harper <jackson@ximian.com>
260 * plugin-debug.cpp: Use foreach instead of gtkiter
262 2009-09-11 Sebastien Pouliot <sebastien@ximian.com>
264 * plugin.cpp: Fix regression/crash on DRT455 since
265 splashscreensource is now freed. Add missing g_free on
270 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
272 * cbinding.h: Regenerated.
276 2009-09-10 Jackson Harper <jackson@ximian.com>
278 * plugin.cpp: Add some namescope info to the debugging tree
282 2009-09-10 Jackson Harper <jackson@ximian.com>
284 * plugin.cpp|h: Update signature on SetProperty
286 2009-09-09 Chris Toshok <toshok@ximian.com>
288 * plugin.cpp (PluginInstance::PluginInstance): init
289 culture/uiculture to null.
290 (PluginInstance::~PluginInstance): free culture/uiculture, and
291 also plug a leak by freeing onSourceDownloadProgressChanged,
292 onSourceDownloadComplete, and splashscreensource.
293 (PluginInstance::Initialize): parse culture/uiculture <param>
295 (PluginInstance::InitializePluginAppDomain): track change to
296 InitializeDeployment argcount
297 (PluginInstance::ManagedInitializeDeployment): add
298 culture/uiculture args when calling the managed methods.
302 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
304 * plugin-class.cpp|.g.cpp.in|.h.in: no longer auto generate bindings
305 for MSI, copy paste the autogenerated from .g.cpp to .cpp. add a
306 SetProperty method and use to set the UriSource of the DZITS instead
307 of creating a new DZITS everytime.
309 * plugin-class.h|g.cpp: regen
311 2009-09-03 Alan McGovern <amcgovern@novell.com>
313 * plugin.cpp: It's possible that window will be null, so check
314 it exists before using it. r: toshok
316 2009-08-27 Chris Toshok <toshok@ximian.com>
318 * plugin.cpp (PluginInstance::NewStream): set the current deployment here.
322 2009-08-26 Jackson Harper <jackson@ximian.com>
324 * plugin.cpp: check for the zip file magic instead of using file
327 2009-08-26 Alan McGovern <amcgovern@novell.com>
329 * cbinding.h: regen r: shana
331 2009-08-26 Jackson Harper <jackson@ximian.com>
333 * plugin.cpp: Use the xaml function for parsing bools so things
334 like enablehtmlaccess=1 are handled properly.
338 2009-08-24 Sebastien Pouliot <sebastien@ximian.com>
340 * plugin-class.cpp: Free NPVariant array leaks
344 2009-08-16 Chris Toshok <toshok@ximian.com>
346 * plugin.cpp (plugin_menu_about): we aren't doing previews
347 anymore, we're doing betas.
351 2009-08-12 Alan McGovern <amcgovern@novell.com>
353 * cbinding.h: regen r: toshok
355 2009-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
357 * plugin.mdp: Connect the Build command in
358 MonoDevelop with 'make install'.
360 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
362 * plugin.mdp: Use Makefile integration.
364 2009-07-23 Sebastien Pouliot <sebastien at ximian.com>
366 * plugin.cpp: Make sure 'source_original' is set even when scripting
367 is used to initialize source. Remove xdomain warnings from mstv.cz
369 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
372 * plugin-class.h.in: Added html_object_retain.
374 * plugin-class.h: Regenerated.
376 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
378 * plugin.mdp: Updated.
380 2009-07-22 Sebastien Pouliot <sebastien at ximian.com>
382 * plugin-class.cpp: Fix DEBUG_WARN_NOTIMPLEMENTED macro to output
383 all related information on the same line. Use NULL_TO_NPVARIANT
384 with MoonId_MethodName (since this is a string).
385 * windowless.cpp: Initialize GdkEventKey correctly (valgrind) and
386 provide a Window pointer so we avoid a SEGSIGV when TextBox calls
387 gtk_im_context_xim_filter_keypress (webide)
389 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
391 * plugin-class.cpp: Incorporate significant advances in debugging
394 2009-07-20 Chris Toshok <toshok@ximian.com>
396 * plugin-class.cpp (MoonlightContentObject::Invoke): pass null for
398 (MoonlightContentObject::Invoke): same.
400 * plugin.h|cpp: add resource base parameters to all the XamlLoader
401 calls, and pass stream->url for that value when we have it.
405 2009-07-20 Chris Toshok <toshok@ximian.com>
407 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): add
408 the fallback findName lookup here, since we removed it from
409 DependencyObject::FindName.
411 2009-07-18 Jackson Harper <jackson@ximian.com>
414 * plugin.h|cpp: Add a flag to import the default xmlns. Basically
415 nothing sets this to true except for the JS CreateFromXaml
418 2009-07-17 Larry Ewing <lewing@novell.com>
420 * plugin.cpp: get agressive about flushing loaded events to the
421 plugin from splash elements. Fixes 285,445.
423 2009-07-16 Larry Ewing <lewing@novell.com>
425 * plugin.cpp, plugin.h: rework the splash logic to handle document
426 fragment references and get closer to emitting the correct events
427 in the correct order.
429 * plugin-class.cpp: use PluginInstance::IsLoaded instead of poking
432 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
434 * cbinding.h: Regenerated.
436 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
438 * plugin.cpp: PluginInstance::UpdateSourceByReference: add a
439 Deployment::SetCurrent.
441 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
443 * plugin-entry.cpp: Push/Pop the current deployment on every
444 transition to the browser. Makes MS DRT #2003 not spew a lot
445 of deployment mismatch warnings.
447 2009-07-15 Larry Ewing <lewing@novell.com>
449 * plugin.cpp: reconnect onload in LoadXAML and LoadXAP so that
450 source changes reset the oneshot call. Fixes DRT#21.
452 2009-07-13 Sebastien Pouliot <sebastien at ximian.com>
454 * plugin.cpp: Check for NULL *and* Empty inside UpdateSource.
455 Gives a bit of progress for DRT#354
457 2009-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
459 * cbinding.h: Regenerated.
461 2009-07-13 Alan McGovern <amcgovern@novell.com>
463 * plugin-class.h.in: Var should be named
464 'OnSourceDownloadComplete' not 'OnSourceDownloadCompleted'
466 2009-07-13 Alan McGovern <amcgovern@novell.com>
468 * cbinding.h: Commit the initial implementation of the
469 TabNavigationWalker. Supports the three tabbing modes and
470 also forward/backward tabbing. Passes drt 323 except for a
471 default focusing issue.
473 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
475 * plugin.cpp: Only call EmitSourceDownloadComplete is we needed
476 to download the splashscreen (versus embedded using #)
478 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
480 * plugin.cpp|h, plugin-class.cpp|h: Rename
481 SourceDownloadCompletedEvent to SourceDownloadCompleteEvent
483 2009-07-09 Sebastien Pouliot <sebastien at ximian.com>
485 * plugin.cpp: Check for redirection each time a new stream
486 is created (i.e. before downloading) using the current URI (not
487 the original one) so we can detect redirection correctly.
489 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
491 * plugin-class.cpp: EventObjectCreateWrapper: return null as the
492 wrapper for a null object.
494 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
496 * plugin-downloader.h: Add response getter.
498 * plugin-downloader.cpp: Regenerated.
500 * cbinding.h: Regenerated.
502 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
504 * plugin-downloader.cpp: When calling Send, reset the finished
505 field, so that we abort it properly upon destruction if the
506 PluginDownloader has been reused.
508 2009-07-01 Chris Toshok <toshok@ximian.com>
510 * plugin-proxy.cpp (load): check the return value of
511 dlopen(libmono.so) before we make use of mono_config_parse_memory.
513 * plugin-entry.cpp: remove the moz-sdk includes, since they get
514 pulled in from moonlight.h
516 * plugin-class.h|cpp (MoonlightContentObject::GetProperty): add
517 Accessibility support.
518 (MoonlightContentObject::SetProperty): same.
519 (MoonlightContentObject::~MoonlightContentObject): unref the
520 accessibility object.
522 * moonlight.h: add the moz-sdk/ prefix for the np* headers here.
524 * Makefile.am (libmoonplugin_la_SOURCES): add
525 plugin-accessibility.
526 (INCLUDES): remove the moz-sdk include, and add it the #includes
527 so things work when files are included from the src/ directory.
529 * plugin-accessibility.h|cpp: new DependencyObject subclass to
530 represent the plugin's content.accessibility object.
532 * cbinding.h, plugin-class.h: regen.
534 2009-06-30 Jackson Harper <jackson@ximian.com>
536 * plugin-class.cpp: Update function signature, add the validate
540 2009-06-30 Alan McGovern <amcgovern@novell.com>
542 * plugin-class.cpp: Use SetValueWithError instead of SetValue
543 and propagate the exception back to javascript. Fixes drt
546 2009-06-29 Sebastien Pouliot <sebastien@ximian.com>
548 * plugin.cpp: Initialize enable_html_access to true since the value
549 can be queried before anything is loaded (e.g. scripting). Remove
550 failure message from DRT #21 bitmap.
552 2009-06-26 Chris Toshok <toshok@ximian.com>
554 * plugin-class.h.in|cpp: add support for GridLengths.
556 * plugin-class.h: regen.
558 2009-06-26 Larry Ewing <lewing@novell.com>
560 * plugin-class.h.in: add MoonlightCornerRadius and MoonIds.
562 * plugin-class.cpp: implement cornerradius foo.
564 2009-06-25 Chris Toshok <toshok@ximian.com>
566 * plugin-class.cpp (thickness_mapping): fix the mapping of "top"
567 to MoonId_Top, not MoonId_Right. Fixes drt test 421.
569 2009-06-25 Chris Toshok <toshok@ximian.com>
571 * plugin.cpp (PluginXamlLoader::SetProperty): track change to
572 xaml_is_valid_event_name.
574 2009-06-25 Chris Toshok <toshok@ximian.com>
576 * plugin-class.cpp (_set_dependency_property_value): add a
577 MoonError parameter so we can communicate it back to our callers.
578 (MoonlightTextBoxObject::Invoke): use textbox->SelectWithError and
579 throw the exception if it failed.
580 (MoonlightPasswordBoxObject::Invoke): same.
582 2009-06-25 Chris Toshok <toshok@ximian.com>
584 * plugin-class.cpp (MoonlightCollectionObject::Invoke): add
585 "remove(string)" support for resource dictionaries.
586 2009-06-25 Chris Toshok <toshok@ximian.com>
588 * plugin-class.cpp (value_to_variant): add support for
589 FontWeight/Style/Stretch here. Fixes DRT test 94.
591 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
593 * cbinding.h: Regenerated.
595 2009-06-25 Sebastien Pouliot <sebastien@ximian.com>
597 * plugin-class.cpp: Return "" not NULL for empty files (DRT #180)
599 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
601 * plugin-class.cpp: proxy_listener_to_javascript: we need to restore
602 the current deployment after returning from javascript, if the
603 javascript did anything which caused firefox to process events,
604 we may have entered any other deployment while processing those
607 2009-06-24 Chris Toshok <toshok@ximian.com>
611 2009-06-22 Chris Toshok <toshok@ximian.com>
613 * plugin-class.h.in|cpp: MediaElements and Images need to subclass
614 from UIElement here instead of DependencyObject, or else we can't
615 call UIElement methods on them. gets fixture #282 further than
616 the stupid .js error.
618 * plugin-class.h: regen
620 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
622 * plugin-class.cpp: Add support for MultiScaleImage methods.
624 * plugin-class.g.cpp.in: Added required header.
626 * plugin-class.g.cpp:
628 * cbinding.h: Regenerated.
630 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
632 * plugin.mdp: Updated with new files.
634 2009-06-18 Jeffrey Stedfast <fejj@novell.com>
636 * plugin-class.cpp (value_to_variant): Handle Type::CHAR by
637 converting to an NPVariant string.
639 2009-06-18 Sebastien Pouliot <sebastien@ximian.com>
641 * cbinding.cpp|h: regen
642 * plugin.cpp|h: Keep the original location and source (before any
643 redirection can happen) and use them in the check for cross-domain
644 applications. Fixing DRT 955-958
646 2009-06-17 Chris Toshok <toshok@ximian.com>
648 * plugin-class.h.in, plugin-class.cpp: add textbox and passwordbox
649 types (select and selectAll methods.)
651 * plugin-class.g.*, cbinding.h: regen.
653 2009-06-17 Alan McGovern <amcgovern@novell.com>
655 * plugin-class.g.cpp.in: We need to include textbox.h
657 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
659 * plugin.cpp: SetXapLocation must be set before
660 ManagedInitializeDeployment is called, since
661 ManagedInitializeDeployment ends up executing managed code, which
662 may need SetXapLocation to be set (for downloading files).
663 MS DRT #483 is an example.
665 2009-06-16 Sebastien Pouliot <sebastien@ximian.com>
667 * plugin.cpp: Set default cross_domain_app to false since using
668 embedded XAML is valid (and not cross domain) and won't trigger
669 a load (to update the value). Should fix XAML #401 test
671 2009-06-15 Sebastien Pouliot <sebastien@ximian.com>
673 * plugin.cpp|h: Move cross-domain application check to it's own
674 method. Call it once we download the source (it could be later
675 than anticipated). This fix sites using custom scripts like
676 ASP.NET <asp:Silverlight>
677 * plugin-class.cpp: Don't emit javascript events for cross
680 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
682 * plugin.cpp: same_site_of_origin: add nre protection. Makes
683 moonlight test #408 not crash.
685 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
687 * plugin-class.cpp: Update after MediaElementState -> MediaState
690 2009-06-13 Sebastien Pouliot <sebastien@ximian.com>
692 * plugin.cpp|h: Move cross-domain application check earlier to
693 not register the events (e.g. onLoad, onError...) for cross-domain
694 applications. Complete fix for DRT 361, 362, 364, 365 and 370
696 2009-06-12 Sebastien Pouliot <sebastien@ximian.com>
698 * plugin.cpp|h: Fix 'enableHtmlAccess' to have a different
699 default value when used for the same 'site of origin' (true)
700 wrt to be used for 'cross-domain' applications (false).
701 * plugin-class.cpp: Add restrictions on cross-domain applications
702 based on the manifest ExternalCallersFromCrossDomain value.
704 2009-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
706 * plugin.cpp: Disable the spinner for now, it's breaking a lot of
709 2009-06-10 Larry Ewing <lewing@novell.com>
711 * plugin.cpp (CreateWindow): add a simple spinner if nothing is
714 * plugin-spinner.h: new simple spinner.
716 2009-06-08 Chris Toshok <toshok@ximian.com>
718 * plugin.cpp (class PluginClosure): new class to wrap
720 (PluginInstance::network_error_tickcall): use PluginClosure.
721 (PluginInstance::splashscreen_error_tickcall): use PluginClosure,
722 also don't UpdateSource if the surface is zombified (since the
723 plugin is likely already gone.)
724 (PluginInstance::UrlNotify): use PluginClosure's and add the tick
725 calls directly via the timemanager so we can specify both method
728 * plugin.h (class PluginInstance): make network_error_tickcall and
729 splashscreen_error_tickcall static methods on PluginInstance.
731 2009-06-08 Jackson Harper <jackson@ximian.com>
733 * plugin.cpp|h: Update signature for SetProperty
735 2009-06-05 Chris Toshok <toshok@ximian.com>
737 * plugin.cpp (PluginInstance::UrlNotify): only emit the 2104 error
738 if the network failure was on the XAP itself. move the
739 Deployment::SetCurrent call a little earlier, and make the splash
740 screen download error async as well.
742 2009-06-04 Chris Toshok <toshok@ximian.com>
744 * plugin.cpp (PluginInstance::MonoGetPropertyFromName): new
745 method, look up the property on a type and print a nice warning if
747 (surface_network_error_tickcall): we can't emit the network error
748 from inside UrlNotify, since the handler can remove the plugin at
749 that point, and firefox takes a shit all over itself in that case.
750 (PluginInstance::UrlNotify): if there was a network error
751 downloading the xap, add the tick call to emit the proper error.
752 (PluginInstance::InitializePluginAppDomain): look up the
753 MoonException type and some properties to use when accessing it.
754 (PluginInstance::ManagedExceptionToErrorEventArgs): convert from a
755 managed exception to an ErrorEventArgs which we'll then emit
756 through the surface's ErrorEvent.
757 (PluginInstance::ManagedCreateXamlLoader): check for an exception,
758 and if there was one, emit the error on the surface.
759 (PluginInstance::ManagedInitializeDeployment): same.
760 (PluginInstance::ManagedDestroyApplication): same.
762 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
763 set the current deployment earlier. definitely needs to be set
764 before we call the callback :)
766 2009-06-02 Geoff Norton <gnorton@novell.com>
768 * plugin.cpp: Ensure we dont start downloading the source until we have
769 the splash. If the splash 404's we need to emit a 2108.
771 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
773 * cbinding.h: Regenerated
775 2009-06-01 Chris Toshok <toshok@ximian.com>
777 * plugin-class.cpp (MoonlightContentObject::Invoke): for
778 createFromXaml make sure we call LoadVM on the XamlLoader so we
779 can access managed types (like StackPanel).
781 2009-06-01 Chris Toshok <toshok@ximian.com>
783 * plugin-class.cpp|h: add MoonlightThickness* and add
784 Type::THICKNESS to value_to_variant. this fixes a few instances
785 in the tests where they're accessing margins from javascript.
787 2009-05-28 Jeffrey Stedfast <fejj@novell.com>
789 * plugin-utils.cpp: New source file which has utility functions
790 such as check_arg_list().
792 * plugin-class.h.in: Removed static impl of check_arg_list() -
793 this was causing compile warnings about unused functions and also
794 bloating up the binary ;-)
796 2009-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
798 * plugin.cpp: Sprinkle SetCurrentDeployment.
800 2009-05-27 Geoff Norton <gnorton@novell.com>
802 * plugin.cpp|h: Ensure we only emit the source progress/completed events
803 on the source, and not on the source splash ourself. Also, we need to make
804 sure we have a toplevel before emitting otherwise sender is null going to the
807 2009-05-27 Geoff Norton <gnorton@novell.com>
810 * plugin-class.cpp|h|h.in: Support the splash screen progress/completed events
813 2009-05-27 Geoff Norton <gnorton@novell.com>
815 * plugin.cpp: Avoid a double-delete of the splash xaml_loader
817 2009-05-27 Geoff Norton <gnorton@novell.com>
819 * plugin.cpp|h: Support splash screen.
821 2009-05-27 Geoff Norton <gnorton@novell.com>
823 * plugin.cpp|h: Ensure we spin up a default application for the xaml
824 case as well since <Canvas><StackPanel /></Canvas> works.
826 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
828 * plugin-downloader.h:
829 * plugin-downloader.cpp: Add support for retrieving response headers
832 * cbinding.h: Regenerated.
834 * browser-bridge.h: Updated according to downloader API changes.
836 * plugin.mdp: Updated.
838 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
840 * plugin-downloader.cpp: Don't hard code the verb.
842 2009-05-25 Chris Toshok <toshok@ximian.com>
844 * plugin-class.cpp (value_to_variant): robustify this and support
845 NULL Value*'s. Fixes crash in DRT #485.
847 2009-05-23 Chris Toshok <toshok@ximian.com>
849 * plugin-class.cpp, plugin-class.h: add a Control plugin class,
850 which exposes "focus". Should get DRT #250 a little further (and
851 keep it from timing out.)
853 2009-05-21 Rusty Howell <rhowell@novell.com>
855 * Makefile.am: Changed install dir to DIST_SUBDIRS for make dist
857 2009-05-21 Andreia Gaita <avidigal@novell.com>
859 * plugin-class.cpp: disable throwing js exceptions on html_object_invoke
860 and html_object_get_property, the exceptions get stuck on firefox and
861 any subsequent eval call will fail
863 2009-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
865 * npstream-request.cpp: Fix typo.
867 2009-05-20 Rusty Howell <rhowell@novell.com>
869 * Makefile.am: Added install dir to SUBDIRS for 'make dist'
871 2009-05-20 Larry Ewing <lewing@novell.com>
873 * plugin.cpp (TryLoad): update the error string for 2021 to match
876 2009-05-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
878 * cbinding.cpp|h: Regenerated.
880 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
882 * cbinding.cpp|h: Regenerated.
884 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
886 * cbinding.cpp|h: Regenerated.
888 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
890 * cbinding.cpp|h: Regenerated.
892 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
894 * plugin.h: Add a GetBrowserHost which returns a void* to avoid
895 putting NPObject/mozilla headers in the c bindings.
897 * cbinding.cpp|cbinding.h: Regenerated.
899 2009-05-17 Andreia Gaita <avidigal@novell.com>
901 * plugin-class.cpp: If a managed method called from js returns
902 void, create a valid NPVariant_Void return object
904 2009-05-15 Chris Toshok <toshok@ximian.com>
906 * plugin-class.cpp (MoonlightCollectionObject::Invoke): for
907 getItem on a resource dictionary, a string parameter (the key)
910 2009-05-13 Jackson Harper <jackson@ximian.com>
912 * plugin.cpp|h: Update params for SetProperty.
914 2009-05-12 Larry Ewing <lewing@novell.com>
916 * plugin-debug.cpp (reflect_value): add output for point.
918 2009-05-11 Larry Ewing <lewing@novell.com>
920 * plugin-class.cpp: remove UpdateLayout now that it is
923 2009-05-09 Andreia Gaita <avidigal@novell.com>
925 * plugin-class.h.in, plugin-class.g.cpp.in: Added, used to
926 generate Moonlight* classes and MoonId types, for automatic
927 js binding with the GenerateJSBinding annotation.
928 plugin-class.cpp has the bulk of the code, plugin-class.g.cpp
929 has the autogenerated implementations.
931 * plugin-class.[h|g.cpp]: regen.
933 * plugin-class.cpp: moved some definitions to the header file,
934 so .g.cpp can use them too. Added uielement class support, which
935 is autogenerated on plugin-class.g.cpp. Removed CaptureMouse and
936 ReleaseMouseCapture, it's handled on uielement on .g.cpp now.
938 * Makefile.am: Added plugin-class.g.cpp
940 2009-05-03 Chris Toshok <toshok@ximian.com>
942 * plugin-class.h|.cpp (MoonlightDependencyObjectObject::Invoke):
943 add UpdateLayout() as a JS callable function. fixable a JS error
946 2009-05-02 Chris Toshok <toshok@ximian.com>
948 * plugin-proxy.cpp (load): add RTLD_GLOBAL to real_plugin,
949 otherwise we can't call mono_config_parse_memory from the plugin
950 loader (since it doesn't link to libmono directly).
952 2009-05-02 Rusty Howell <rhowell@novell.com>
954 * plugin-proxy.cpp: Detect which libmoonloader we are (xpi or sys)
955 and dlopen accordingly
956 * moonlight.h: Remove PLUGIN_INSTALL
957 * plugin-proxy-xpi.cpp: removed from svn
958 * Makefile.am: Added check in user-plugin target.
959 Changed source of libmoonloader back to plugin-proxy.cpp
961 2009-04-22 Chris Toshok <toshok@ximian.com>
963 * moonlight.h: moon the #include <glib.h> here from windowless so
964 we can guarantee glibconfig.h has been included before we check
967 * windowless.h: drop the include glib.h from here.
969 2009-04-22 Rusty Howell <rhowell@novell.com>
971 * make builds separate binaries for xpi
972 libmoonloaderxpi, libmoonpluginxpi
974 2009-04-20 Chris Toshok <toshok@ximian.com>
976 * plugin.cpp (plugin_menu_about): use a preview link for preview
979 2009-04-18 Chris Toshok <toshok@ximian.com>
981 * plugin-class.cpp (value_to_variant): add support for FontFamily.
983 2009-04-18 Chris Toshok <toshok@ximian.com>
985 * plugin-class.cpp (MoonlightStoryboardObject::Invoke): track
988 2009-04-17 Chris Toshok <toshok@ximian.com>
990 * plugin.h|.cpp: remove loaded_xap field, and use
991 GetDeployment()->IsLoadedFromXap(). Also, switch from
992 Surface::SetXapLocation to Deployment::SetXapLocation.
994 2009-04-16 Jeffrey Stedfast <fejj@novell.com>
996 * plugin-debug.cpp (reflect_value): Hush formatter warnings.
998 2009-04-16 Geoff Norton <gnorton@novell.com>
1000 * plugin-debug.cpp: Avoid having a null deployment in remove_destroyed.
1002 2009-04-16 Geoff Norton <gnorton@novell.com>
1004 * plugin-debug.cpp: Avoid having a null deployment in selection_changed.
1006 2009-04-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1010 * plugin-class.cpp: Implement some missing js properties.
1011 Almost completely fixes MS DRT #21.
1013 2009-04-15 Stephane Delcroix <sdelcroix@novell.com>
1015 * plugin.cpp (PluginInstance::LoadXAP): set the surface xap_location
1017 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1021 * plugin-class.h: Added @GeneratePInvoke to all methods used
1022 in managed code. For C++ methods also generate the
1023 corresponding C method.
1026 * cbinding.cpp: Regenerated.
1028 2009-04-10 Jackson Harper <jackson@ximian.com>
1030 * plugin-class.cpp: Instead of unreffing just delete the value.
1032 2009-04-09 Jackson Harper <jackson@ximian.com>
1034 * plugin.cpp: Updated method names.
1035 * plugin-class.cpp: Update now that we are getting Value*s from
1038 2009-04-08 Geoff Norton <gnorton@novell.com>
1040 * plugin-debug.cpp: Ensure we set the Deployment here too to avoid
1041 crashes in the XAML window.
1043 2009-04-08 Jeffrey Stedfast <fejj@novell.com>
1045 * plugin*.cpp|h: Use glib integer types rather than stdint.h types
1046 especially see as how we aren't including stdint.h anywhere.
1048 * plugin-class.cpp: Updated for slight Downloader API changes.
1050 2009-04-07 Larry Ewing <lewing@novell.com>
1052 * plugin-debug.cpp (reflect_value): Fix the markup for GRIDLENGTH
1055 2009-04-06 Geoff Norton <gnorton@novell.com>
1057 * plugin-debug.cpp: Ensure we set our deployment before poking in
1060 2009-04-03 Sebastien Pouliot <sebastien@ximian.com>
1062 * plugin.cpp|h: Parse enablehtmlaccess and allowhtmlpopupwindow
1063 from the plugin properties. Add missing properties and C bindings.
1065 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
1067 * plugin-class.cpp: use Uri::ToString instead of originalstring.
1068 BitmapImage::GetUriSource never returns a NULL
1070 2009-04-01 Andreia Gaita <avidigal@novell.com>
1072 * plugin-class.[cpp|h]: move some declarations to the header
1073 so that the bridge code can use it too.
1075 2009-03-31 Jb Evain <jbevain@novell.com>
1077 * plugin-class.h: add key_code and char_code parameters
1078 to callback_dom_event.
1080 2009-03-30 Chris Toshok <toshok@ximian.com>
1082 * plugin.cpp: #include timemanager.h
1084 2009-03-29 Geoff Norton <gnorton@novell.com>
1086 * plugin-class.cpp: Ensure that the ImageSource we get is a BitmapImage
1087 before treating it as such.
1089 2009-03-29 Geoff Norton <gnorton@novell.com>
1091 * plugin-class.cpp: Image.Source is always a BitmapImage
1093 2009-03-28 Sebastien Pouliot <sebastien@ximian.com>
1095 * plugin.cpp|h: Export a new function (get_plugin_dir) that returns
1096 the location of the plugin.
1097 * plugin-glue.cpp: Initialize the runtime using the plugin location.
1099 2009-03-27 Andreia Gaita <avidigal@novell.com>
1101 * plugin.cpp: Don't release return from Eval if they're npobj,
1102 client code might reference it later
1104 2009-03-25 Chris Toshok <toshok@ximian.com>
1106 * plugin.cpp (PluginInstance::StreamAsFile): use uri accessors.
1108 * plugin-class.cpp (MoonlightImageBrushObject::GetProperty): same.
1109 (MoonlightImageObject::GetProperty): same.
1111 * plugin-debug.cpp (get_common_prefix_len): same.
1112 (save_callback): same.
1114 2009-03-25 Jeffrey Stedfast <fejj@novell.com>
1116 * plugin-class.cpp (MoonlightObjectType::LookupName): No longer
1117 takes an include_sl2 argument.
1119 * plugin.cpp (PluginInstance::StreamAsFile): We no longer have
1120 IsSilverlight2() so check the filename extension (fixed to not be
1121 a gross hack). Also got rid of #if PLUGIN_2_0 confusion, we are no
1122 longer supporting a 1.0-only build.
1123 (PluginInstance::CreateWindow): Surface.ctor() no longer takes a
1124 silverlight2 argument.
1126 * plugin-debug.cpp (reflect_value): Don't crash when the
1127 DependencyObject is null.
1129 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1131 * plugin-class.cpp: Move IsVersionSupported implementation to
1134 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1139 * cbinding.cpp: Include generated files in the build.
1141 2009-03-23 Chris Toshok <toshok@ximian.com>
1143 * plugin-class.cpp (value_to_variant): getting a Uri in the plugin
1146 2009-03-21 Andreia Gaita <avidigal@novell.com>
1148 * plugin-class.[h|cpp]: Add html_object_invoke_self
1149 (same as _invoke but with no name arg), that uses
1150 NPN_InvokeDefault instead.
1152 2009-03-21 Chris Toshok <toshok@ximian.com>
1154 * plugin-class.cpp (MoonlightImageObject::GetProperty):
1155 source->GetUriSource() returns a Uri, not a string.
1156 (MoonlightImageBrushObject::GetProperty): same.
1158 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1160 * plugin-downloader.h:
1161 * plugin-downloader.cpp: PluginDownloader: follow refcounting
1162 laws and ref/unref the response.This fixes a crash where
1163 firefox would unref FFxDownloaderResponse causing its
1164 destruction, and then PluginDownloader would attempt to use
1165 (abort) that response later on.
1167 2009-03-10 Chris Toshok <toshok@ximian.com>
1169 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): for
1170 DumpNameScope, s/LogicalParent/Parent.
1171 (MoonlightDependencyObjectObject::Invoke): for GetParent, make
1172 sure the dob is a frameworkelement subclass, and call
1173 GetLogicalParent on it.
1175 2009-03-10 Jackson Harper <jackson@ximian.com>
1177 * plugin-debug.cpp: COnsistentify method name.
1179 2009-03-03 Jackson Harper <jackson@ximian.com>
1181 * plugin.cpp|h: Update signature of SetProperty.
1183 2009-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1185 * plugin.cpp: Add informational printf.
1187 2009-02-23 Chris Toshok <toshok@ximian.com>
1189 * plugin-class.cpp (MoonlightContentObject::Invoke): add better
1190 error messages on createFromXaml.
1192 2009-02-23 Andreia Gaita <avidigal@novell.com>
1194 * plugin-class.[cpp|h]: Add html_object_has_property so managed code
1195 can check for properties before trying to get them. Free scriptable
1198 2009-02-22 Larry Ewing <lewing@novell.com>
1201 * plugin.cpp, plugin.h: add extra padding to our NPBool values so
1202 that buggy browsers don't smash the stack.
1204 2009-02-19 Andreia Gaita <avidigal@novell.com>
1206 * plugin-class.[cpp|h]: On [Get|Set]Property for scriptable objects,
1207 use the property name instead of the handle to call back to the
1208 property. This way we can reuse the virtual functions on
1209 ScriptObject, and it's one less GCHandle walking around.
1210 Fix exception define to have a block.
1212 2009-02-19 Andreia Gaita <avidigal@novell.com>
1214 * plugin-class.cpp: Fix casing lookup
1216 2009-02-19 Andreia Gaita <avidigal@novell.com>
1218 * plugin.cpp: Implement returning values from Evaluate
1219 * plugin-class.[cpp|h]: Expose variant_to_value so Evaluate can
1220 use it to convert values from js
1222 2009-02-17 Jeffrey Stedfast <fejj@novell.com>
1224 * plugin-debug.cpp: Pass true as the only_changed argument to
1225 DO::GetProperties().
1227 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1229 * plugin-class.cpp: Remove case for MediaErrorEventArgs.
1231 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1233 * plugin-class.cpp: EventListenerProxy: set our object type
1236 2009-02-16 Andreia Gaita <avidigal@novell.com>
1238 * plugin-class.cpp: Check return value on GetProperty and throw a js
1239 exception if it wasn't found. Don't lowercase names, scriptable objects
1242 2009-02-16 Geoff Norton <gnorton@novell.com>
1244 * plugin-class.cpp|h: Image(Brush).(Image)Source is the UriSource of the
1245 underlying ImageSource in the javascript API.
1247 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
1249 * plugin-debug.cpp (reflect_dependency_object_in_tree): Updated to
1250 use DO::GetProperties() instead so that we could get attached
1253 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
1255 * plugin-debug.cpp (reflect_dependency_object_in_tree): Fixed up
1256 to use Type::GetProperties().
1258 2009-02-11 Andreia Gaita <avidigal@novell.com>
1260 * plugin-class.cpp: lowercase all method, property and event name
1261 references, they're all added in lowercase
1263 2009-02-11 Andreia Gaita <avidigal@novell.com>
1265 * plugin-class.cpp (html_object_invoke): Check method invoke return
1266 value and throw an exception if it fails. Add an alternate "static"
1267 version of the js exception throwing macro.
1269 2009-02-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1271 * plugin-class.cpp: Change our static DependencyProperty
1272 backing fields to store an integer id instead of an
1273 instance to a DependencyProperty. This way we can have true
1274 per-deployment dependency properties.
1276 2009-02-10 Jackson Harper <jackson@ximian.com>
1278 * plugin.cpp|h: Added a param to the SetProperty callback, plugin
1279 doesn't need to use it for anything.
1281 2009-02-05 Geoff Norton <gnorton@novell.com>
1283 * plugin.cpp: We cannot safely null the deployment here as NPN_GetURLNotify
1284 can sync invoke NPN_URLNotify in the same tick, and we might need the deployment
1287 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
1289 * plugin-class.cpp (MoonlightDependencyObjectObject::GetProperty):
1290 Updated for ReadLocalValue method rename.
1292 * plugin-downloader.cpp (plugin_downloader_create_webrequest):
1293 Don't crash if we don't have a browser bridge.
1295 2009-02-04 Jackson Harper <jackson@ximian.com>
1297 * plugin.cpp|h: Updated xaml signatures.
1299 2009-02-04 Andreia Gaita <avidigal@novell.com>
1301 * plugin-class.[cpp|h]: Change Invoke call to take a name parameter,
1302 so that methods can be called by name as well.
1304 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1306 * plugin.cpp: PluginInstance::UrlNotify: We need to set the
1307 current deployment here.
1309 * plugin-glue.cpp: NPP_Destroy: We need to set the current
1312 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1314 * plugin-class.cpp: Use Type::GetName () instead of accessing
1317 2009-02-03 Fernando Herrera <fherrera@novell.com>
1319 * plugin.cpp: moonlight_flags is 64bits now.
1321 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1323 * plugin-class.cpp: proxy_listener_to_javascript: we need to set the
1324 current deployment after emitting an event to javascript.
1326 2009-01-29 Geoff Norton <gnorton@novell.com>
1329 * plugin-class.cpp: Ensure that we set the correct context when dtoring our
1330 plugin and its js-object instances.
1332 2009-01-29 Geoff Norton <gnorton@novell.com>
1334 * plugin.cpp: When there are 2 plugins on a page, StreamAsFile can be called
1335 after the deployment has been changed away from this instance. Ensure we
1336 set our deployment properly in this case.
1338 2009-01-29 Geoff Norton <gnorton@novell.com>
1340 * windowless.cpp: Store our creation deployment so we can emit events
1341 in the right deployment.
1343 2009-01-29 Geoff Norton <gnorton@novell.com>
1345 * plugin.cpp: Register the surface with the Deployment. Start cleaning
1346 up all the places we pass this around too. (More to come)
1348 2009-01-29 Geoff Norton <gnorton@novell.com>
1350 * plugin.cpp: Ensure that we create our Surface and SystemTimeSource
1351 in the correct deployment.
1353 2009-01-29 Larry Ewing <lewing@novell.com>
1355 * plugin-debug.cpp (reflect_dependency_object_in_tree): restrict
1356 the VisualChild expansion away from Panel and border to keep from
1357 slowing down the tree that Badly.
1359 2009-01-29 Sebastien Pouliot <sebastien@ximian.com>
1361 * plugin-class.cpp: Only call NPN_ReleaseObject on callback
1362 if the object is *not* a string.
1365 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1367 * plugin.cpp: ~PluginInstance: Call Dispose on the deployment and the
1368 surface. PluginXamlLoader::TryLoad: ref any error arguments we emit
1371 2009-01-28 Larry Ewing <lewing@novell.com>
1373 * plugin-debug.cpp: show VisualChild on all FEs so that we can
1374 navigate into ContentPresenter.
1376 2009-01-28 Larry Ewing <lewing@novell.com>
1378 * plugin-debug.cpp (reflect_value): add more value types.
1380 2009-01-28 Sebastien Pouliot <sebastien@ximian.com>
1382 * plugin-class.cpp: MediaElementState is used as a string inside
1383 Javascript applications but it's an enum (in the managed world).
1385 2009-01-28 Chris Toshok <toshok@ximian.com>
1387 * plugin-debug.cpp (selection_changed): fix crash.
1388 (reflect_dependency_object_in_tree): add Control handling - put a
1389 "Visual Child" under it that gives the subtree.
1391 * plugin-class.cpp (value_to_variant): not sure what to do here
1392 for UINT32's, since NPVariants only have INT32...
1394 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1396 * plugin.cpp: Call Deployment::Initialize in runtime_init.
1398 2009-01-27 Geoff Norton <gnorton@novell.com>
1400 * plugin.cpp: Use the static overload here.
1402 2009-01-26 Geoff Norton <gnorton@novell.com>
1404 * plugin.cpp: Ensure we're in the right deployment/domain before we
1405 start poking around in managed land.
1407 2009-01-26 Geoff Norton <gnorton@novell.com>
1409 * plugin.cpp|h: Clean this stuff up now that our book-keeper is
1410 Deployment* not internally on MonoDomain*.
1411 * plugin-class.cpp: Ensure that we set the tls slot in Deployment
1412 to the Deployment* this plugin owns before transitioning into libmoon
1414 2009-01-26 Jackson Harper <jackson@ximian.com>
1416 * plugin.cpp|h: SourceLocation for Sl2 xaps is the .xap url.
1418 2009-01-26 Geoff Norton <gnorton@novell.com>
1420 * plugin.cpp|h: We now go thru Deployment to warm up the application.
1422 2009-01-25 Geoff Norton <gnorton@novell.com>
1424 * plugin.cpp: We initialize a Deployment for every plugin regardless
1425 of wether its 1.0 or 2.0 context now.
1427 2009-01-25 Chris Toshok <toshok@ximian.com>
1429 * plugin.cpp (PluginInstance::CreatePluginAppDomain): create/set
1430 the deployment for this plugin before we return, so it's set
1431 before Application.CreateFromXap is called.
1433 2009-01-23 Geoff Norton <gnorton@novell.com>
1435 * plugin.cpp: Force keep-delegates on in SVN (only if a custom
1436 MONO_DEBUG doesn't already exist in the environment)
1438 2009-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1440 * plugin-debug.cpp: Integrate munxap into our debugging experience.
1442 2009-01-21 Jb Evain <jbevain@novell.com>
1444 * plugin.cpp|h: remove PluginInstance::GetBrowserInformation
1445 and ::EvaluateToVariant as well as
1446 plugin_instance_get_browser_information which is now implemented
1447 in the managed code.
1449 2009-01-21 Andreia Gaita <avidigal@novell.com>
1451 * plugin-class.[h|cpp]: Add support for registering objects as a
1452 tree. fix casing on lookups.
1454 2009-01-21 Sebastien Pouliot <sebastien@ximian.com>
1456 * plugin-class.cpp: Process the difference between SL1/2 default
1457 values on a case-by-case basis. Right now this (re-fix) UIElement::
1458 RenderTransformProperty (wrt null) and FrameworkElement::[Height|
1459 Width]Property (wrt NaN).
1461 2009-01-20 Geoff Norton <gnorton@novell.com>
1463 * plugin-class.cpp: Ensure that we convert doubles in the ASCII
1464 locale, as we attempt to parse in this locale.
1468 2009-01-20 Sebastien Pouliot <sebastien@ximian.com>
1470 * plugin-class.cpp: Call GetLocalValue on DO so we don't provide the
1471 default values used in SL2 to SL1 applications. This fix Fox
1472 http://www.silverlight.net/fox/ while allowing to use the (non-null)
1473 default value for UIElement::RenderTransformProperty
1475 2009-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1477 * plugin.mdp: Updated.
1479 2009-01-18 Geoff Norton <gnorton@novell.com>
1481 * plugin-downloader.cpp: Avoid crashing when the bridge isn't available
1483 2009-01-18 Larry Ewing <lewing@novell.com>
1485 * plugin-debug.cpp (reflect_foreach_current_value): don't crash if
1486 we can't lookup the owning type.
1488 2009-01-16 Jb Evain <jbevain@novell.com>
1490 * plugin-class.cpp: move STRDUP_FROM_VARIANT and
1491 STRLEN_FROM_VARIANT to plugin.h
1492 * plugin.h: also define PluginInstance::EvaluateToVariant
1493 * plugin.cpp: implement PluginInstance::GetBrowserInformation
1494 and PluginInstance::EvaluateToVariant.
1496 2009-01-16 Jb Evain <jbevain@novell.com>
1498 * plugin.cpp|h: remove PluginInstance::LoadUrl.
1500 2009-01-15 Jackson Harper <jackson@ximian.com>
1502 * plugin.cpp|h: Updated signature for the xaml callbacks.
1504 2009-01-13 Geoff Norton <gnorton@novell.com>
1506 * plugin.cpp: Fix our MonoDomain cleanup (hopefully) once and for all.
1508 2009-01-13 Geoff Norton <gnorton@novell.com>
1510 * plugin.cpp: Don't free domain's until we fix the problems on the
1511 mono side associated with that.
1513 2009-01-13 Geoff Norton <gnorton@novell.com>
1515 * plugin.cpp: Ensure we finalize the domain before freeing it.
1517 2009-01-13 Jackson Harper <jackson@ximian.com>
1519 * plugin.cpp|h: Updated xaml callback sig.
1521 2009-01-13 Jb Evain <jbevain@novell.com>
1523 * plugin.cpp: specify System.Windows's fullname when loading it,
1524 to avoid loading a different version, such as the desktop one.
1526 2009-01-13 Geoff Norton <gnorton@novell.com>
1528 * plugin.cpp: Update to build appdomains properly isolated for each
1529 PluginInstance. Also change the location resolution of System.Windows
1532 2009-01-13 Geoff Noton <gnorton@novell.com>
1534 * plugin.cpp: Find System.Windows.dll a slightly different way
1535 so that we can search in MONO_PATH for it and not just the installed
1536 prefix. Fixes test runs on the buildbots.
1538 2009-01-12 Jb Evain <jbevain@novell.com>
1540 * plugin.h, plugin.cpp: remove the need for a moonlight.exe
1541 launcher by calling directly methods in System.Windows. We're
1542 getting the System.Windows relative to the moonlight mscorlib.dll.
1543 * Makefile.am: remove references to moonlight.cs and moonlight.exe.
1544 * moonlight.cs: delete.
1546 2009-01-12 Geoff Norton <gnorton@novell.com>
1548 * plugin.cpp: Update to reflect changes in the mono embedding API.
1550 2009-01-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1552 * plugin.cpp: Unconfuse a bit: initParams is a char*, so use a boolean
1553 value to initialize it.
1555 2009-01-10 Jeffrey Stedfast <fejj@novell.com>
1557 * plugin.cpp (moonlight_authors): Updated.
1559 2009-01-08 Jeffrey Stedfast <fejj@novell.com>
1561 * plugin-class.cpp (MoonlightKeyEventArgsObject::GetProperty):
1562 Updated for method name changes.
1564 2008-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1566 * plugin.mdp: Updated.
1568 2008-12-18 Chris Toshok <toshok@ximian.com>
1570 * plugin.h, plugin.cpp: rework the app domain stuff slightly. we
1571 now only call mono_jit_init_version once (and don't attempt to
1572 unload that room AppDomain), and then call mono_domain_create from
1573 each plugin instance (and we *do* free that AppDomain).
1575 2008-12-17 Chris Toshok <toshok@ximian.com>
1577 * plugin.cpp (PluginInstance::MonoInit): turns out this wasn't the
1578 domain name, but the version. it needs to be "moonlight".
1580 * moonlight.cs: remove reference to Helper, as this was only used
1581 to print out the Mono.Moonlight.dll fully qualified name.
1583 * Makefile.am: remove references to Mono.Moonlight.dll.
1585 2008-12-17 Chris Toshok <toshok@ximian.com>
1587 * plugin.cpp (PluginInstance::MonoInit): supply a function pointer
1588 that actually exists to dladdr when PLUGIN_INSTALL is defined.
1589 Also, use a similar app domain name ("moonlight-%p" where %p is
1590 the PluginInstance*).
1592 2008-12-17 Geoff Norton <gnorton@novell.com>
1594 * plugin.cpp: gtk_plug_new takes a GdkNativeWindow which has
1595 differing precision on amd64 and i586.
1597 2008-12-16 Chris Toshok <toshok@ximian.com>
1599 * plugin.h, plugin.cpp: move all the stuff from mono.cpp (and
1600 moon-mono.h) here. Remove all global variables and make them
1601 instance variables on PluginInstance (of particular importance is
1602 the AppDomain). This means every PluginInstance gets their own
1603 app domain, their own boot assembly, etc, and we can drop all the
1604 AppDomain stuff from moonlight.cs.
1606 * mono.cpp, moon-mono.h: nuke.
1608 * plugin-glue.cpp: remove include of moon-mono.h
1610 * moonlight.cs: remove all the AppDomain specific stuff here - the
1611 unload handler is gone (replaced by a mono_domain_free call in
1612 plugin.cpp), the Helper calls to create instances and unwrap them
1613 has been replaced with type lookups + Activator.CreateInstance.
1615 2008-12-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1617 * plugin.cpp: SetSource: in case we already have a surface, detach
1618 downloaders from it right away, this should fix the random failures
1621 2008-12-03 Larry Ewing <lewing@novell.com>
1623 * plugin.cpp: clean up source setting so that the property is
1624 always set and we don't accidentally schedule more than one idle
1627 2008-12-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1629 * browser-bridge.h, plugin-class.cpp, plugin-class.h: Rework event
1630 attaching/detaching a bit: html_object_attach_event now takes a
1631 context argument, which is passed to the event callback.
1632 ff2/3-dom.cpp: After removing the event listener we delete the
1635 2008-12-02 Chris Toshok <toshok@ximian.com>
1637 * plugin-class.cpp (MoonlightScriptControlObject::Invoke): fix
1638 isVersionSupported - i don't like knocking off 2.0 except when
1639 PLUGIN_SL_2_0 is enabled, but it seems like if people are checking
1640 2.0, they'll assume managed code.
1642 2008-11-26 Jackson Harper <jackson@ximian.com>
1644 * plugin.cpp|h: The parser no longer requires assemblies to be
1645 downloaded, so the mapping stuff is commented out.
1646 - The parser now treats events as properties, so we use
1647 SetProperty instead of HookupEvent.
1649 2008-11-22 Geoff Norton <gnorton@novell.com>
1651 * windowless.cpp: Revert
1652 * windowless.h: Include glib.h and moonlight.h so that GDK_NATIVE_WINDOW_POINTER
1653 is defined and GdkNativeWindow gets its correct width of 8 bytes to prevent
1656 2008-11-21 Alp Toker <alp@nuanti.com>
1658 * plugin-class.cpp: Fix 'DownloadProgressCanged' typo in DOM event
1659 names leading to dropped events.
1661 2008-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1663 * plugin-class.cpp: Implement variant<->value conversion for NPObjects.
1664 * plugin.h, plugin.cpp: Added plugin_instance_get_id and
1665 plugin_instance_get_host.
1667 2008-11-10 Jeffrey Stedfast <fejj@novell.com>
1671 * plugin-debug.cpp (plugin_debug): Connect to surface
1672 DestroyedEvent to close the debug window so that it won't crash
1673 when trying to use it once the site has been navigated away from.
1675 2008-11-06 Stephane Delcroix <sdelcroix@novell.com>
1678 * plugin-downloader.h|cpp:
1679 * firefox/browser-http.inc: pass the uri with the finished handler
1680 for further validation. r:gnorton
1682 2008-10-31 Chris Toshok <toshok@ximian.com>
1684 * plugin.cpp (PluginInstance::CreateWindow): call SetTransparent
1685 on moon_window instead of the surface.
1687 * windowless.cpp (MoonWindowless::HandleEvent): pass
1688 GetTransparent() to Surface::PaintToDrawable here.
1690 2008-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1692 * plugin.cpp: Implement EnableRedrawRegions by linking them to
1693 RUNTIME_INIT_SHOW_EXPOSE.
1695 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
1697 * plugin.cpp: Add a row to the Properties dialog informing about the
1700 2008-10-21 Chris Toshok <toshok@ximian.com>
1702 * plugin-class.cpp, plugin-class.h: event listener leak fix v3.0
1704 2008-10-21 Chris Toshok <toshok@ximian.com>
1706 * plugin-class.cpp, plugin-class.h: since I removed the value_dtor
1707 from xaml_proxies, we need to iterate over it and destroy the
1708 proxies manually now. Also, disavow ownership of proxies when we
1711 2008-10-20 Chris Toshok <toshok@ximian.com>
1713 * plugin-class.cpp (MoonlightObject::ClearXamlEventProxy): this
1714 method cannot call RemoveHandler on the proxy. instead, we return
1715 the proxy and our callers can do it
1716 (MoonlightScriptControlObject::SetProperty): here
1717 (MoonlightContentObject::SetProperty): here
1718 (MoonlightDependencyObjectObject::SetProperty): and here
1720 (EventListenerProxy::~EventListenerProxy): here we need to clear
1721 out the xaml/non-xaml proxy regardless of of whether or not it's a
1722 function. and make sure to call the right method depending on our
1725 2008-10-20 Chris Toshok <toshok@ximian.com>
1727 * plugin-class.cpp, plugin-class.h: Rather complicated lifecycle
1728 sorting out dealing with EventListenerProxies - there was a reason
1729 I was avoiding this :) - fixes bug 436060.
1731 1) if the target (the object on which the proxy calls AddHandler)
1732 is destroyed, the proxy should go away.
1734 2) if the owner (the MoonlightObject which created the proxy) is
1735 invalidated, the proxy should also be invalidated.
1737 3) if the owner is destroyed, the proxy should call RemoveHandler
1738 on the target. Note that we shouldn't destroy the proxy here -
1739 it'll be destroyed by virtue of the data_dtor stuff in
1742 * windowless.h, windowless.cpp: add support for experimental
1743 extension (see mozilla.org bug #430451) for windowless cursors.
1745 2008-10-20 Chris Toshok <toshok@ximian.com>
1747 * plugin-entry.cpp: get rid of all those CallNPP_* macro uses.
1748 just invoke the damn function.
1750 * plugin-proxy.cpp, moonlight.h: include npfunctions.h instead of npupp.h
1752 * plugin-glue.cpp, plugin.h: fix types.
1754 * moz-sdk/*: rev to a newer version of the moz-sdk files.
1756 2008-10-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1758 * plugin-class.cpp: proxy_listener_to_javascript: if calldata is null,
1759 only pass 1 argument to javascript. Fixes #426440 partially (mp3s
1760 are now downloaded).
1762 2008-10-16 Jb Evain <jbevain@novell.com>
1764 * moonlight.h: update SL2 mime type and runtime version.
1766 2008-10-14 Chris Toshok <toshok@ximian.com>
1768 * windowless.cpp (MoonWindowless::GetGdkWindow): get the
1769 netscapeWindow from our plugin id and return a new GdkWindow for
1772 2008-10-14 Stephane Delcroix <sdelcroix@novell.com>
1774 * windowless.h|.cpp: implements GetGdkWindow ()
1776 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1778 * plugin-class.cpp: Fix statement order.
1780 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1782 * plugin.cpp, plugin-class.cpp: Add some null checks, found while using
1783 firebug during plugin initialization.
1785 2008-10-07 Larry Ewing <lewing@novell.com>
1787 * windowless.cpp (MoonWindowless::HandleEvent): set the crossing
1788 mode of our synthetic events to normal.
1790 Fixes missing mouse leave events for InputHitTst.html (143)
1792 2008-10-07 Larry Ewing <lewing@novell.com>
1794 * plugin.cpp: remove a redundant call to SetSurface after creating
1795 a surface, it is handled in the ctor.
1797 Fixes the double render_cb registration problem we were seeing
1798 that caused high framerates and starvation problems.
1800 2008-10-03 Stephane Delcroix <sdelcroix@novell.com>
1802 * plugin.cpp: call SetPageURL even for embedded xaml. Makes fixture
1803 145 break, as expected.
1805 2008-09-30 Chris Toshok <toshok@ximian.com>
1807 * plugin-debug.cpp: more debug window work - it's sorted by name
1808 now, and add support for colors, timespans, and a few other types.
1810 2008-09-30 Chris Toshok <toshok@ximian.com>
1812 * plugin-debug.cpp: rework the Debug window entirely. no we don't
1813 just show children, but all property values.
1815 2008-09-28 Chris Toshok <toshok@ximian.com>
1818 plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): add
1819 support for dumpNameScope.
1821 2008-09-26 Fernando Herrera <fherrera@novell.com>
1823 * mono.cpp: Fix compilation when configured with --with-debug=no
1825 2008-09-25 Jeffrey Stedfast <fejj@novell.com>
1827 * plugin.cpp (PluginInstance::PluginInstance): Initialize
1828 source_location to NULL - probably the source of the random
1829 crashes we were seeing on the buildbot earlier.
1831 2008-09-25 Stephane Delcroix <sdelcroix@novell.com>
1833 * plugin.cpp: update the Surface::source_location while setting
1834 the source_location.
1836 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1838 * plugin.cpp: Show a item in the right-click menu allowing the ms
1839 codecs to be installed manually.
1841 2008-09-23 Chris Toshok <toshok@ximian.com>
1843 * plugin.cpp (PluginInstance::CreateWindow): plug some memory
1846 2008-09-19 Jeffrey Stedfast <fejj@novell.com>
1848 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): For
1849 RemoveEventListener(), we don't need to look up the event_id more
1852 * plugin.cpp (PluginXamlLoader::HookupEvent): Call
1853 event_object_add_xaml_listener() instead of
1854 event_object_add_javascript_handler() since this is happening as a
1855 result of a listener being set in the XAML (which means it has to
1856 have a token value of 0).
1858 * plugin-class.cpp (EventListenerProxy::AddXamlHandler): New method.
1859 (event_object_add_xaml_listener): New.
1861 2008-09-19 Stephane Delcroix <sdelcroix@gnome.org>
1863 * plugin-class.cpp: use the nex dl->Open interface
1865 2008-09-16 Fernando Herrera <fherrera@novell.com>
1867 * Makefile.am: Add asf include dir
1869 2008-09-06 Chris Toshok <toshok@ximian.com>
1871 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): look
1872 up the event here, the DO api is gone.
1873 (EventListenerProxy::~EventListenerProxy): use the DestroyedEvent
1874 id instead of "destroyed".
1876 2008-09-03 Larry Ewing <lewing@novell.com>
1878 * plugin-class.cpp, plugin-class.h: remove all the ControObject
1879 wrapper foo, Control has the properties we need and this looks
1882 2008-08-28 Chris Toshok <toshok@ximian.com>
1884 * plugin.cpp, plugin-class.cpp: track move from C-binding to C++
1885 for the xaml_create/hydrate_from* methods.
1887 2008-08-28 Larry Ewing <lewing@novell.com>
1889 Make a little progress in getting opera to load the plugin
1890 correctly in windowless mode. Opera is still only minimally
1891 functional but the plugin should come up now.
1893 * plugin.cpp, plugin.h: don't get the source url via GetProperty
1894 that causes operapluginwrapper to reenter and breaks everything.
1895 Handle a few other operapluginwrapper quirks and pass resizing
1896 through the window not the surface (so that UpdateWindowInfo will
1899 * plugin-glue.cpp: slightly rework the initialization, don't fixup
1900 errors just try to fail early.
1902 * windowless.cpp (MoonWindowless::UpdateWindowInfo): new function
1903 to copy the needed members of NPWindow that opera is prematurely
1906 2008-08-25 Chris Toshok <toshok@ximian.com>
1908 * plugin-class.cpp, windowless.cpp: track rect change.
1910 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1912 * plugin.cpp: Fix build.
1914 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1916 * plugin-downloader.cpp: Drastically enhance the debugging experience
1919 2008-08-18 Larry Ewing <lewing@novell.com>
1921 * plugin-class.cpp (MoonlightStrokeCollectionObject::Invoke):
1922 unref the collection we've created.
1924 2008-08-18 Geoff Norton <gnorton@novell.com>
1926 * plugin-class.cpp: Its possible that we dont have a surface in the
1927 OnError case at this point, guard against this.
1929 2008-08-18 Geoff Norton <gnorton@novell.com>
1931 * plugin.cpp: Ensure we dont set object.Source to a data mime-type value.
1933 2008-08-18 Geoff Norton <gnorton@novell.com>
1935 * windowless.cpp: Null the GdkEventKey.string value.
1936 * plugin-class.cpp|h: Rename KeyboardEventArgs->KeyEventArgs,
1937 but support returning "KeyboardEventArgs" to javacsript toString()
1940 2008-08-17 Geoff Norton <gnorton@novell.com>
1942 * plugin.cpp|h: Add a C binding for GetSourceLocation ()
1944 2008-08-17 Chris Toshok <toshok@ximian.com>
1946 * plugin.cpp, plugin-class.cpp, mono.cpp, plugin-proxy.cpp,
1947 plugin.h, moonlight.h, moon-mono.h: SL_2_0 -> SL_PLUGIN_2_0.
1949 2008-08-17 Chris Toshok <toshok@ximian.com>
1951 * Makefile.am: INCLUDE_MONO_RUNTIME ->
1952 INCLUDE_BROWSER_MANAGED_CODE.
1954 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
1956 * plugin-class.cpp (MoonlightStylusInfoObject::GetProperty): Use
1957 the c++ property accessors for the stylus classes.
1959 2008-08-14 Jackson Harper <jackson@ximian.com>
1961 * plugin.cpp|h: We now get a 'dest' pointer for hooking up events,
1962 this is basically ignored by the javascript event hookup since
1963 everything is in a global space.
1965 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1967 * plugin.h: Don't use base_unref, call unref on the instance.
1969 2008-08-14 Geoff Norton <gnorton@novell.com>
1971 * plugin.cpp|h: The timeout C bindings are no longer used.
1973 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1975 * plugin-class.cpp: Remove spew.
1976 * moonlight.cs: Don't initialize Helper.Agclr here, it's not in the
1979 2008-08-13 Geoff Norton <gnorton@novell.com>
1981 * plugin.cpp|h: Reuse the old html_timer infrastructure for the
1982 intial DispatcherTimer implementation.
1984 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1986 * moonlight.cs: Set Helper.Agclr upon startup.
1988 2008-08-11 Larry Ewing <lewing@novell.com>
1990 * plugin.cpp (PluginInstance::StreamAsFile): horrible but
1991 temporary hack to load application/x-silverlight objects as sl2
1992 files when .xap is present in the filename.
1994 2008-08-11 Geoff Norton <gnorton@novell.com>
1996 * moonlight.h: Some sites are doing an exact string comparison
1997 in Javascript of this value. Unfortunately we need to drop
1998 out compatability string.
2000 2008-08-08 Chris Toshok <toshok@ximian.com>
2002 * plugin-class.cpp: add sl2 arguments to the various parser/enum
2003 functions that need them.
2005 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2007 * plugin.mdp: Make src and plugin projects build.
2009 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2011 * plugin-debug.cpp: Deleted Visual (moved content into UIElement), and
2012 renamed VisualCollection to UIElementCollection.
2014 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2016 * plugin-class.cpp: Use C++ bindings instead of C bindings.
2018 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2020 * plugin.cpp, plugin.h: Implement PluginInstance::Evaluate.
2022 2008-07-26 Chris Toshok <toshok@ximian.com>
2024 * plugin-class.h, plugin-class.cpp: add MoonlightRoutedEventArgs
2025 stuff between EventArgs and KeyboardEventArgs/MouseEventArgs.
2026 RoutedEventArgs exposes a 2.0-only property ("source"), and both
2027 Keyboard/MouseEventArgs expose a 2.0-only property as
2030 2008-07-25 Chris Toshok <toshok@ximian.com>
2032 * plugin-class.h, plugin-class.cpp: add a flags field to the
2033 mapping, so we can start to differentiate the 1.0 and 2.0 JS apis.
2035 * plugin.cpp (PluginInstance::CreateWindow): pass silverlight2 to
2038 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
2040 * plugin-class.cpp (MoonlightCollectionObject::GetProperty): Use
2041 collection->GetCount() instead of poking at the internal
2042 representation of the data.
2043 (MoonlightCollectionObject::Invoke): Need to add/remove/insert/etc
2044 items as Values now.
2046 2008-07-23 Chris Toshok <toshok@ximian.com>
2048 * plugin-class.cpp: track DependencyProperty changes.
2050 2008-07-18 Chris Toshok <toshok@ximian.com>
2052 * windowless.h, windowless.cpp: switch this from being a surface
2053 subclass to being a MoonWindow subclass, which fixes the need for
2054 us to worry about whether we have a widget (for fullscreen) in
2057 2008-07-18 Jb Evain <jbevain@novell.com>
2059 * moonlight.cs (UnloadDomain): actually call the plugin unload callback.
2061 2008-07-18 Jackson Harper <jackson@ximian.com>
2063 * plugin-debug.cpp: Use new method for getting content element.
2065 2008-07-17 Jackson Harper <jackson@ximian.com>
2067 * plugin-debug.cpp: Add the contents of UserControls to the tree too.
2069 2008-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2071 * npstream-request.cpp, plugin-entry.cpp: Add missing #include
2074 2008-07-10 Andrew Jorgensen <ajorgensen@novell.com>
2076 * plugin-proxy.cpp: Include config.h (which got un-included
2079 2008-07-10 Chris Toshok <toshok@ximian.com>
2081 * plugin.cpp (PluginInstance::UpdateSourceByReference): rework
2082 this so that it uses the NPN api instead of the bridge-requiring
2083 html_get_element_text.
2085 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
2087 * plugin.mdp: Updated.
2089 2008-07-09 Geoff Norton <gnorton@novell.com>
2091 * plugin.cpp: UrlNotify now calls dl->NotifyFinished() and
2092 StreamAsFile calls SetFilename
2093 * plugin-downloader.cpp: Update for the Downloader changes
2094 to NotifyFinished / SetFilename
2096 2008-07-09 Larry Ewing <lewing@novell.com>
2098 * windowless.cpp: make sure we proxy events to the fullscreen
2099 widget when we are in fullscreen mode.
2101 Fixes silverlight.net/fox in fullscreen mode.
2103 2008-07-08 Sebastien Pouliot <sebastien@ximian.com>
2105 * plugin-class.cpp: Make sure we free (or nullify) before calling
2108 2008-07-07 Jeffrey Stedfast <fejj@novell.com>
2110 * mono.cpp: Fixed includes.
2112 2008-07-06 Chris Toshok <toshok@ximian.com>
2114 * windowless.cpp (WindowlessSurface::HandleEvent):
2115 plugin_button_press_callback takes the plugin for user_data, not
2118 2008-07-06 Chris Toshok <toshok@ximian.com>
2120 * plugin.cpp (PluginInstance::Initialize): add a way to override
2121 the windowless setting. set the MOONLIGHT_NO_WINDOWLESS
2122 environment variable, and plugins will be created windowed,
2123 regardless of the JS.
2125 2008-07-02 Chris Toshok <toshok@ximian.com>
2127 * Makefile.am (INCLUDES): add src/zip
2129 * plugin.cpp (PluginInstance::StreamAsFile): in the case where the
2130 1.0 version of the plugin is fed a .xap file, show something to
2131 the user saying it's not going to be able to render it.
2133 2008-07-02 Chris Toshok <toshok@ximian.com>
2135 * plugin.h, plugin.cpp: more clean up in the class decl.
2137 * plugin-class.cpp, plugin-debug.cpp, plugin-glue.cpp: fallout
2138 from the above change.
2140 2008-07-02 Jeffrey Stedfast <fejj@novell.com>
2142 * plugin.cpp (PluginInstance::Properties): Added a "Show text
2145 2008-07-02 Chris Toshok <toshok@ximian.com>
2147 * plugin.h, plugin.cpp: reorder PluginInstance's class decl so
2148 that public: comes before private:, and make "timers" private,
2149 forcing the addition of TimeoutAdd and TimeoutStop instance
2150 methods so that the C binding can call them. put comments all
2151 over them saying they're obsolete in b2.
2153 2008-07-02 Chris Toshok <toshok@ximian.com>
2155 * plugin-class.h, plugin-class.cpp (string_to_npvariant): make
2158 2008-07-02 Chris Toshok <toshok@ximian.com>
2160 * windowless.h, windowless.cpp (WindowlessSurface::HandleEvent):
2161 move the windowless event handling here so it's not cluttering up
2164 * plugin.h, plugin.cpp: add GetWindow() to return the NPWindow,
2165 make plugin_button_press_callback a public static method so
2166 WindowlessSurface can call it, and remove the entire EventHandle
2167 method body (so it can be moved to WindowlessSurface).
2169 2008-07-02 Chris Toshok <toshok@ximian.com>
2171 * plugin.h, plugin.cpp: remove the old static methods for doing
2172 windowless things, and instead just instantiate a
2173 WindowlessSurface in CreateWindow when windowless == true.
2175 * Makefile.am (libmoonplugin_la_SOURCES): add windowless.{cpp,h}
2177 * windowless.h, windowless.cpp: new WindowlessSurface subclass
2178 which proxies things over to mozilla.
2180 2008-07-02 Chris Toshok <toshok@ximian.com>
2182 * plugin.cpp (NPN_strdup): just set 1 byte to 0 instead of all of
2184 (PluginInstance::SetSurfaceCursor): ifdefed out implementation of
2185 a proposed method for setting the cursor in windowless plugins.
2186 (PluginInstance::CreateWindow): hook up SetSurfaceCursor.
2188 2008-06-28 Geoff Norton <gnorton@novell.com>
2190 * plugin-downloader.(ccp|h): The finished event raises a success condition now
2191 so that we can notify failure on unsuccessful downloads.
2193 2008-06-27 Stephane Delcroix <sdelcroix@novell.com>
2196 * firefox/browser-http.inc:
2197 * firefox/ff2/ff2-bridge.h:
2198 * firefox/ff2/ff2-http.cpp:
2199 * firefox/ff3/ff3-bridge.h:
2200 * firefox/ff3/ff3-http.cpp:
2201 * npstream-request.cpp:
2202 * npstream-request.h:
2203 * plugin-downloader.cpp:
2204 * plugin-downloader.h: move browserrequest/response from the plugin
2205 as downloaderrequest/response.
2207 2008-06-26 Michael Dominic K. <mdk@mdk.am>
2210 * plugin-class.h: Adding ways/wrapper to access the KeyTime property of
2211 the KeyFrame. Fixes #402370 and #402035.
2213 2008-06-19 Chris Toshok <toshok@ximian.com>
2215 * plugin.h: add GetHost(), and rename all the "get"/"set" methods
2216 to "Get"/"Set" to match everything else.
2218 * plugin.cpp: fix up the renaming, and abstract out the code used
2219 in a couple of places (getting the NPNVPluginElementNPObject) into
2222 * npstream-request.cpp (NPStreamRequest::GetResponse): track
2225 * plugin-class.cpp: track renaming.
2226 (MoonlightDependencyObjectObject::Invoke): use GetHost().
2228 2008-06-19 Chris Toshok <toshok@ximian.com>
2230 * plugin-class.cpp (MoonlightScriptControlObject::Invoke): comment
2231 out the version requested spew.
2233 * plugin.cpp (PluginInstance::Initialize): comment some bridge
2234 spew, and make sure to use "else if" for the useragent tests so we
2235 don't end up possibly loading 2 bridges.
2237 2008-06-17 Geoff Norton <gnorton@novell.com>
2239 * plugin-downloader.cpp: When we are Aborted NULL our request
2240 and response objects so that we dont do a double abort from our
2241 dtor. Fully fixes the Downloader::Write issue (i hope).
2243 2008-06-17 Geoff Norton <gnorton@novell.com>
2245 * plugin-downloader.cpp: Set the finished state regardless of
2246 wether we have a downloader or not.
2248 2008-06-17 Geoff Norton <gnorton@novell.com>
2250 * plugin-downloader.cpp: If we destroy ourselves, ensure that we
2251 abort our request/response so that firefox doesn't call back
2252 into a destroyed object.
2254 2008-06-17 Geoff Norton <gnorton@novell.com>
2256 * plugin-downloader.cpp, plugin-downloader.h: Ensure that we dont
2257 attempt to abort a finished stream, as it may have dissappeared from
2260 2008-06-16 Jeffrey Stedfast <fejj@novell.com>
2262 * plugin-class.cpp (_set_dependency_property_value): Don't
2263 g_assert() here, it's not necessary plus we want to get rid of
2264 them anyway for bug #335413.
2266 2008-06-10 Chris Toshok <toshok@ximian.com>
2268 * plugin.cpp, plugin.h: wrap everything 2.0 related with
2269 INCLUDE_MONO_RUNTIME.
2271 2008-06-10 Geoff Norton <gnorton@novell.com>
2273 * plugin-downloader.cpp, plugin-downloader.h: Aborted guarding
2274 is handled in the bridge now, as plugin-downloader's might be
2275 reused. Also add a null check for Downloader in the Read callback
2277 2008-06-10 Geoff Norton <gnorton@novell.com>
2279 * npstream-request.cpp: Return the status of GetResponse.
2281 2008-06-11 Geoff Norton <gnorton@novell.com>
2283 * plugin-downloader.cpp: Only call into the downloader to Write
2284 if we have a downloader set. Fixes a crash when navigating away from
2287 2008-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
2289 * plugin-class.h: Replace g_assert with g_warning.
2291 2008-06-09 Geoff Norton <gnorton@novell.com>
2293 * npstream-request.cpp: Change the g_asserts to g_warning.
2295 2008-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2297 * plugin.mdp: Updated.
2299 2008-06-05 Jeffrey Stedfast <fejj@novell.com>
2301 * plugin-debug.cpp (save_callback): Modified to save mirror in the
2302 same directory layout as the website.
2304 2008-06-05 Geoff Norton <gnorton@novell.com>
2306 * plugin-class.cpp: Update to reflect API changes on the downloader
2309 2008-06-05 Geoff Norton <gnorton@novell.com>
2311 * plugin-downloader.cpp: Update the debugging outputs.
2313 2008-06-05 Geoff Norton <gnorton@novell.com>
2315 * http-downloader.cpp, http-downloader.h, mms-downloader.cpp,
2316 mms-downloader.h: Drop from the build in preparation to move
2317 mms logic into libmoon.
2318 * plugin-downloader.cpp, plugin-downloader.h,
2319 browser-bridge.h: Remove the browser downloader and encapsulate
2320 all the logic in a BrowserRequest.
2321 * npstream-request.cpp, npstream-request.h: New BrowserRequest
2322 based NPStream implementation.
2323 * plugin-downloader.cpp: Fix some debugging output. Add a few
2325 * plugin.cpp: Utilize the new npstream-request class.
2327 2008-06-04 Geoff Norton <gnorton@novell.com>
2329 * plugin-class.cpp: Fix the argument check for MouseEventArgs
2330 GetPosition regression introduced with check_arg_list changes.
2332 2008-06-04 Geoff Norton <gnorton@novell.com>
2334 * plugin-class.cpp: Fix the argument check for hitTest
2335 regression introduced with check_arg_list changes.
2337 2008-06-04 Geoff Norton <gnorton@novell.com>
2339 * plugin-class.cpp: Fix the argument check for setFontSource
2340 regression introduced with check_arg_list changes.
2342 2008-06-04 Jeffrey Stedfast <fejj@novell.com>
2344 * plugin-class.cpp: Added argument sanity checking in all the
2345 Invoke() methods I could find (may have missed some).
2346 (check_arg_list): New function to sanity-check an NPVariant
2347 argument vector for the correct types and the correct number of
2348 arguments (supports optional args as well).
2350 2008-06-04 Jeffrey Stedfast <fejj@novell.com>
2352 * plugin-class.cpp (MoonlightDownloaderObject::Invoke): Check the
2353 arg-types for ::Open(). Fixes bug #394943.
2355 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2357 * plugin-downloader.cpp: Don't delete BrowserDownloaders, it causes
2358 crashes for the moment.
2360 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2362 * mms-downloader.cpp: MmsDownloader::Read: only delete the ASFParser
2363 after we've finished with the data it contains.
2364 MmsDownloader::ProcessMetadataPacket: fix parsing quoted strings.
2365 * mms-downloader.h, npstream-downloader.h: Make dtor virtual.
2366 * plugin-downloader.cpp, plugin-downloader.h: Move ctors and dtors into
2367 cpp file, and delete the BrowserDownloader in PluginDownloader's
2370 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2372 * plugin.mdp: Updated.
2374 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2376 * mms-downloader.cpp: Call Downloader::NotifyFailed when we encounter
2377 an invalid mms source. Parse metadata packets, and set
2378 HttpStreamingFeatures correctly on the downloader.
2379 * plugin-downloader.cpp: Handle rtsp urls.
2381 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2383 * plugin.cpp: Add some debugging foo.
2385 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2387 * npstream-downloader.cpp: If NPN_GetURLNotify fails, notify the
2390 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2392 * mms-downloader.cpp, mms-downloader.h: For the broadcast case keep a
2393 count of the number of packets received, and write new packets at
2394 the end of the previous packet. Don't print warnings for MMS_END
2395 and MMS_STREAM_C packets.
2397 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2399 * plugin-downloader.cpp: Return something from
2400 PluginDownloader::GetPlugin.
2402 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2404 * plugin-downloader.cpp: Spaces->Tabs.
2406 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2408 * mms-downloader.h, mms-downloader.cpp: Move ctor/dtor into cpp file,
2409 add some logging and null out response in Finished, otherwise we
2410 might crash if Abort is called later on.
2412 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2414 * http-downloader.cpp: Return something from HttpDownloader::Read.
2416 2008-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2418 * plugin.mdp: Updated.
2420 2008-05-23 Geoff Norton <gnorton@novell.com>
2422 * browser-bridge.h: Get/SetUri is no longer needed on the BrowserResponse
2425 2008-05-23 Geoff Norton <gnorton@novell.com>
2427 * *-downlodaer.cpp: Add the files to SVN
2429 2008-05-23 Geoff Norton <gnorton@novell.com>
2431 * browser-bridge.cpp: Refactor to move all the stream processing logic outside
2432 the bridge into the plugin in a generic way.
2433 * plugin.cpp: Cache the source_location. Needed for http-downlodaer to resolve
2435 * mmsh-state.*: Merged into mms-downlodaer.cpp
2436 * mms-downloader.cpp: Rewritten to not leak all memory when streaming from a mms
2437 server, plus a lot of readability fixes.
2438 * npstream-downloader.cpp: Hide NPStream related specifics here instead of in
2439 * plugin-downloader.cpp: Direct requests to the BrowserDownloader implementation
2442 2008-05-21 Chris Toshok <toshok@ximian.com>
2444 * plugin.cpp (plugin_button_press_callback): rename
2445 plugin_event_callback to this, and remove all the non-button event
2447 (PluginInstance::CreateWindow): connect to just
2448 "button-press-event", not the more generic "event". track
2450 (PluginInstance::EventHandle): track renaming.
2452 2008-05-19 Larry Ewing <lewing@novell.com>
2454 * plugin.cpp (PluginInstance::SetPageURL): drop the reference we
2455 were holding to NPNVWindowNPObject.
2457 2008-05-19 Larry Ewing <lewing@novell.com>
2459 * plugin.cpp (PluginInstance::EventHandle): discard any events
2460 that happen before SetWindow has been called.
2462 Fix for a crash in Silverlight Pad.
2464 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2466 * plugin-class.cpp: Throw an exception if the downloader doesn't have a
2467 surface when we call Downloader::Send.
2469 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2471 * mmsh-state.h: Surround file with ifdefs, and forward declare
2473 * plugin-downloader.h: Include mmsh-state.h and properly declare
2474 PluginDownloader::state as MmshState.
2476 2008-05-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
2478 * plugin.mdp: Updated.
2480 2008-05-15 Larry Ewing <lewing@novell.com>
2482 * plugin.cpp (PluginInstance::EventHandle): send focus in/out to
2485 * plugin-class.cpp, plugin.cpp, plugin.h: capture id parameter and
2488 2008-05-14 Sebastien Pouliot <sebastien@ximian.com>
2490 * moonlight.h: Start plugin description with Silverlight plugin
2491 version. The new detection script for sharethelove requires this.
2493 2008-05-13 Larry Ewing <lewing@novell.com>
2495 * plugin.cpp, plugin-class.cpp: copy all npvariant strings so that
2496 we can null terminate them. WebKit and Opera don't null terminate
2499 2008-05-13 Larry Ewing <lewing@novell.com>
2501 * plugin-glue.cpp (NPP_Initialize): opera needs to have threads
2502 initialized even in the gtk2 case.
2504 * plugin.cpp (PluginInstance::SetWindow): disable this check since
2505 it currently fails on opera 9.5b2.
2507 These changes get the plugin loading in opera 9.5b2 we need to
2508 discuss some of this with them more.
2510 2008-05-13 Chris Toshok <toshok@ximian.com>
2512 * plugin.cpp (PluginInstance::Initialize): add an opera case (just
2513 like the webkit case) which references a (for now) nonexistant
2516 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2518 * plugin.cpp: TryLoad: Before parsing any xaml, we need to clear the
2519 current surface, otherwise the xaml we'll be parsing might add tick
2520 callbacks to the timemanager of the previous surface.
2522 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2524 * plugin.mdp: Updated.
2526 2008-05-12 Andrew Jorgensen <ajorgensen@novell.com>
2528 * Makefile.am: Moved the plugin installer code to a subdir (install)
2529 because the firefox bridges must build after the plugin but before the
2532 2008-05-09 Geoff Norton <gnorton@novell.com>
2534 * Makefile.am: Add mmsh-state.* to the build.
2535 * plugin-downloader.*: When connecting to a mms server we cannot
2536 immediately start streaming. We must first query its capabilities
2537 with a Describe request, then select the appropriate streams we
2538 wish to have available.
2540 2008-05-09 Geoff Norton <gnorton@novell.com>
2542 * mmsh-state.cpp, mmsh-state.h: New class to keep stream state
2543 for selecting which streams to fetch from a mms:// server.
2545 2008-05-09 Chris Toshok <toshok@ximian.com>
2547 * ff3/Makefile.am (libmoonplugin_ff3bridge_la_LIBADD): add
2550 2008-05-09 Chris Toshok <toshok@ximian.com>
2552 * ff2/Makefile.am (EXTRA_DIST): dist firefox-browsermmsh.inc
2554 2008-05-08 Chris Toshok <toshok@ximian.com>
2556 * install.rdf.in: track MINVERSION/MAXVERSION ->
2557 MIN_FIREFOX_VERSION/MAX_FIREFOX_VERSION change.
2559 * plugin.cpp (NPN_strdup): make the arg const char* to quiet gcc.
2560 (PluginInstance::PluginInstance): initialize bridge to NULL.
2561 (PluginInstance): delete the bridge.
2562 (PluginInstance::Initialize): try loading a browser specific
2563 bridge using the useragent string (gross, fragile, i know...)
2564 (PluginInstance::TryLoadBridge): new method, dlopen the bridge.
2566 * browser-http.h, browser-http.cpp: nuke. the C implementation
2567 lives in browser-bridge.cpp, and browser-bridge.h defines
2568 the (purely abstract) base classes that the bridge implementations
2569 subclass from for browser-specific functionality.
2571 * plugin-proxy.cpp: clean up more XP_UNIX stuff - it's always
2572 defined (in moonlight.h) so we don't need ifdefs for it. Also, it
2573 needs to be defined *before* including npapi/npupp so that
2574 structures we need are defined.
2576 * plugin-class.cpp: remove all HtmlObject implementation code from
2577 here. it lives in the browser bridge now. Also, remove all
2578 internal mozilla #includes.
2580 * moonlight.h (XP_UNIX): always define it if it isn't already
2583 * browser-bridge.h: add NPNetscapeFuncs* arg to
2584 CreateBrowserBridge.
2586 * plugin-entry.cpp (NPN_PostURLNotify): correct arg type.
2587 (NPN_MemAlloc): same.
2588 (NPN_MemFlush): same.
2589 (NPN_PostURL): same.
2590 (NP_Initialize): remove the stupid #if XP_UNIX stuff from here.
2591 we're only building on unix, so let's simplify things. Also,
2592 don't use PR_TRUE/PR_FALSE. NPBool uses TRUE/FALSE.
2594 * plugin-glue.cpp (NPP_WriteReady): change type to int32 instead
2595 of int32_t so that it matches the prototype.
2598 * moz-sdk/npapi.h, moz-sdk/npupp.h: unfuck our npapi headers so
2599 they can be used for either ff2 and ff3 (and without pulling in
2602 2008-05-08 Larry Ewing <lewing@novell.com>
2604 * plugin.cpp (PluginInstance::SetWindow): don't crash if we
2605 weren't able to create a surface.
2607 2008-05-08 Chris Toshok <toshok@ximian.com>
2609 * ff2/ff2-bridge.cpp: in order to keep from needing to load
2610 libmoonplugin.so with RTLD_GLOBAL (which breaks other plugins), we
2611 need to pass the NPNetscapeFuncs vtable to the bridge, and provide
2612 implementations of all the NPN_ methods here. That was making
2613 this file a bit busy, so break out the dom and http stuff to
2616 * ff2/ff2-dom.cpp: move the dom stuff here.
2618 * ff2/ff2-http.cpp: move the browserhttp stuff herre.
2620 * ff2/Makefile.am (EXTRA_DIST): make sure we dist
2621 firefox-browserhttp.inc
2623 * ff3/ff3-http.cpp, ff3/ff3-dom.cpp, ff3/ff3-bridge.cpp: same
2624 changes to the ff3 bridge.
2626 2008-05-07 Geoff Norton <gnorton@novell.com>
2628 * plugin.cpp, plugin.h: Add NPN_strdup
2629 * plugin-class.cpp: Use NPN_strdup
2630 * plugin-entry.cpp: Dont abort if XEmbed/Gtkv2 aren't found as
2631 some browsers wont lets us NPN_GetValue on a NULL instance.
2633 2008-05-07 Andrew Jorgensen <ajorgensen@novell.com>
2635 * Makefile.am: Move mono_*dir stuff into Makefile
2637 2008-05-07 Larry Ewing <lewing@novell.com>
2639 * plugin.cpp (PluginInstance::SetWindow): if SetWindow is called
2640 with the same window this is due to a resize, propogate that
2641 resize to the surface code.
2643 Fixes the plugin side of windowless resizing. See
2644 http://my.liveatedu.com/ for test case.
2646 2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
2648 * moonlight.h: Could not find (nor google) the real meaning for SCR,
2649 I suspect "script", nor does it affect any apps I've seen but having
2650 xaml in it's place is probably not a good idea.
2653 2008-05-06 Jeffrey Stedfast <fejj@novell.com>
2655 * plugin.h (PluginInstance::getNPP): Removed, this just duplicated
2656 the getInstance() method.
2658 2008-05-06 Andrew Jorgensen <ajorgensen@novell.com>
2660 * install.rdf.in: Use values from configure for min and max versions
2662 2008-05-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2664 * plugin-glue.cpp: shutdown_moonlight: we have to check again if there
2665 are plugins alive, this method is called async, and it's possible
2666 that another plugin has been initialized between adding the timeout
2669 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2671 * plugin-class.cpp: Add a missing initialization.
2673 2008-05-04 Miguel de Icaza <miguel@novell.com>
2675 * moonlight.cs: Add support for XAP file loading.
2677 * mono.cpp: New methods to create applications based on XAP files,
2680 * plugin.cpp (PluginInstance::StreamAsFile): If Silverlight2 the
2681 request was for a XAP file, load a XAP file. This could break
2682 if people embed a Silverlight2 plugin, but pass a XAML file, must
2685 * plugin.cpp: Some refactoring to keep the Mono-depending features
2686 together, without having ifdefs inside of functions.
2688 XAP maintenance: Keep track of whether a XAP application has been
2689 loaded, destroy XAP applications on shutdown.
2692 2008-05-04 Chris Toshok <toshok@ximian.com>
2694 * plugin.h, plugin.cpp, plugin-class.cpp, plugin-class.h: revert
2695 most of r102288 to move back to the separate Loaded/Load events.
2696 Leave the OneShot behavior for EventListenerProxy's, though, as
2697 that still is useful.
2699 2008-05-01 Larry Ewing <lewing@novell.com>
2701 * plugin.cpp (plugin_event_callback): fix windowless button
2702 presses so that only button 3 is swallowed by the menu logic.
2705 http://www.designwithsilverlight.com/tutorials/photoGallery/gallery.html
2706 2008-05-02 Andrew Jorgensen <ajorgensen@novell.com>
2708 * Makefile.am: strip all .sos in XPI (not just ffmpeg)
2709 If we need un un-stripped XPI we'll build one.
2711 2008-05-02 Geoff Norton <gnorton@novell.com>
2713 * plugin.cpp: reinterpret_cast doesn't work on 64-bit as it
2716 2008-05-01 Chris Toshok <toshok@ximian.com>
2718 * plugin-class.h, plugin-class.cpp: make EventListenerProxy's
2719 one-shottable (if they're one-shot, they remove themselves
2720 automatically after being invoked.) Use this with the plugin
2721 onLoad proxy. The script control object adds it to the surface's
2722 toplevel object's LoadedEvent.
2724 * plugin.h, plugin.cpp: when we create the surface, add a handler
2725 for AttachingEvent so we can notify our
2726 MoonlightScriptControlObject that it should add the onLoad handler
2727 to the toplevel element's LoadedEvent.
2729 2008-04-30 Fernando Herrera <fherrera@novell.com>
2731 * browser-mmsh.cpp: Abort and NotifyFailed on invalid mms streams,
2732 probably they are plain http file downloads.
2734 2008-04-30 Fernando Herrera <fherrera@novell.com>
2736 * plugin-debug.cpp: Added utils.h and uri.h.
2738 2008-04-30 Jeffrey Stedfast <fejj@novell.com>
2740 * moonlight.h: Don't need to include glib.h and gtk.h, gtk.h will
2743 2008-04-29 Jeffrey Stedfast <fejj@novell.com>
2745 * plugin-debug.cpp (foreach_func): Save the files with their
2746 original filenames using the URI's path.
2748 2008-04-28 Sebastien Pouliot <sebastien@ximian.com>
2750 * moonlight.h: Fix [Moon|Silver]'L'ight capitalization. Add
2751 Moonlight URL (as HTML) in about:plugins. This enables "Visit
2752 Home Page" in Firefox 3 "Tools | Add-ons | Plugins".
2754 2008-04-25 Chris Toshok <toshok@ximian.com>
2756 * plugin-class.cpp (enum PluginPropertyId): add MoonId_OnLoad.
2757 (map_moon_id_to_event_name): handle MoonId_OnLoad.
2758 (MoonlightObjectType::MoonlightObjectType): zero out construct,
2760 (scriptable_control_mapping): move onerror here, and add onload.
2761 (MoonlightScriptControlObject): null out both settings and content
2763 (MoonlightScriptControlObject::GetProperty): fix IsLoaded to check
2764 the surface, and add support for OnError/OnLoad here.
2765 (MoonlightScriptControlObject::SetProperty): add support for
2766 OnError/OnLoad here.
2767 (moonlight_content_mapping): remove onerror.
2768 (MoonlightContentObject::GetProperty): remove support for OnError.
2769 (MoonlightContentObject::SetProperty): same.
2771 * plugin.cpp (PluginInstance::CreateWindow): initialize the
2772 onResize/onLoad events in the same way as onError.
2773 (PluginInstance::Initialize): parse the onResize arg.
2774 (PluginInstance::JsRunOnload): nuke. rejoice.
2775 (PluginInstance::TryLoad): remove the call to JsRunOnload. The
2776 surface's LoadEvent is responsible for this now.
2778 2008-04-25 Sebastien Pouliot <sebastien@ximian.com>
2780 * plugin-debug.cpp: Better fix against my previous crash fix (as
2781 we can get an invalid pointer to the plugin).
2783 2008-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2785 * plugin-downloader.cpp: Added logging.
2787 2008-04-25 Fernando Herrera <fherrera@novell.com>
2789 * browser-mmsh.cpp: Conditional logging.
2790 * plugin-downloader.cpp: proper error handling at
2791 p_downloader_mmsh_send.
2793 2008-04-24 Andrew Jorgensen <ajorgensen@novell.com>
2795 * Makefile.am: Add the locally built assemblies to the XPI
2797 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2799 * plugin-debug.cpp: Don't crash if we don't have any sources.
2801 2008-04-24 Fernando Herrera <fherrera@novell.com>
2803 * Makefile.am: Fix "make -jN" build.
2805 2008-04-23 Sebastien Pouliot <sebastien@ximian.com>
2807 * plugin-debug.cpp: Don't crash if try to save stuff after changing
2810 2008-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2812 * browser-mmsh.cpp: Parse http streaming metadata/features.
2813 * browser-mmsh.h: AsyncBrowserMmshResponse: Type the context as a
2814 PluginDownloader instead of a generic gpointer.
2816 2008-04-22 Larry Ewing <lewing@novell.com>
2818 * moonlight.h: use HAVE_LIBXUL_UNSTABLE to determine which symbols
2821 * browser-http.h, browser-mmsh.h: use HAVE_LIBXUL_UNSTABLE to
2822 determine the include path.
2825 2008-04-22 Chris Toshok <toshok@ximian.com>
2827 * plugin.h, plugin.cpp: Add the notion of "cleanup pointers".
2828 It's a horrible name for the following hack. You register a local
2829 variable pointer with the plugin before making a call during which
2830 you might be destroyed. If the plugin instance is destroyed, all
2831 cleanup pointers are nulled.. When the all returns, you can't
2832 rely on "this" being valid, but you can rely on your local stack
2833 frame, so you look at the registered pointer. if it's null,
2836 * plugin.cpp (PluginInstance::PluginInstance): pass the pluginType
2837 instead of the boolean flag. C apis should be thin wrappers
2839 (PluginInstance::~PluginInstance): zombify the surface and then
2840 unref_delayed it, to allow everything to unwind before actually
2841 freeing that memory.
2842 (PluginInstance::Initialize): use "else" and remove all those damn
2844 (PluginInstance::TryLoad): use the cleanup pointer hack to check
2845 if we're still alive after the xaml_loader->TryLoad method.
2847 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
2848 use cleanup pointers to make sure we don't try to free plugin
2849 objects that have been destroyed by virtue of the plugin going
2850 away while we were in JS.
2852 * plugin-glue.cpp: since we're only destroying surfaces from the
2853 idle loop, we need to delay the shutting down of the moonlight
2854 engine until all surfaces have been destroyed. Also, take care
2855 not to do it from the DestroyEvent handler, as that is invoked
2856 *before* the object is destroyed (and destruction requires the
2857 engine to be initialized).
2859 2008-04-22 Michael Dominic K. <mdk@mdk.am>
2861 * plugin-class.cpp: Throw js exception if Storyboard failed to start
2864 2008-04-21 Jeffrey Stedfast <fejj@novell.com>
2866 * mono.cpp (vm_init): Don't leak memory in the plugin case. Also
2867 use d() around debug printfs.
2869 * plugin.cpp: Wrap debug printfs with d()
2871 2008-04-20 Miguel de Icaza <miguel@roxanne.site>
2873 * plugin.h: Add methods to flag Silverlight2, add field Xap that
2874 if not-NULL contains a pointer to the XAP file downloaded.
2876 * plugin-instance.c: If we are dealing with a Silverlight 2
2877 application, use Xap to unpack it. Does not load the result yet.
2879 * moonlight.h: Add support for SL2 mime type, clear up VERSION
2881 * plugin-glue.cpp: Tell PluginInstance whether this is an SL1 or
2884 2008-04-16 Chris Toshok <toshok@ximian.com>
2886 * plugin.cpp (PluginInstance::StreamAsFile): use "else if" here,
2887 otherwise the notifydata might be gone.
2889 2008-04-16 Jeffrey Stedfast <fejj@novell.com>
2891 * plugin-class.cpp (MoonlightDependencyObjectObject::GetProperty):
2892 Just because enums_int_to_str() returns NULL does not mean that
2893 the value was invalid, it could also mean that the property is
2894 simply an Int32 type.
2896 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2898 * plugin-class.cpp, plugin-class.h: Comparing a Kind value to another to
2899 determine type hierarchy isn't supported anymore, use Value::Is or
2900 Type::IsSubclassOf, which are doing the right thing.
2902 2008-04-15 Larry Ewing <lewing@novell.com>
2904 * plugin.cpp (PluginXamlLoader::TryLoad): emit an error if the
2905 root visual type is incorrect. Fixes one more of the ParserError
2906 tests until we can unfiy js exceptions and parser errors.
2908 2008-04-15 Larry Ewing <lewing@novell.com>
2910 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
2911 based on RuntimeErrors and
2912 http://msdn2.microsoft.com/en-us/library/bb979718.aspx getParent
2913 only applies to uielement subclasses.
2915 Fixes test that was failing in RuntimeErrors.htm.
2917 2008-04-15 Larry Ewing <lewing@novell.com>
2919 * plugin-class.cpp: throw an exception for invalid string values.
2921 2008-04-14 Jeffrey Stedfast <fejj@novell.com>
2923 * plugin.cpp: Got rid of unnecessary uses of keyword 'this'.
2924 (PluginInstance::CreateWindow): Fixed setting of background color.
2926 2008-04-13 Jb Evain <jbevain@novell.com>
2928 * moonlight.cs: use reflection to initialize the XamlLoader
2929 until we get moonlight.exe to be friend with Mono.Moonlight.
2930 Merged from the Moonlight 2 branch.
2932 2008-04-11 Larry Ewing <lewing@novell.com>
2934 * plugin.h (class PluginInstance): make setBackground return a
2935 boolean success value.
2937 * plugin-class.cpp (MoonlightSettingsObject::SetProperty): check
2938 the return value of setBackground and throw an exception if it
2941 * plugin.cpp (PluginInstance::CreateWindow): handle NULL return
2942 values from color_from_string.
2944 Handle the new case where color_from_string might return null.
2946 2008-04-11 Jeffrey Stedfast <fejj@novell.com>
2948 * plugin-class.cpp (MoonlightTextBlockObject::Invoke):
2949 SetFontSource() now takes a Downloader argument rather than a DOB.
2951 2008-04-11 Andrew Jorgensen <ajorgensen@novell.com>
2953 * plugin-proxy.cpp: Allow the user to override the location of
2954 libmoonplugin by setting MOON_PLUGIN_DIR so that the test harness
2955 can run without installing first.
2957 2008-04-11 Larry Ewing <lewing@novell.com>
2959 * plugin.cpp (PluginXamlLoader::TryLoad): Allow controls to be
2960 toplevel elments, drop all surface contents on errors.
2962 Allows Kit 3d to start rendering something in the texture map
2965 2008-04-11 Michael Dominic K. <mdk@mdk.am>
2967 * plugin-class.cpp: Small debug hint also here when enums invalid.
2969 2008-04-10 Chris Toshok <toshok@ximian.com>
2971 * plugin-class.cpp (npvariant_is_dependency_object): no reason to
2972 duplicate the logic here - call npobject_is_dependency_object.
2974 2008-04-10 Jeffrey Stedfast <fejj@novell.com>
2976 * plugin-class.cpp: Cast DOB's to Downloaders when passing to
2979 2008-04-10 Chris Toshok <toshok@ximian.com>
2981 * plugin-class.cpp, plugin-class.h: use the same "Invalidate
2982 NULL's things out, while the dtor checks for NULL before calling
2983 NPN_ReleaseObject" pattern with event listener proxies.
2985 2008-04-09 Chris Toshok <toshok@ximian.com>
2987 * plugin.cpp, plugin.h: make PluginInstance::SetSource behave
2988 asynchronously for both #ref and normal url cases. Fixes bug
2991 2008-04-08 Jeffrey Stedfast <fejj@novell.com>
2993 * plugin.cpp (PluginXamlLoader::TryLoad): Print a little more
2994 useful info on error.
2996 2008-04-04 Jeffrey Stedfast <fejj@novell.com>
2998 * plugin-class.h (EventListenerProxy.dtor): Made virtual... not
2999 sure if this matters or not, but might as well be consistent.
3000 (MoonlightTimeSpan.dtor): Same.
3002 2008-04-04 Chris Toshok <toshok@ximian.com>
3004 * plugin-class.cpp, plugin-class.h: change our use of
3005 NPType->invalidate. Firefox docs say this is *only* called when
3006 the browser is shutting down the plugin instance. So, we
3007 shouldn't access fields that point to other NPObjects here. Just
3008 break links. All freeing should be done in the dtor instead,
3009 which most of the various ::Dispose methods have been renamed to.
3010 Also, don't call Dispose in the MoonlightObject dtor. Lastly,
3011 rename Dispose to Invalidate so we don't again mistake what it
3014 2008-04-03 Larry Ewing <lewing@novell.com>
3016 (PluginXamlLoader::TryLoad): if the parser has an unknown error
3017 code try the managed loader.
3019 2008-04-03 Larry Ewing <lewing@novell.com>
3021 * plugin.cpp (PluginXamlLoader::TryLoad): if we get a parser while
3022 loading set attach to a NULL toplevel.
3024 2008-04-02 Larry Ewing <lewing@novell.com>
3026 * plugin-class.cpp: check number of arguments on getHost throw the
3027 appropriate exception if there are arguments.
3029 2008-04-02 Larry Ewing <lewing@novell.com>
3031 * plugin-class.cpp: make sure the event name is valid when adding
3032 or removing, throw an exception if not.
3034 2008-04-02 Larry Ewing <lewing@novell.com>
3036 * plugin-class.cpp: start making the exceptions match the ms
3037 exceptions. Work around the id string until more is known about
3038 how we should deal with it.
3040 2008-04-02 Jeffrey Stedfast <fejj@novell.com>
3042 Fixes bug #375277 and maybe other crashers.
3044 * plugin-class.h (MoonlightScriptControlObject::.ctor): Initialize
3045 settings->control and content->control to 'this'.
3046 (MoonlightSettingsObject): Now has a pointer to its owning
3047 MoonlightScriptControlObject so we can protect against Firefox's
3048 aggressive destruction of still-referenced objects when you
3049 navigate away from a Moonlight page and/or close the browser when
3050 a scriptable object is still referenced. Yay Firefox!
3051 (MoonlightContentObject): Same.
3053 * plugin-class.cpp (MoonlightScriptControlObject::Dispose): Set
3054 settings->control to NULL before unreffing the settings
3055 NPObject. Same with content->control.
3056 (MoonlightContentObject::Dispose): If we have a pointer to our
3057 parent control, set control->content to NULL here.
3058 (MoonlightSettingsObject::Dispose): Same as
3059 MoonlightContentObject::Dispose().
3060 (MoonlightEventObjectObject::SetEventObject): Removed, just to be
3061 sure we never reuse these objects.
3062 (EventObjectCreateWrapper): Implement the equivalent of
3063 SetEventObject() here instead, since this is the only place that
3064 should EVER be calling it. Also makes it a lot simpler.
3066 2008-04-02 Larry Ewing <lewing@novell.com>
3068 * plugin-class.cpp: charposition not charnumber.
3070 2008-04-01 Chris Toshok <toshok@ximian.com>
3072 * plugin-class.cpp (MoonlightContentObject::Invoke): back out my
3073 SetSurface() stuff from here.
3075 2008-04-01 Jeffrey Stedfast <fejj@novell.com>
3077 * plugin-class.cpp: Implemented better type-checking. Fixes the
3078 crash mentioned in bug #375921.
3080 2008-04-01 Chris Toshok <toshok@ximian.com>
3082 * plugin-class.cpp (MoonlightContentObject::Invoke): in
3083 createFromXaml/createFromXamlDownloader, call dep->SetSurface()
3084 after we parse to make sure the thing knows what surface it
3087 2008-04-01 Jeffrey Stedfast <fejj@novell.com>
3089 * plugin-class.cpp (MoonlightContentObject::Invoke): Properly
3090 nul-terminate the text value.
3091 (MoonlightDownloaderObject::Invoke): Properly nul-terminate the
3092 text value returned here too.
3094 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3096 * plugin-class.cpp: Remove Type::NPOBJ, it's not needed.
3098 2008-03-31 Jeffrey Stedfast <fejj@novell.com>
3100 * plugin-class.cpp (moonlight_downloader_mapping): Got rid of
3101 second ResponseText item.
3102 (MoonlightDownloaderObject::GetProperty): nul-terminate the value
3103 gotten from downloader->GetResponseText() as javascript will use
3104 this string expecting that it is nul-terminated.
3106 2008-04-01 Fernando Herrera <fherrera@novell.com>
3109 * plugin-downloader.h: Support for live streams (not seekable).
3111 2008-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3113 * browser-mmsh.cpp: asf_header_parse: Use ASFParser::GetPacketSize instead
3114 of looking in internal fields. Delete parser and unref the source when
3117 2008-03-28 Fernando Herrera <fherrera@novell.com>
3121 * plugin-downloader.cpp:
3122 * plugin-downloader.h: Implement server seeking on the mms://
3125 2008-03-26 Andrew Jorgensen <ajorgensen@novell.com>
3127 * mono.cpp: Get correct path for moonlight.exe as well when
3128 enable-user-plugin=yes
3130 2008-03-26 Chris Toshok <toshok@ximian.com>
3132 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
3133 implement removeEventListener for named callbacks using the new
3134 EventObject::RemoveMatchingHandlers method, and a helper
3135 class (NamedProxyPredicate).
3137 * plugin-class.h: we need to make
3138 EventListenerProxy::proxy_listener_to_javascript public so
3139 NamedProxyPredicate can access it.
3141 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3143 * browser-mmsh.cpp: Updated according to API changes.
3145 2008-03-25 Andrew Jorgensen <ajorgensen@novell.com>
3147 * plugin-proxy.cpp: Load libraries relative to the location of
3148 libmoonloader.so if enable-user-plugin=yes
3149 * install.rdf.in: Basic install.rdf for plugin installation
3150 * Makefile.am: Create directory structure for RDF install method
3151 rather than XPInstall JS method
3153 2008-03-20 Jeffrey Stedfast <fejj@novell.com>
3155 * plugin-class.cpp (MoonlightContentObject::Invoke): Same.
3157 * plugin-downloader.cpp (p_downloader_mmsh_finished): Updated for
3158 Downloader API changes.
3160 2008-03-18 Andrew Jorgensen <ajorgensen@novell.com>
3162 * plugin-proxy.cpp: Push conditional swscale into user plugin code
3163 and remove avformat dependency
3164 * Makefile.am: Conditionally include swscale and don't include avformat
3165 in user plugin installer
3167 2008-03-17 Larry Ewing <lewing@novell.com>
3169 * plugin-class.cpp: more rough argument sanity checks.
3171 2008-03-17 Larry Ewing <lewing@novell.com>
3173 * plugin.cpp (PluginXamlLoader::TryLoad): add a quick check to
3174 avoid a crash. Better error handling on the way.
3176 * plugin-class.cpp (MoonlightCollectionObject::Invoke): do some
3177 very basic argument type checking.
3179 2008-03-16 Larry Ewing <lewing@novell.com>
3181 * plugin-class.cpp: make objects chain up to their parent class
3182 rather than simply returning false directly to make the logic
3183 clearer and to allow toplevel handling of tostring.
3185 2008-03-14 Larry Ewing <lewing@novell.com>
3187 * plugin-class.h, plugin-class.cpp: wrap all EventArg subclasses
3188 as dependencyobjects.
3190 * plugin.cpp: connect to the plugin onerror event.
3192 2008-03-14 Chris Toshok <toshok@ximian.com>
3194 * plugin-class.h, plugin-class.cpp: wrapped TimeSpan and Duration
3195 objects aren't actually values. they're references to the
3196 particular DependencyObject/Property we got them from, so doing
3199 var foo = storyboard.Duration; foo.seconds=5;
3201 updates the original storyboard's Duration property, not just the
3202 duration contained in the "foo" variable.
3204 2008-03-13 Chris Toshok <toshok@ximian.com>
3206 * plugin-class.cpp, plugin-class.h: fix up our toString support.
3208 Thu Mar 13 23:13:59 CET 2008 Paolo Molaro <lupus@ximian.com>
3210 * Makefile.am: don't overwrite binary files when installing the
3211 plugin (avoids crashes in the running browser).
3213 2008-03-13 Chris Toshok <toshok@ximian.com>
3215 * plugin-entry.cpp: fix backward compatibility of the plugin api.
3216 also, use the NPVERS_ defines for feature tests instead of our own
3217 set. Also, add NPN_Enumerate.
3219 2008-03-13 Andrew Jorgensen <ajorgensen@novell.com>
3221 * install.js.in: Change the install path so that the plugin
3222 should work in debian (iceweasel)
3224 2008-03-13 Chris Toshok <toshok@ximian.com>
3226 * moz-sdk/*: import the trunk firefox plugin headers.
3228 * plugin.cpp (PluginInstance::Initialize): fix the hack I needed
3229 due to xulrunner-1.8.10 headers not having NPNVSupportsWindowless.
3231 * plugin-class.h, plugin-class.cpp (MoonlightObjectType): add
3232 Enumerate, which just iterates over the mapping filling in the
3235 * Makefile.am: add dist-hook to copy the moz-sdk headers.
3237 * mono.cpp (vm_init): missed this STACK_DEBUG -> DEBUG change.
3239 2008-03-12 Sebastien Pouliot <sebastien@ximian.com>
3241 * plugin-downloader.cpp: Fix duplicate g_strdup on pd->uri.
3243 2008-03-12 Michael Dominic K. <mdk@mdk.am>
3245 * plugin-downloader.cpp: Adding an extra NULL check. Fixes the
3246 flowers-for-you.com.my website.
3248 2008-03-12 Miguel de Icaza <miguel@novell.com>
3250 * browser-mmsh.cpp (AsyncBrowserMmshResponse::MmsMetadataParse):
3251 Rewrote this routine to have a regular parser instead of splitting
3252 strings with g_strsplit, copes with commas inside metadata.
3254 Fernando mentioned that most of this code is no longer useful,
3255 except for a few flags.
3257 2008-03-11 Fernando Herrera <fherrera@novell.com>
3261 * plugin-downloader.cpp: Parse MMS Metadata packet. Get file size and
3262 asf_packet_size from the ASF header.
3264 2008-03-10 Michael Dominic K. <mdk@mdk.am>
3266 * plugin-class.cpp: Don't scream about the unsupported type when
3267 setting a property to NULL. Instead, pass NULL and let the
3268 SetValue do it's thing (ie. nullable handling). This fixes the
3269 Animation_CornerCases.htm.
3271 2008-03-08 Geoff Norton <gnorton@novell.com>
3273 * plugin.cpp: I suppose I'm one of these for real now.
3275 2008-03-08 Fernando Herrera <fherrera@novell.com>
3279 * plugin-downloader.cpp: Stop properly the mms download.
3281 2008-03-06 Chris Toshok <toshok@ximian.com>
3283 * plugin.cpp (PluginInstance::Initialize): make sure we look for
3284 the right framerate property name. the JS is specified using
3285 "framerate", but the plugin has to recognize "maxFramerate"
3287 (PluginInstance::CreateWindow): use the surface's timemanager.
3288 (PluginInstance::setMaxFrameRate): same.
3290 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
3292 * plugin-class.cpp, plugin-class.h: Make our Moonlight*EventArgs mirror the
3293 runtime *EventArgs Updated runtime event handling to receive an
3294 EventArgs* calldata instead of a gpointer. This allows us to create the
3295 correct Moonlight*EventArgs based on the actual type of the runtime
3296 *EventArgs, instead of making a decision based on the event name,
3297 obsoleting all the *_event_wrapper functions.
3298 * plugin-glue.cpp: Set the pdata field of the instance to NULL before
3299 deleting the plugin, this allows us to detect plugin usage during plugin
3300 destruction (we might cause destruction of EventObjects -> events are
3301 raised -> plugin tries to send those events to js -> crash)
3303 2008-03-05 Michael Dominic K. <mdk@mdk.am>
3305 * plugin-class.cpp: Making the plugin class use the new enum<->str code
3308 2008-03-03 Chris Toshok <toshok@ximian.com>
3310 * plugin.cpp (PluginInstance::EventHandle): add
3311 KeyPress/KeyRelease handling. there are some XXX's involing the
3312 call to gdk_keymap_translate_keyboard_state, but I have no test
3313 case at present to test this stuff against. Use at your own risk.
3315 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3317 * plugin-downloader.cpp: Don't call dl->NotifySize with the partial size of
3318 the file, should only be called with the final size of the file.
3320 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3322 * plugin.mdp: Updated.
3324 2008-02-28 Jeffrey Stedfast <fejj@novell.com>
3326 * browser-mmsh.cpp (AsyncBrowserMmshResponse::OnDataAvailable):
3327 'size' needs to be a uint32 so that the comparison is between 2
3328 uint32's rather than a uint32 and an int32.
3330 * browser-mmsh.h (class AsyncBrowserMmshResponse): Fixed a
3333 2008-02-28 Michael Dominic K. <mdk@mdk.am>
3335 * plugin/plugin-class.cpp: When getting property value try to resolve it
3336 to string if it's an enum. This way from js we ie. get:
3338 Arc.SweepDirection == "Counterclockwise"
3342 Arc.SweepDirection == 0 (enum int value).
3344 Fixes finally the OM_RemoveClearRemoveAt.htm test (with other collection
3347 2008-02-28 Fernando Herrera <fherrera@novell.com>
3352 * plugin-downloader.cpp:
3353 * plugin-downloader.h: Add initial mms over http support.
3355 2008-02-26 Chris Toshok <toshok@ximian.com>
3357 * plugin.cpp (PluginInstance::EventHandle): fix some x64 build
3359 (PluginInstance::InvalidateSurface): same.
3361 2008-02-26 Chris Toshok <toshok@ximian.com>
3363 * plugin-proxy.cpp: use RTLD_LAZY, not RTLD_NOW.
3365 * moonlight.h: more #include hackery to get the right members to
3366 be there for NPSetWindowCallbackStruct on X.
3368 * plugin.h (class PluginInstance): add our
3369 RenderSurface/InvalidateSurface methods.
3371 * plugin.cpp (PluginInstance::Initialize): initialize the
3372 windowless stuff if we need it and the browser supports it.
3373 (PluginInstance::RenderSurface): our render method - call
3375 (PluginInstance::InvalidateSurface): our invalidate method - call
3377 (PluginInstance::CreateWindow): set our invalidate/render funcs
3378 accordingly, and SetTrans on the surface (err, why?) if we're
3379 windowless, and only do the widget stuff if we aren't windowless.
3380 (PluginInstance::EventHandle): kind of gross, but fill in enough
3381 of the gdk events to fool the surface machinery. Currently
3382 missing are all key events, GdkDevice support for mouse events,
3383 and Expose event aggregation.
3385 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3387 * plugin/plugin-class.cpp: Throw js exception when object passed to
3388 Collection.Remove is NULL (instead of returning false). Fixes mostly
3389 OM_RemoveClearRemoveAt but still fails because of ArcSweep problem.
3391 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3393 * plugin/plugin-class.cpp: Throw js exception when Collection.Insert
3396 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3398 * plugin/plugin-class.cpp: Throw js exception when Collection.Add returns
3401 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3403 * plugin/plugin-class.cpp: Properly return int instead of void for
3406 2008-02-25 Chris Toshok <toshok@ximian.com>
3408 * plugin.cpp (PluginInstance::CreateWindow): use GetWidget instead
3411 2008-02-25 Chris Toshok <toshok@ximian.com>
3413 * plugin.cpp: add windowless creation stuff. move some code
3414 around, and put some in (!windowless) blocks.
3416 * plugin-entry.cpp (NP_Initialize): set handleEvent.
3418 * plugin-glue.cpp (NPP_GetValue): don't handle NeedsXEmbed here -
3419 let PluginInstance::GetValue do it.
3421 2008-02-22 Jackson Harper <jackson@ximian.com>
3423 * plugin-debug.cpp: mkdir and friends needs sys/stat.h on some
3426 2008-02-22 Michael Dominic K. <mdk@mdk.am>
3428 * plugin/plugin.cpp:
3429 * plugin/plugin.h: Add support for the cache-size reporting interface. The
3430 UI now reports cache size when running with
3431 MOONLIGHT_OVERRIDES="cache=show".
3433 2008-02-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3435 * plugin-class.cpp: Add a null check.
3436 * plugin-debug.cpp: Add a Save button to the Sources list, which will save
3437 every source file to a directory in /tmp.
3439 2008-02-21 Michael Dominic K. <mdk@mdk.am>
3441 * plugin/plugin.cpp: Small fix for table ("Properties") formatting so that
3442 it doesn't expand like crazy because of long URL's in sources.
3444 2008-02-20 Jeffrey Stedfast <fejj@novell.com>
3446 * plugin-class.cpp (MoonlightTextBlockObject::Invoke): The
3447 downloader argument is allowed to be null.
3449 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3451 * plugin.cpp, plugin.h, plugin-debug.cpp, plugin-debug.h: Add a 'Sources'
3452 entry to the plugin context menu, shows a list of all the files the
3453 plugin has loaded, with the ability to open the files.
3455 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3457 * plugin.mdp: Updated.
3459 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3461 * plugin-class.cpp: Fix IsVersionSupported according to tests.
3463 2008-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3465 * plugin.cpp, plugin-class.cpp, plugin.h: Add MaxFrameRate to the properties
3466 page, and parse windowless and framerate properties during
3467 initialization and store the values on the plugin instance, so that the
3468 property page can show the correct values.
3470 2008-02-15 Chris Toshok <toshok@ximian.com>
3472 * plugin-class.cpp (MoonlightStoryboardObject::Invoke): the seek
3473 method can take either an integer or a string representing a
3474 timespan. Fixes the JS errors I mentioned in bug #362380.
3476 2008-02-06 Jackson Harper <jackson@ximian.com>
3478 * plugin-class.cpp|h: Store all MoonlightDependencyObject classes
3479 in an array so that we can easily check if a type passed in from
3480 JS is actually a DO.
3481 - Add one check to verify that an object is a DO, I am sure we
3482 will need many more.
3484 2008-02-06 Fernando Herrera <fherrera@novell.com>
3486 * plugin-debug.cpp: set default size and scroll bars policy in the
3489 2008-02-05 Chris Toshok <toshok@ximian.com>
3491 * plugin.h, plugin.cpp: add a label to the properties dialog that
3492 shows the fps message.
3494 * plugin-debug.cpp (selection_changed): invalidate a large enough
3495 rectangle so that the selection disappears.
3497 2008-02-05 Chris Toshok <toshok@ximian.com>
3499 * Makefile.am (libmoonplugin_la_SOURCES): add plugin-debug.h/cpp
3501 * plugin-debug.h, plugin.cpp: for now, just a gtk treeview with a
3502 snapshot of the xaml hierarchy. selecting an item in the tree
3503 puts a rectangle around the element in the plugin.
3505 * plugin.cpp (plugin_show_menu): if debug is enabled, add the
3508 2008-02-05 Chris Toshok <toshok@ximian.com>
3510 * moonlight.h: don't #define DEBUG here. it's a config.h deal.
3512 2008-02-04 Jackson Harper <jackson@ximian.com>
3514 * plugin-class.cpp: Fix some of the parameter checking to match
3517 2008-01-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3519 * plugin-class.cpp, plugin-class.h: Implement toString method on
3520 MarkerReachedEventArgsObject.
3522 2008-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
3524 * plugin-class.cpp: Handle the case where js sets Timespan seconds using an
3527 2008-01-28 Andrew Jorgensen <ajorgensen@novell.com>
3529 * Makefile.am: added plugin-downloader.h to dist
3531 2008-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3533 * downloader.cpp, plugin-downloader.cpp, plugin-downloader.h: Renamed
3534 downloader.cpp to plugin-downloader.cpp and added a header file for it.
3535 Set downloader_shutdown to false upon initialization, makes aborting
3536 actually work. Save the PluginDownloader in the stream, so that we can
3537 inform the PluginDownloader when the stream is destroyed.
3538 * plugin.mdp, Makefile.am: Updated.
3539 * plugin.cpp: Include plugin-downloader.h and remove unnecessary method
3540 declarations. Inform the PluginDownloader when a stream is destroyed.
3541 * plugin-glue.cpp: Include plugin-downloader.h and remove unnecessary method
3544 2008-01-23 Chris Toshok <toshok@ximian.com>
3546 * plugin-class.cpp (EventListenerProxy::AddHandler): use the event
3547 id instead of the name for the destroyed event, and also don't try
3548 to add an event that doesn't exist for a given type.
3550 2008-10-11 Andrew Jorgensen <ajorgensen@novell.com>
3552 * plugin-proxy.cpp: Add conditionals for ffmpeg inclusion
3553 * Makefile.am: Respect ffmpeg inclusion in xpi install
3555 2008-01-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
3557 * plugin.mdp: Added.
3559 2008-01-09 Chris Toshok <toshok@ximian.com>
3561 * plugin-class.h, plugin-class.cpp: add two new wrapper types -
3562 one for StrokeCollection and the other for Stroke, so that both of
3563 them can implement their GetBounds and HitTest methods.
3565 2008-01-09 Chris Toshok <toshok@ximian.com>
3567 * plugin-class.h, plugin-class.cpp: a few changes with the
3568 MoonlightMouseEventArgsObject. It now wraps a MouseEventArgs*.
3569 Translate all the property accesses and method calls into
3570 accesses/calls on the actual MouseEventArgs, instead of having the
3571 code live here. Also, add STYLUSINFO handling to the
3572 EventObjectWrapper method.
3574 2008-01-09 Jeffrey Stedfast <fejj@novell.com>
3576 * plugin.cpp (Initialize): Use g_ascii_strcasecmp() so that we are
3577 not locale dependent.
3579 2008-01-04 Jeffrey Stedfast <fejj@novell.com>
3583 * plugin-class.cpp (EventListenerProxy::AddHandler): Add a handler
3584 for the destroyed event too so that we can clear our target_object
3586 (EventListenerProxy::on_target_object_destroyed): New callback to
3587 clear the target_object pointer when it gets destroyed.
3588 (EventListenerProxy::get_wrapper_for_event_name): Use
3589 g_ascii_strcasecmp() instead of g_strcasecmp().
3590 (EventListenerProxy::~EventProxyListener): Disconnect from the
3591 destroyed event and the other event if still hooked up.
3593 2008-01-03 Jeffrey Stedfast <fejj@novell.com>
3595 * plugin-class.cpp (_set_dependency_property_value): For
3596 non-object variants, we can easily get away with using a static
3597 string buffer rather than using dynamically allocated strings to
3598 hold our temp values.
3600 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3602 * plugin.cpp: PluginInstance::SetSource: don't check if we're setting the
3603 same source. Fixes #349592.
3605 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3607 * plugin-class.cpp: Don't crash if surface->GetTopLevel returns null. Fixes
3610 2007-12-20 Sebastien Pouliot <sebastien@ximian.com>
3612 * plugin-class.cpp|h: Add support for StylusPointCollection since
3613 it's a special case where a new method, AddStylusPoints, is
3614 introduced. Fix unit tests for StylusPointCollection but doesn't
3615 solve bugs #349596 and 349598 because we don't capture the mouse
3618 2007-12-20 Jb Evain <jbevain@novell.com>
3620 * plugin-class.cpp (MoonId_GetStylusPoints): return an
3621 empty StylusPointCollection instead of doing non-sense.
3623 2007-12-20 Jb Evain <jbevain@novell.com>
3625 * plugin-class.cpp: throw if createObject is called
3626 for something else than Downloader.
3628 2007-12-18 Sebastien Pouliot <sebastien@ximian.com>
3630 * plugin-class.cpp: The plugin handle Color as an integer (see js
3633 2007-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3635 * plugin-class.cpp: The part parameter of MediaElement::SetSource is the
3636 second parameter, fixes a crash when js calls SetSource. Also removed
3639 2007-12-17 Jb Evain <jbevain@novell.com>
3641 * plugin-class.cpp: return null instead of undefined
3642 on GetValue is the value is NULL. Fixes a lot of tests
3645 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
3647 * plugin.cpp (PluginInstance::CreateWindow): Set the FPS report
3649 (PluginInstance::Properties): Added FPS enable/disable properties.
3650 (PluginInstance::ReportFPS): Report the FPS via the browser's
3653 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
3655 * downloader.cpp (p_downloader_abort): Set pd->stream to NULL
3656 after destroying it.
3658 * plugin.cpp (PluginInstance::TryLoad): Added a comment that we
3659 should check for errors returned by NPN_GetURLNotify().
3660 (PluginInstance::UpdateSource): Same.
3661 (PluginInstance::UrlNotify): Removed a printf.
3663 2007-12-12 Jeffrey Stedfast <fejj@novell.com>
3665 Fixes toward bug #341853
3667 * downloader.cpp (p_downloader_send): Check the return code from
3668 NPN_GetURLNotify() as it will give us an error if the file doesn't
3671 * plugin.cpp (UrlNotify): Call Downloader::NotifyFailed() on
3674 2007-12-10 Chris Toshok <toshok@ximian.com>
3676 * plugin-class.h, plugin-class.cpp: more event changes. return
3677 the integer token for adding a handler, and change
3678 removeEventListener to accept either a string (unsupported at the
3679 moment) or integer second argument. This allows things like
3680 removeEventListener (..., 0) for removing the event handler that's
3683 Also, remove MoonlightEventListener{Type,Object} since we don't
3684 need to return a wrapped object from addEventListener any longer.
3686 2007-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3688 * plugin-class.cpp: Plug more leaks.
3690 2007-12-06 Jeffrey Stedfast <fejj@novell.com>
3692 * plugin-class.cpp (MoonlightCollectionObject::Invoke):
3693 Implemented GetItemByName for MediaAttributeCollections.
3695 2007-12-06 Chris Toshok <toshok@ximian.com>
3697 * plugin-class.h, plugin-class.cpp: a few changes. abstract out
3698 all the event-as-property code, so we just add events to objects
3699 as additional properties in their mapping, and the MoonlightObject
3700 code handles it all for us.
3702 2007-12-05 Chris Toshok <toshok@ximian.com>
3704 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
3707 2007-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
3709 * plugin-class.cpp: Rename DependencyObject::parent/SetParent/GetParent
3711 to logical_parent/SetLogicalParent/GetLogicalParent.
3713 2007-12-04 Jb Evain <jbevain@novell.com>
3715 * plugin-class.h: add the definitions of MoonlightStylusInfoType
3716 and MoonlightStylusInfoObject.
3718 * plugin-class.cpp: implement MoonlightStylusInfoType and
3719 MoonlightStylusInfoObject. Add getStylusInfo() and getStylusPoints()
3720 methods on MouseEventArgs.
3722 2007-12-04 Jackson Harper <jackson@ximian.com>
3724 * plugin-class.cpp: Map in IsLoaded, so HasProperty will return
3727 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
3729 * plugin.cpp (Properties): Added more runtime debug options.
3731 2007-11-29 Jeffrey Stedfast <fejj@novell.com>
3733 * plugin.cpp (PluginInstance::Properties): Added runtime ability
3734 to enable show-expose regions.
3736 2007-11-20 Jb Evain <jbevain@novell.com>
3738 * plugin-class.cpp: rename INVOKE_EXCEPTION to
3739 THROW_JS_EXCEPTION. Throw more exceptions where needed.
3741 2007-11-20 Jb Evain <jbevain@novell.com>
3743 * plugin-class.cpp: throw JS exceptions where SL does.
3745 2007-11-20 Jb Evain <jbevain@novell.com>
3747 * plugin-class.cpp( MoonlightContentObject::Invoke):
3748 return null instead of undefined, like SL 1.0 does.
3750 2007-11-20 Jb Evain <jbevain@novell.com>
3752 * plugin-class.h (html_get_element_text): add a function
3753 to get the `innerText` of an html element from its id.
3754 * plugin-class.cpp (html_get_element_text): implement it.
3755 * plugin.cpp (PluginInstance::UpdateSourceByReference):
3756 use html_get_element_text to get the inline xaml.
3759 2007-11-16 Chris Toshok <toshok@ximian.com>
3761 * plugin-class.cpp, plugin-class.h: switch
3762 hasProperty,getProperty,setProperty,hasMethod,invoke to object
3763 methods instead of vtable entries on the type. Also, put the
3764 name->id mapping in MoonlightObject's vtable entries, before the
3765 call to the virtual object methods (so now we only do name lookups
3766 there instead of all over the place) Also, aggregate mappings for
3767 all classes up to the root in the hierarchy when we initialize the
3768 type. This means only 1 bsearch per LookupName, instead of 1 per
3771 2007-11-15 Jeffrey Stedfast <fejj@novell.com>
3773 * plugin-class.cpp: Alphabetize all of the mapping tables so that
3774 bsearch works properly.
3776 2007-11-14 Chris Toshok <toshok@ximian.com>
3778 * plugin-class.h, plugin-class.cpp: substantially rework the way
3779 names are looked up. remove 90% of the has_method/has_property
3780 code, and move all the invoke/get_property/set_property to using
3781 id's for their work instead of string comparisons. also make the
3782 string lookups case insensitive. I don't much like the way
3783 chaining is done (check out MoonlightObjectType::SetBase and
3784 MoonlightObjectType::LookupName), but it's working for now, and
3785 should be substantially faster (and easier to maintain) this way
3786 than the naive conversion to case insensitivity.
3788 2007-11-14 Jeffrey Stedfast <fejj@novell.com>
3790 Fixes for the Matrix demo.
3792 * plugin-class.cpp (EventListenerProxy): Don't leak the NPObject.
3793 (proxy_listener_to_javascript): Updated printf debugging.
3794 (moonlight_content_invoke): Use the second argument
3795 (create_namescope) and pass that along to xaml_create_from_str().
3797 2007-11-14 Andrew Jorgensen <ajorgensen@novell.com>
3799 * Makefile.am: strip the ffmpeg libs for the user plugin but do not
3800 strip libmoon and libmono, will either add an option to strip those libs
3801 later or just make that part of the release process.
3802 * install.js.in: Cleaned up error handling and added a call to
3803 refreshPlugins(), should make it so nobody has to restart firefox
3805 2007-11-13 Andrew Jorgensen <ajorgensen@novell.com>
3807 * Makefile.am: Use the mono_ddldir rather than assuming /usr/lib and
3808 pick up any dlls in the gac that are for the 2.1 profile so that we
3809 don't miss any that should have been symlinked in /usr/lib/mono/2.1 but
3810 for some reason were not.
3812 2007-11-12 Andrew Jorgensen <ajorgensen@novell.com>
3814 * Makefile.am: Add moon.config to EXTRA_DIST
3816 2007-11-12 Andrew Jorgensen <ajorgensen@novell.com>
3818 * install.js.in: Just add moonlight directory, not individual files.
3819 * mono.cpp: Get moonlight.exe from home dir plugin path.
3820 * plugin-proxy.cpp: dlopen libmono and set it's dirs.
3821 * Makefile.am: Build out the full directory structure for the user
3822 plugin and zip that.
3823 * moon.config: Installed as $sysconfdir/mono/config to tell mono to
3824 use the already dlopened libmoon.so.
3826 2007-11-09 Sebastien Pouliot <sebastien@ximian.com>
3828 * plugin.cpp: Fix Moonlight URL (#339929) since it didn't work.
3830 2007-11-09 Jb Evain <jbevain@novell.com>
3832 * browser-http.cpp|h: make browser_http_request_get_async_response
3836 2007-11-08 Miguel de Icaza <miguel@novell.com>
3838 * plugin.cpp (PluginInstance::Properties): Spice this bad boy up.
3839 We now can get some info about a XAML surface.
3841 2007-11-08 Jeffrey Stedfast <fejj@novell.com>
3843 * plugin.cpp (plugin_instance_get_surface): New function needed by
3845 (TryLoad): Removed an unnecessary g_assert() (the code handles the
3846 error case properly).
3848 2007-11-07 Jb Evain <jbevain@novell.com>
3850 * browser-http.cpp|h: implement a GetStatus method for
3851 BrowserHttpResponse.
3853 2007-11-06 Miguel de Icaza <miguel@novell.com>
3855 * plugin.cpp (string_to_js): rename from escape_quotes, this helps
3856 because some error messages being thrown from managed code contain
3857 newlines (Sudoku, see #325336).
3859 2007-11-05 Chris Toshok <toshok@ximian.com>
3861 * plugin-class.cpp (moonlight_content_invoke): don't crash if the
3862 surface hasn't been attached (if we haven't finished loading the
3865 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3867 * plugin.cpp: Replace PLUGIN_OURVERSION with VERSION (from config.h)
3868 * moonlight.h: Put the version in the description string for the sake
3871 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3873 * install.js.in: Get the version and the target CPU from configure and
3874 do some error checking, including checking that the platform matches
3876 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3878 * Makefile.am: Apparently $(builddir) is a newer autotools feature not
3879 available on SuSE 10.1 so we'll just not use it.
3881 2007-11-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3883 * downloader.cpp: Don't keep a ref to the Downloader, it causes a circular
3886 2007-10-31 Andrew Jorgensen <ajorgensen@novell.com>
3888 * Makefile.am: Don't link in cairo, pixman, or anything else that we
3889 don't need to libmoonplugin
3891 2007-10-29 Andrew Jorgensen <ajorgensen@novell.com>
3893 * install.js, plugin-proxy.cpp, Makefile.am: Changes to include ffmpeg
3894 libs in the XPI package
3896 2007-10-27 Jackson Harper <jackson@ximian.com>
3898 * plugin-class.cpp: Make onError work.
3900 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3902 * plugin-class.cpp, plugin-class.h: Implement emission of MarkerReached
3905 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3907 * mono.cpp: Enable vm stacktraces after mono has been loaded.
3909 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3911 * downloader.cpp: Ref/unref the downloader.
3913 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3915 * plugin-class.h: NULL-initialize a variable, fixing a crash.
3917 2007-10-25 Jackson Harper <jackson@ximian.com>
3920 * plugin-class.cpp: Add the onError event to the content object.
3922 2007-10-25 Jackson Harper <jackson@ximian.com>
3924 * plugin-class.cpp: Fix function name.
3926 2007-10-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3928 * plugin-class.cpp: Unref the event object even though the plugin is
3931 2007-10-24 Jb Evain <jbevain@novell.com>
3933 * browser-http.cpp|h: work on asynchronous requests.
3935 2007-10-23 Andrew Jorgensen <ajorgensen@novell.com>
3937 * install.js: Install the libraries under ~/.mozilla/plugins/moonlight
3938 so that they are not loaded by mozilla
3939 * moonlight.h: Don't define PLUGIN_INSTALL unless it is not defined
3940 * plugin-proxy.cpp: dlopen libmoon.so from the user's
3941 plugins/moonlight directory if we are building the user plugin
3942 * Makefile.am: Use the PLUGIN_INSTALL flag to control building of the
3945 2007-10-23 Jb Evain <jbevain@novell.com>
3947 * browser-http.cpp|h: Add support for Abort and SetBody.
3949 2007-10-22 Jb Evain <jbevain@novell.com>
3951 * browser-http.cpp: add browser_http_response_destroy and
3952 browser_http_sync_response_read.
3954 2007-10-22 Jb Evain <jbevain@novell.com>
3956 * browser-http.cpp|h (SyncBrowserHttpRequest::Read):
3957 do read the entire input stream even if it's a buffered
3960 2007-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3962 * plugin-class.cpp: If we're leaking NPObjects make sure we don't crash in
3963 invalidate, since FF will call invalidate long after shutting down
3966 2007-10-21 Jb Evain <jbevain@novell.com>
3968 * browser-http.cpp|h: add the files where the unmanaged
3969 implementation of BrowserHttpRequest will live.
3971 * Makefile.am: add them to the build.
3973 2007-10-18 Chris Toshok <toshok@ximian.com>
3975 * plugin-class.cpp (moonlight_dependency_object_invoke): make the
3976 debug "printf" method its own method, instead of a hack on
3978 (MoonlightEventObjectObject::Dispose): remove the wrapped object
3980 (MoonlightEventObjectObject::SetEventObject): update the cache.
3981 (EventObjectCreateWrapper): check the cache before creating a new
3984 * debug.js: convert from
3985 printf_proxy.setValue ("printf", message);
3987 printf_proxy.printf (message);
3989 * plugin.cpp, plugin.h: add {Add,Remove,Lookup}WrappedObject
3990 methods to cache the JS objects we use for a given EventObject*.
3992 2007-10-17 Chris Toshok <toshok@ximian.com>
3994 * plugin.cpp (PluginXamlLoader::TryLoad): use ->Attach instead of
3995 surface_attach, and add a comment about element->unref().
3997 2007-10-16 Jb Evain <jbevain@novell.com>
3999 * plugin.cpp: add plugin_instance_get_browser_runtime_settings.
4001 2007-10-16 Jb Evain <jbevain@novell.com>
4003 * moonlight.cs: Keep track of all plugin unload callbacks.
4004 Don't use Hashtable and refactor some code.
4006 2007-10-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4008 * plugin.cpp, plugin-proxy.cpp: Remove some const char/char mismatch
4010 * plugin-glue.cpp: Fix some const char/char mismatch warnings.
4012 2007-10-10 Chris Toshok <toshok@ximian.com>
4014 * plugin-class.cpp (EventListenerProxy::~EventListenerProxy):
4015 don't NPN_ReleaseObject the callback. the browser does this for
4018 2007-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4020 * plugin.cpp: Fix e-mail.
4022 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4024 * Makefile.am: Can't use the -MM (fail if patterns not matched) because it
4027 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4029 * Makefile.am: Make zip fail if one of the files is not found
4031 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4033 * Makefile.am: Build the firefox xpi plugin installer (unsigned)
4034 * install.js: First draft install script for xpi
4036 2007-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
4038 * TODO: Update, fullScreen is now implemented.
4040 2007-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4042 * plugin.cpp: Set the downloader context of the surface.
4043 * downloader.cpp: Ref/unref the downloader we store. Get the context stored
4044 in the downloader if possible, and use it to get the plugin instance.
4045 * plugin-class.cpp: Use the brand new PluginInstance::CreateDownloader, and
4046 provide xaml loaders for the xaml_create_from* methods.
4047 * plugin.h: Add a CreateDownloader method.
4049 2007-10-04 Zoltan Varga <vargaz@gmail.com>
4051 * plugin.cpp (LoadUrl): New method to download stuff synchronously using the browser.
4052 (plugin_instance_load_url): C wrapper for the above.
4053 (ReportException): Fix a leak.
4055 2007-10-03 Chris Toshok <toshok@ximian.com>
4057 * moonlight.h: need to wrap the renamed symbols in an extern "C"
4060 2007-10-03 Chris Toshok <toshok@ximian.com>
4062 * moonlight.h, plugin-entry.cpp, plugin-proxy.cpp: if we're using
4063 libmoonloader.so, we need to rename the 4 symbols we proxy in
4064 plugin-entry.cpp, and load them up via our mangled names in
4065 plugin-proxy.cpp. This is so mozilla doesn't try to load
4066 libmoonplugin.so as a plugin itself. It should only load
4067 libmoonloader.so. Also, add code in plugin-proxy.cpp to handle
4068 the case where the .so lives in ~/.mozilla/plugins. This requires
4069 #define PLUGIN_INSTALL 1 to be used, so we should figure out how
4070 to build with that when building the XPI.
4072 2007-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4074 * plugin.cpp, plugin.h: Added SetPageURL, updates the Surface' source
4075 location to the url of the current page.
4077 2007-09-30 Zoltan Varga <vargaz@gmail.com>
4079 * plugin.cpp (ReportException): Handle multiple calls correctly.
4081 2007-09-28 Chris Toshok <toshok@ximian.com>
4083 * Makefile.am: wrap moonlight.exe stuff in "if
4084 INCLUDE_MONO_RUNTIME" where necessary.
4086 2007-09-28 Chris Toshok <toshok@ximian.com>
4088 * moonlight.h (INCLUDE_MONO_RUNTIME): remove #define from here.
4089 it's now a configure arg (and the define lives in config.h).
4091 2007-09-28 Zoltan Varga <vargaz@gmail.com>
4093 * plugin.cpp (UrlNotify): Add some debug messages here.
4095 * plugin.cpp (ReportException): New helper function to display exception details
4096 using dynamic html above the plugin frame.
4098 2007-09-27 Jeffrey Stedfast <fejj@novell.com>
4100 * plugin-glue.cpp (NPP_Initialize): Call runtime_init() with
4101 RUNTIME_INIT_BROWSER.
4103 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4105 * plugin.cpp: Properly release a MoonlightObject.
4107 2007-09-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
4109 * plugin.cpp: PluginInstance::UrlNotify: delete the StreamNotify when we're
4110 done with it. Added plugin_xaml_loader_from_str.
4111 * plugin-class.cpp: moonlight_scriptable_control_invoke: unref the
4112 Downloader we create once the object wrapper has it. Move implementation
4113 of MoonlightEventObjectObject::SetEventObject here.
4114 * plugin.h: StreamNotify: ref the DependencyObject we get, and unref on
4115 destruction. Added plugin_xaml_loader_from_str.
4116 * plugin-class.h: Move implementation of
4117 MoonlightEventObjectObject::SetEventObject to the cpp file.
4119 2007-09-23 Jb Evain <jbevain@novell.com>
4121 * plugin.cpp: Pride sin, add my name to the contributors.
4123 2007-09-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4125 * plugin.cpp, plugin.h: Add a plugin_unload_callback to PluginInstance, and
4126 call it in the dtor.
4127 * moonlight.cs: Added UnloadDomain: unloads the domain that was loaded for a
4128 specific plugin, and set the corresponding native callback. Keep a hash
4129 table of all created domains so that we know which domain to unload,
4130 Delete some dead code (DisposeXamlLoader, ~Loader, Dispose)
4132 2007-09-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4134 * plugin.cpp: If an assembly already has been downloaded once, don't try to
4135 reload the xaml (otherwise might cause a loop if loading the xaml failed
4136 due to a reason other than that the assembly wasn't already downloaded).
4137 Added PluginXamlLoader::LoadVM. PluginXamlLoader::TryLoad: don't call
4138 into the vm here, since it might not be loaded yet. Move implementation
4139 of InsertMapping, CreateElement and SetAttribute to XamlLoader.
4140 InitializeLoader: don't create a managed loader if the vm hasn't been
4142 * plugin.h: Move implementation of InsertMapping, CreateElement and
4143 SetAttribute to XamlLoader.
4144 * plugin-class.h: Remove unused function declaration.
4145 * mono.cpp, moon-mono.h: Remove all managed methods except moon_load_xaml,
4146 which sets the methods as callbacks on the xaml loader with delegates
4147 now. Guard against loading the vm twice.
4148 * moonlight.cs: Moved code to agclr, just kept a simple stub here that
4149 creates the new AppDomain.
4150 * plugin-glue.cpp: Don't initialize the vm when the plugin is initialized,
4151 it's initialized on demand.
4153 2007-09-19 Zoltan Varga <vargaz@gmail.com>
4155 * plugin.cpp (plugin_menu_about): Make the close button work on some gtk versions.
4157 2007-09-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4159 * plugin.cpp: Remove a printf.
4160 * plugin-class.cpp, plugin-class.h: Apparently invalidate isn't always
4161 called for our MoonlightObjects (though deallocate is). Create a Dispose
4162 method that does what invalidate did (and call it from Invalidate), and
4163 keep track if it has been called or not (allows deallocate to call it if
4164 invalidate wasn't called by mozilla). Make Dispose virtual so that the
4165 base deallocator can call it for all derived classes (which also means
4166 that we only need the base invalidate method), and add a virtual
4167 destructor so that the base deallocator can also delete the object (and
4168 remove all other *_deallocator methods). proxy_listener_to_javascript:
4169 release objects at the end of the method.
4171 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4173 * plugin.cpp, plugin.h, moonlight.cs: Move callbacks from PluginXamlLoader
4176 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4178 * downloader.cpp: Removed warning.
4179 * plugin.cpp: Delete the current xaml_loader if we create a new one.
4181 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4185 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4187 [Removed mono dependency for 1.0 moonlight applications.
4188 We now have a native [Plugin]XamlLoader that is the native counterpart of the
4189 managed Loader object, the native loader handles xaml loading when the
4190 mono runtime isn't loaded.]
4192 * plugin.cpp, plugin.h: Added PluginXamlLoader that can forward calls into
4193 the managed loader if the mono runtime is loaded.
4194 * plugin-class.cpp: isVersionSupported: if built without mono runtime
4195 support, we only support 1.0 applications. Update according to API
4197 * moonlight.h, mono.cpp, moon-mono.h: Update according to API change.
4198 * moonlight.cs: Update according to API change. Added Hosting.base_unref and
4199 unref a few objects.
4200 * plugin-glue.cpp: Don't initialize the mono runtime for 1.0 applications.
4202 2007-09-09 Chris Toshok <toshok@ximian.com>
4204 * plugin-class.cpp (moonlight_content_invoke): implement
4205 content.createFromXamlDownloader.
4207 Thu Sep 6 16:19:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
4209 * mono.cpp, moon-mono.h, plugin.cpp, plugin.h: correct use of mono
4210 objects: they can't be stored in unmanaged memory.
4212 Thu Sep 6 15:22:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
4214 * mono.cpp, moon-mono.h: cleanup of some code and localized the mono
4217 2007-09-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4219 * plugin-class.cpp: Added some special debug code, enabling basic printf
4220 functionality from javascript code. No need to synchronize console
4221 output with firebug output anymore.
4222 * debug.js: Added, a printf function for javascript, specially crafted for
4225 2007-08-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4227 * plugin.cpp: Get the actual size from the surface.
4229 2007-08-31 Michael Hutchinson <m.j.hutchinson@gmail.com>
4231 * plugin.cpp: Fix pointer cast for 64-bit arch.
4233 2007-08-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4235 * downloader.cpp: Added downloader_destroy.
4236 * plugin-class.cpp, plugin-class.h: Add plugin_destroy_classes, and remove a
4237 duplicate creation of MoonlightPointClass.
4238 * plugin-glue.cpp: Try shutting down everything correctly, if it can be
4239 shutdown, if not, don't initialize twice (vm and gtk).
4241 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4243 * plugin-class.cpp: Javascript expects the sender of a FullScreenChange
4244 event to be the toplevel canvas, so when the Surface emits this event,
4245 change the sender to the toplevel canvas.
4247 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4249 * plugin.cpp: Don't delete the surface, unref it.
4250 * plugin-class.cpp, plugin-class.h: Create a MoonlightEventObject* and make
4251 MoonlightDependencyObject* inherit from it. Change all event usage to
4252 the new class, enables events for objects that aren't DependencyObjects
4253 (but are EventObjects, such as Surface). Implement FullScreen support in
4254 the plugin. Remove the dob field from MoonlightDependencyObject, the
4255 MoonlightEventObject has an eo field that fits the purpose, and
4256 implement a MoonlightDependencyObject.GetDependencyObject () that does
4257 what dob did earlier (and change all usages).
4259 2007-08-24 Jackson Harper <jackson@ximian.com>
4261 * plugin-class.cpp|h: Add a new EventListenerObject that we can
4262 return from addEventListener.
4263 - Implement removeEventListener.
4265 2007-08-24 Jackson Harper <jackson@ximian.com>
4267 * plugin-class.cpp|h: Now that getPosition works as intended, we
4268 don't need to store the position as an NPObject on the
4270 - Eliminate the variant_to_value so that we don't need to do a
4271 bunch of extra casting.
4273 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4275 * plugin-class.cpp: mouse_event_invoke (getPosition):
4276 use the argument to calculate the position if provided.
4278 2007-08-23 Jackson Harper <jackson@ximian.com>
4280 * plugin-class.cpp: We can now hookup to the resize event.
4282 2007-08-23 Jb Evain <jbevain@novell.com>
4284 * mono.cpp (vm_init): properly initialize the new debugging
4287 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4289 * plugin-class.cpp|h: Duration and TimeSpan's seconds property
4290 is a double, so treat is as such. Add moonlight type information
4291 to MoonlightObject (and derived classes), so that the marshalling
4292 knows how to treat them when they come back from js land.
4293 _set_dependency_property_value: handle values coming from js land
4294 correctly, according to their moonlight type.
4296 2007-08-23 Jb Evain <jbevain@novell.com>
4298 * mono.cpp (vm_init): use new method name to initialize
4301 2007-08-23 Jb Evain <jbevain@novell.com>
4303 * Makefile.am: use -pkg:agmonosilver to reference agmono.dll
4305 2007-08-17 Chris Toshok <toshok@ximian.com>
4307 * plugin-class.cpp|h: add a TimeSpan wrapper object.
4309 2007-08-17 Jb Evain <jbevain@novell.com>
4311 * mono.cpp (vm_init): small refactoring to get MonoMethods.
4313 2007-08-17 Chris Toshok <toshok@ximian.com>
4315 * plugin-class.cpp (moonlight_content_has/get/set_property): stub
4316 the onFullScreenChange property, to just warn us about the
4317 unimplemented functionality.
4319 2007-08-17 Jackson Harper <jackson@ximian.com>
4321 * plugin-class.cpp|h: Add a duration object that is exposed to the
4323 - Fix the value_to_variant to handle durations, rects and points.
4325 2007-08-17 Chris Toshok <toshok@ximian.com>
4327 * plugin-class.cpp (moonlight_dependency_object_invoke): add
4328 toString method for DependencyObjects, which just returns the type
4331 2007-08-17 Jackson Harper <jackson@ximian.com>
4333 * plugin-class.cpp: Properties are allowed to be null, so we still
4334 return true if the value is null.
4336 2007-08-17 Jackson Harper <jackson@ximian.com>
4338 * plugin-class.cpp: Add the Root property to the content
4339 object. This just returns the top element.
4341 2007-08-17 Jb Evain <jbevain@novell.com>
4343 * Makefile.am: use smcs to compile moonlight.exe
4344 * mono.cpp (vm_init): force the use of the moonlight profile
4347 2007-08-16 Jackson Harper <jackson@ximian.com>
4350 * downloader.cpp: Remove my downloader event code, these are
4351 raised elsewhere (they were hidden behind another bug yesterday).
4353 2007-08-16 Jackson Harper <jackson@ximian.com>
4355 * plugin-class.cpp: Fix cut&paste error that was preventing
4356 GetValue from working (get value only needs one arg).
4358 2007-08-16 Jackson Harper <jackson@ximian.com>
4360 * plugin-class.cpp: Add removeAt method to collections.
4362 2007-08-15 Jackson Harper <jackson@ximian.com>
4364 * plugin-class.cpp: Implement ctrl/shift for mouse and keyboard
4365 events. I didn't use a shared base class, because the
4366 duplicated code is significantly less than the boilerplate code
4369 2007-08-15 Jackson Harper <jackson@ximian.com>
4371 * plugin-class.h|cpp: Add support for keyboard arguments in the
4372 keyup/keydown events. TODO: Still need to implement shift and
4373 control, ideally, in a base class for mouse and keyboard events.
4375 2007-08-15 Jackson Harper <jackson@ximian.com>
4378 * downloader.cpp: Raise downloading events.
4380 2007-08-13 Jackson Harper <jackson@ximian.com>
4382 * plugin-class.cpp: findName should only look in the dependency
4385 2007-08-13 Jackson Harper <jackson@ximian.com>
4387 * plugin-class.cpp: For dependency object strings don't return
4388 null, just return an empty string.
4390 2007-08-11 Miguel de Icaza <miguel@novell.com>
4392 * moonlight.cs: Use the new Appdomain helper methods too.
4394 Use Ansi here because we only run on Linux not on
4395 Windows and the Auto API is gone from 2.1
4397 * moonligth.cs: Use the new helper method from agmono instead of
4398 duplicating code here.
4400 2007-08-07 Jackson Harper <jackson@ximian.com>
4402 * moonlight.cs: Add another system library to the do-not-download
4405 2007-08-06 Jackson Harper <jackson@ximian.com>
4407 * plugin-class.cpp: We don't need to explicitly free the value
4408 because the dtor will for us.
4410 2007-08-06 Jackson Harper <jackson@ximian.com>
4412 * plugin-class.cpp|h: Add functionality for detaching events and
4413 for releasing object references.
4414 - When looking up on the window object, do not release it. It
4415 doesn't need to be released because it is never retained.
4416 - Add a new function for creating a browser alert message.
4418 2007-08-03 Chris Toshok <toshok@ximian.com>
4420 * plugin-class.cpp (moonlight_downloader_*): add
4421 has_property/get_property methods, for the "responseText"
4422 property. not sure if getResponseText() is still around, but the
4423 property definitely is in use by silverlight pad.
4425 2007-08-03 Jackson Harper <jackson@ximian.com>
4427 * plugin-class.h|cpp: Add support for mouse events, pass all the
4428 info needed by HtmlEventArgs back in the callback.
4429 - Don't return null or void objects from invoke or get property.
4431 2007-08-03 Jackson Harper <jackson@ximian.com>
4433 * moonlight.cs: Dont download all the system libraries.
4435 2007-08-03 Jackson Harper <jackson@ximian.com>
4437 * plugin-class.h|cpp: Add support for attaching properties.
4439 2007-08-02 Chris Toshok <toshok@ximian.com>
4441 * plugin-class.cpp (moonlight_content_invoke): createFromXaml
4442 doesn't create a control object - it parses the xaml you pass in
4443 and returns the root element, so it can be used for any xaml
4446 * plugin.h, plugin.cpp: add plugin_instance_get_init_params for
4447 use in WebApplication.StartupArgs.
4449 2007-07-29 Chris Toshok <toshok@ximian.com>
4451 * moonlight.h: track the 1.1 refresh changes.
4453 2007-07-25 Chris Toshok <toshok@ximian.com>
4455 * plugin-class.cpp (moonlight_dependency_object_invoke): implement
4456 "getParent" correctly - it can return NULL.
4458 2007-07-25 Chris Toshok <toshok@ximian.com>
4460 * plugin-class.h: implement scriptable events (adding and emitting
4463 2007-07-24 Jackson Harper <jackson@ximian.com>
4465 * plugin-class.cpp|h: Add function to invoke methods on
4466 htmlobjects from unmanaged code.
4468 2007-07-24 Chris Toshok <toshok@ximian.com>
4470 * plugin.cpp (PluginInstance::setBackground): implement.
4471 (PluginInstance::CreateWindow): if our args contained a background
4472 color, set the surface's background.
4474 2007-07-24 Jackson Harper <jackson@ximian.com>
4476 * plugin-class.cpp: Move the window release up, prevents random
4477 crashing in firefox.
4479 2007-07-24 Chris Toshok <toshok@ximian.com>
4481 * plugin-class.h, plugin-class.cpp: add wrapper classes for
4482 TextBlocks and ImageBrushes.
4484 2007-07-24 Jackson Harper <jackson@ximian.com>
4486 * plugin-class.cpp: Implement variants to value on objects. TODO,
4487 add a method to release those objects.
4489 2007-07-24 Chris Toshok <toshok@ximian.com>
4491 * plugin-class.h, plugin-class.cpp: add a wrapper class for
4492 Images, which implements SetSource. also add SetSource handling
4493 for the MediaElement wrapper.
4495 * moonlight.cs: rework event hookup so that if we fail to hookup
4496 with C#, we assume it's a JS event. hook it up via the
4497 EventListenerProxy stuff.
4499 * plugin.h, plugin.cpp: MoonlightControl -> MoonlightScriptable
4501 * plugin-class.h, plugin-class.cpp:
4503 1. rename MoonlightControl* to MoonlightScriptableControl* to
4504 distinguish it from the new MoonlightControl, which is a wrapper
4505 for our Control class. factor out the _set_dependency_property_value
4507 2. add "getParent", "setValue", and "getValue" methods to the
4508 dependencyobject wrapper.
4510 3. Add a ctor for EventListenerProxy which just takes the callback
4511 name for use in hooking up js events from the parser.
4513 2007-07-24 Jackson Harper <jackson@ximian.com>
4515 * plugin.h|cpp: Add a getter for the plugin instance
4516 * plugin-class.h|cpp: Property get/setters for html objects.
4518 2007-07-23 Chris Toshok <toshok@ximian.com>
4520 * plugin-class.h, plugin-class.cpp: include error.h, and start out
4521 some error event args wrapping stuff.
4523 2007-07-23 Miguel de Icaza <miguel@novell.com>
4525 * plugin.cpp (PluginInstance): track the timers on a linked list
4528 (~PluginInstance): Remove all the timers for this plugin on
4531 (plugin_html_timer_timeout_add, plugin_html_timer_timeout_stop):
4532 Move these routines here and track all the timers created.
4534 * moonlight.cs: Use the type from agmono instead of agclr
4536 2007-07-21 Chris Toshok <toshok@ximian.com>
4538 * plugin-class.cpp (variant_to_value): fix this such that it
4539 doesn't crash due to c++'s not using a copy ctor when you do "foo
4540 = Value()". the first of the changes are fallout from this.
4542 2007-07-20 Miguel de Icaza <miguel@novell.com>
4544 * Fix a memory leak.
4546 2007-07-19 Chris Toshok <toshok@ximian.com>
4548 * plugin-class.h, plugin-class.cpp: factor out the
4549 EventListenerProxy stuff into a separate class.
4551 2007-07-19 Chris Toshok <toshok@ximian.com>
4553 * plugin-class.cpp (moonlight_control_get_property): Retain the
4554 settings/content objects before returning them. fixes crash in
4557 2007-07-19 Chris Toshok <toshok@ximian.com>
4559 * plugin.h, plugin.cpp: add getBrowserInformation call, useful for
4560 populating the managed BrowserInformation object. need to flesh
4561 out how to get the other info. userAgent is easy.
4563 also, in plugin.cpp, only invoke is onLoad handler if
4564 vm_loader_try doesn't return a missing file. This fixes the
4565 ordering problem in the silverlight chess demo (where we were
4566 accessing JScriptPlayer before it was created).
4568 2007-07-19 Chris Toshok <toshok@ximian.com>
4570 * plugin-class.h: add some scriptable object event stuff.
4572 * plugin-class.cpp: a couple of things.
4574 1) fix the _invalidate and _deallocate methods. _invalidate
4575 shouldn't release objects. and _deallocate can now call delete
4576 again, so we don't leak all our wrapper objects.
4578 2) add some initial scriptable object event methods (add/remove),
4579 but they don't actually do much yet.
4581 * plugin.cpp: fix the refcounting of the rootobject, and remove
4582 some RUNTIME ifdefs.
4584 * plugin-glue.cpp (NPP_Initialize): remove the RUNTIME ifdefs.
4586 * moonlight.h: remove some of the unused ifdefs. also, we're not
4587 going to ever build this with RUNTIME or SCRIPTING not defined, so
4590 2007-07-18 Jackson Harper <jackson@ximian.com>
4592 * plugin-class.cpp: Build fix.
4594 2007-07-17 Chris Toshok <toshok@ximian.com>
4596 * plugin-class.cpp (moonlight_scriptable_object_invoke): deal with
4599 * plugin-class.h: change the type of InvokeDelegate - we pass an
4600 array, not an array of pointers.
4602 * plugin.cpp (JsRunOnload): remove redundant call to
4603 surface->GetToplevel().
4605 2007-07-16 Chris Toshok <toshok@ximian.com>
4607 * moonlight.cs: AppDomain.SetData the plugin instance so
4608 WebApplication can get at it.
4610 * plugin-class.cpp (variant_to_value): pseudo-inverse of
4611 value_to_variant. used by the scriptable object stuff.
4613 Also, add the first pass at the scriptable object code. it's
4614 really, really rough at this point.
4616 * plugin.cpp (PluginInstance::GetValue): switch this to calling
4618 (PluginInstance::getRootObject): put the old GetValue (create or
4621 2007-07-12 Chris Toshok <toshok@ximian.com>
4623 * plugin-class.cpp: implement support for using a string as the
4624 second arg in addEventListener. now you can register callbacks
4627 object.addEventListener ("EventName", method);
4631 object.addEventListener ("EventName", "methodName");
4633 fixes SilverlightChess crashing (since we were trying to
4634 InvokeDefault a string. oops. :)
4636 2007-07-12 Chris Toshok <toshok@ximian.com>
4638 * plugin-class.cpp (moonlight_dependency_object_invoke): implement
4639 captureMouse/releaseMouseCapture. going to move these to a
4640 UIElement specific wrapper next.
4642 2007-07-12 Chris Toshok <toshok@ximian.com>
4644 * plugin-class.cpp, plugin-class.h: a few things:
4646 refactor the listener proxying stuff to share code. when creating
4647 a proxy you create the event arg wrapper function, which at
4648 present only the mouse event stuff uses.
4650 wrap Downloader. events are properly emitted, we should move the
4651 Downloader to using EventHandler's instead of its custom list of
4654 when looking up an attached property both (or one, or neither!) of
4655 the names can be capitalized. like: foo['canvas.top'],
4656 foo['Canvas.Top'], and foo['canvas.Top']. handle all of them.
4658 in value_to_variant, when setting a property to an object value,
4659 we assume (perhaps incorrectly) that it will be a
4660 MoonlightDependencyObjectObject, and handle it that way. it seems
4661 to work for the demos at least. Also in that same method, stop
4662 allocating a 20 byte buffer in the hope that it's enough. just
4663 use g_strdup/g_strdup_printf.
4665 add control.createObject support for creating wrapped
4666 downloaders. also, start on the implementation for
4667 control.onResize, but we need to shift the surface's resize
4668 callback to use an EventHandler.
4670 2007-07-11 Chris Toshok <toshok@ximian.com>
4672 * plugin-class.cpp, plugin-class.h: fix up the point and rect
4673 wrappings, and implement mouse event proxying.
4675 2007-07-11 Chris Toshok <toshok@ximian.com>
4677 * plugin-class.cpp, plugin-class.h: wrap the MediaElement enough
4678 to provide the start/stop/pause methods.
4680 2007-07-11 Chris Toshok <toshok@ximian.com>
4682 * plugin-class.cpp, plugin-class.h, plugin-glue.cpp, plugin.h,
4683 plugin.cpp: I know this looks like a scary change, but 90% of the
4684 code is the same. I just took advantage of the fact that we
4685 already have structs with all the function pointers in them.
4686 there's no reason to proxy from a function pointer in the struct
4687 to an instance method on a singleton class - just use the function
4690 Also, add a binding for Points, which we'll need to wrap mouse
4693 2007-07-11 Chris Toshok <toshok@ximian.com>
4695 * moonlight.h (DEBUG_WARN_NOTIMPLEMENTED): add this macro so we
4696 can get spew to the console when we hit unimplemented bits.
4698 * plugin-class.cpp: a couple of changes:
4700 1. the case of property names is lax too, it seems. 'Children'
4701 can be used in the js, as well as 'Children'. so we need to allow
4704 2. Fix a memory corruption issue with value_to_variant - we need
4705 to duplicate the string we give to mozilla, since it'll free it in
4706 NPN_ReleaseVariantValue.
4708 3. Implement proxies between our event handlers and JS event
4709 listeners. We leak like a sieve here, btw. need to figure out
4710 the best way to free up these proxies. This works for any event
4711 that has been Register'ed by an EventObject and which is Emit'ed
4714 4. Implement collection.getItem().
4716 2007-07-11 Chris Toshok <toshok@ximian.com>
4718 * plugin.h, plugin.cpp: add getRootObject to return the
4719 MoonlightControlObject.
4721 * plugin-class.cpp (MoonlightDependencyObjectClass::Invoke):
4722 implement "getHost" by returning PluginInstance->getRootObject().
4724 2007-07-11 Chris Toshok <toshok@ximian.com>
4726 * plugin-class.h, plugin-class.cpp: substantially rework this
4727 stuff. Rename everything Moonlight*Class and Moonlight*Object
4728 instead of Plugin*Class/Object, to make it a little clearer that
4729 these are (almost entirely) wrappers for moonlight objects.
4731 Also clean up the distinction between "Class" and "Object". for
4732 instance, MoonlightDependencyObjectClass shouldn't have the
4733 DependencyObject*, that should live in the instance -
4734 MoonlightDependencyObjectObject (bad name i know..)
4736 our Objects also need a little bit more inheritance action.
4737 MoonlightObject isn't enough for all cases. Augment this with
4738 other classes, and override AllocateObject to allocate the right
4739 kind per class. Also, we need to override InvalidateObject to
4740 clear fields in the MoonlightObject subclasses before it's
4743 Also make all the Class's singletons. We never need more than one
4746 * plugin.h, plugin.cpp: we don't need a generate JsExecute method.
4747 besides, it's dangerous to NPN_Evaluate strings we get from the
4748 HTML anyway. Replace JsExecute with JsRunOnload, which uses
4749 NPN_Invoke to call the specified method. we also need to pass the
4750 surface's toplevel control as an argument to it.
4752 2007-07-11 Miguel de Icaza <miguel@novell.com>
4754 * moonlight.cs: Add support for downloading assembly
4757 2007-07-10 Chris Toshok <toshok@ximian.com>
4759 * moonlight.cs: add some helpful debug spew.
4761 * plugin.cpp (StreamAsFile): the mapping needs to point to the
4762 filename on disk, not the full uri. or else we try loading
4763 "http://" off the filesystem, which doesn't really work. Just to
4764 be thorough, add a mapping from the stream's url to the fname as
4767 2007-07-09 Miguel de Icaza <miguel@novell.com>
4769 * Makefile.am: install debugging symbols.
4771 * moonlight.cs: try/catch wrappers to prevent exceptions to be
4772 propagated to native code.
4774 2007-07-09 Chris Toshok <toshok@ximian.com>
4776 * moonlight.cs: copy over the System.Reflection implementation of
4777 set_attribute from XamlReader. also, track the change to the
4778 xaml_* apis - don't pass the callbacks to the individual methods.
4779 instead register them in a static ctor.
4781 2007-07-09 Miguel de Icaza <miguel@novell.com>
4783 * moonligh.cs: Invoke the Lookup(Kind, IntPtr) overload, just like
4784 we do in XamlReader.
4786 2007-07-06 Miguel de Icaza <miguel@novell.com>
4788 * downloader.cpp: Update to the get-response-text downloader API.
4790 2007-07-03 Miguel de Icaza <miguel@novell.com>
4792 * plugin.cpp (NewStream): Request that DOWNLOADER downloads be
4793 downloaded as NP_ASFILE, this means: notify us of the progres and
4794 the resulting filename.
4796 2007-06-26 Marek Habersack <mhabersack@novell.com>
4798 * moonlight.h (GDK_NATIVE_WINDOW_POINTER): define this macro if
4799 we're on a 64-bit platform. Otherwise plugin.cpp will fail to
4800 compile (attempting to convert guint32 to 64-bit pointer).
4802 2007-06-24 Larry Ewing <lewing@novell.com>
4804 * moonlight.h: include xaml.h so that things build.
4806 2007-06-24 Atsushi Enomoto <atsushi@ximian.com>
4808 * Makefile.am : we need libmoonplugin.so installed too.
4810 2007-06-23 Miguel de Icaza <miguel@novell.com>
4812 * plugin-proxy.cpp: This is the new entry point for the plugin
4813 which can be loaded and unloaded as many times as desired, and
4814 will keep the real plugin in $pkgdir/libmoonplugin.so loaded as
4817 This prevents the bugs where the code is unloaded, but we still
4818 have a few places where we are triggering screen updates when the
4819 objects have gone, those must be tracked down.
4821 2007-06-23 Chris Toshok <toshok@ximian.com>
4823 * Makefile.am: distcheck work.
4825 2007-06-22 Chris Toshok <toshok@ximian.com>
4827 * README: barebones README to tell people what to do with the
4830 2007-06-21 Jackson Harper <jackson@ximian.com>
4832 * moonlight.cs: Do what I was trying to do with the last commit.
4833 Attach the surface so that events are registed.
4835 2007-06-21 Jackson Harper <jackson@ximian.com>
4837 * moonlight.cs: Init the surface so that the mouse events are
4840 2007-06-20 Jeffrey Stedfast <fejj@gnome.org>
4842 * plugin.cpp (plugin_show_menu): Free the menu name after setting
4845 * mono.cpp (vm_init): Don't need top prefix with "/".
4847 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4849 * plugin.cpp: Add new params to xaml_create_from_file and
4850 xaml_create_from_str calls to fix compilations problems.
4852 2007-06-20 Chris Toshok <toshok@ximian.com>
4854 * plugin.cpp (StreamAsFile): don't try to execute onLoad if there
4857 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4859 * plugin.cpp, plugin.h: Implement JsExecute method and use it to call onload
4860 event specified in control creation. onLoad and onError field is also
4863 2007-06-20 Jackson Harper <jackson@ximian.com>
4865 * moonlight.cs: Tie into events.
4867 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4869 * plugin-class.cpp: Update DependencyObject setter to work with strings
4870 and some other data types, using xaml_set_property_from_str. Also remove
4871 some debug messages, we have too much.
4873 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4875 * plugin.cpp: Uncomment container detroy lines in Finalize method.
4877 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
4879 * plugin-class.cpp: Alloc one byte to set it to NULL so we don't
4880 write to unallocated memory.
4882 2007-06-20 Chris Toshok <toshok@ximian.com>
4884 * plugin.cpp (PluginInstance::Write): it turns out the "offset"
4885 parameter that is passed to us is the offset without the *stream*,
4886 not the buffer. Always pass 0 for the offset to downloader_write.
4887 This fixes image downloads for images larger than the mozilla
4888 buffer size (those requiring more than 1 write) of 16384.
4890 2007-06-19 Chris Toshok <toshok@ximian.com>
4892 * plugin-glue.cpp (NPP_Initialize): if we're going to Shutdown()
4893 the TimeManager in NPP_Shutdown, we need to restart it in
4896 2007-06-19 Chris Toshok <toshok@ximian.com>
4898 * plugin-class.cpp: check in the variant_to_value/value_to_variant
4899 methods, and make GetProperty/SetProperty use them.
4901 * plugin.cpp (UpdateSourceByReference): use g_strlcpy/g_strlcat
4902 instead of strcpy/strcat (which was actually walking off the end
4903 of the string). also, create the char array of the right size.
4905 2007-06-19 Atsushi Enomoto <atsushi@ximian.com>
4907 * Makefile.am : we need uninstall-plugin to avoid
4908 possible browser shutdown on browsing sl-enabled sites.
4910 2007-06-19 Everaldo Canuto <ecanuto@novell.com>
4912 * plugin-class.cpp, plugin-class.h: Implement DependencyObject properties
4915 2007-06-19 Everaldo Canuto <ecanuto@novell.com>
4917 * plugin.cpp: Eliminate remaining canvas field.
4919 2007-06-19 Miguel de Icaza <miguel@novell.com>
4921 * plugin.h: Eliminate the field canvas, as the managed code can
4922 replace the toplevel and we wont be able to track it. Access the
4923 field directly from the surface instead.
4925 2007-06-18 Miguel de Icaza <miguel@novell.com>
4927 * moonlight.cs: Create appdomains to keep applications separate
4928 and to keep the IntPtr to the plugin.
4930 The handle to the plugin is stored in agclr in the BrowserHost
4933 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4935 * plugin-class.cpp: Implement maxFrameRate property.
4937 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4939 * moonlight.h: Just a high value for MAX_STREAM_SIZE.
4941 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4943 * plugin.cpp, plugin.h: Implement Write and WriteReady to interact with
4944 Downloader functions. It looks to be right but image still dont appears,
4945 mayeb something in download manager functions. STREAM_NOTIFY macro added to
4948 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4950 * downloader.cpp: Fix stream notify data, must be Downloader not
4953 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4955 * plugin-glue.cpp: Remove stream destruction from Write and WriteReady, it
4956 was preventing browser to call our write function.
4958 * moonlight.h: MAX_STREAM_SIZE constant added.
4960 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
4962 * plugin.cpp, plugin.h: Add a new StreamNotifyFlags REQUEST, it is used by
4963 files requested by Mono runtime, the use of notify bring us a more clean
4964 code to controls requested files.
4966 * downloader.cpp: Use StreamNotify and check for existense of instance.
4968 007-06-17 Jackson Harper <jackson@ximian.com>
4970 * moonlight.cs: Parse type names out of xmns strings. x:Class uses
4971 this slightly different format.
4973 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
4975 * plugin.cpp, plugin.h: Add support for "#" (references) in source urls, it
4976 make possible use embedded xaml files. Also every source updates go to the
4977 UpdateSource and UpdateSourceByReference methods.
4979 * moonlight.cs: Xaml file loader splited in two methods CreateXamlFileLoader
4980 and CreateXamlStrLoader to support embedded files.
4982 * mono.cpp: Wrapper funtions also splited in file loader and str loader.
4984 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
4986 * plugin.cpp: Use setSource to define source in Initialize, it give us only
4987 one place to check set source code. Also prevent setSource to segfault when
4988 source field is null.
4990 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
4992 Fixes browser segfaults related to timemanager when goto another page or
4995 * plugin-glue.cpp: Call runtime_init every time that browser initialize
4996 plugin, when plugin shutdown just shutdown timemanager since we have
4997 problems to runtime_shutdown. Some comment added to this implementation
4998 and we must back here when runtime_shutdown is fixed.
5000 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5002 * plugin.cpp, plugin.h: Create StreamNotify class to use as notifydata
5003 parameter in NPN_GetURLNotify function, it gives us better control about
5004 what is downloading. Fixes errors when you try change control source
5007 2007-06-17 Miguel de Icaza <miguel@novell.com>
5009 * downloader.cpp (p_downloader_send): Some tidbits for the plugin
5010 download, not complete.
5012 2007-06-16 Jackson Harper <jackson@ximian.com>
5014 * moonlight.cs: Set custom attributes on xaml elements.
5016 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5018 * moonlight.h: Include config.h since moonlight.h is included by all files.
5019 Fixes compilation problems.
5021 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5023 * plugin.cpp, plugin.h: Remove sourceUrl and use NPN_GetURLNotify notifyData
5024 param to inform when download is source.
5026 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5028 * mono.cpp: Remove debug message cr.
5030 * plugin.cpp, plugin.h, plugin-class.cpp: Windowless property added.
5032 2007-06-16 Jackson Harper <jackson@ximian.com>
5034 * moonlight.cs: Quick implementation of miguels beautiful new xaml
5035 loading mechanism. We now properly download the assembly and
5036 create the element. The custom.xaml test does work, however you
5037 need to invalidate the canvas to see the red canvas background
5040 2007-06-16 Miguel de Icaza <miguel@novell.com>
5042 New mechanism for loading XAML files.
5044 Since XAML files can contain references to external assemblies and
5045 these have to be downloaded using the browser, we have now changed
5046 our previous setup that just called the xaml parser with a setup
5047 that is able to download dependencies.
5049 The system works by attempting repeatedly to parse the XAML file.
5050 The XAML parser needs to return an error condition that includes
5051 the missing dependency.
5053 For all missing dependencies, we request the file from the
5054 browser, and we re-try the parsing until it works (or it fails due
5057 * moonlight.cs: Instead of exposing a CreateFromXaml method, we
5058 now expose a Loader object.
5060 The Loader object can keep track of downloaded assembly
5061 dependencies and calls the parser.
5063 * plugin.cpp (NewStream): Use a primitive state machine
5064 (vm_missing_url == vm_missing_file) to detect when we have just
5065 requested that a file be downloaded. This probably is too
5068 (TryLoad): New method.
5070 Tries to load the XAML file, the parsing might fail because a
5071 required dependency is not available, so we need to queue the
5072 request to fetch the data.
5074 (LoadFromXaml): Use vm_xaml_loader_new and TryLoad now.
5076 * mono.cpp (vm_init): We now use a handful of more methods from
5079 (vm_loader_try, vm_insert_mapping): helper functions to call into
5080 the managed wrapper for XAML file loading.
5082 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5086 * plugin-class.cpp: Implement enableFramerateCounter, enableRedrawRegions
5087 and enableHtmlAccess properties.
5089 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5091 * plugin.cpp, plugin.h, plugin-class.cpp: Background property added.
5093 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5095 * plugin.cpp: Let LoadFromXaml just call load xaml routines.
5097 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5099 * moonlight.cs: Fix surface attachment.
5101 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5103 * plugin-glue.cpp: Prevent multiple runtime and mono vm initialization.
5105 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5107 * plugin.cpp, plugin.h: LoadFromXaml added to host canvas creation.
5109 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5111 * moonlight.h: Turns mono runtime enabled by default.
5113 * mono.cpp: Use of DEBUGMSG macro for debug message.
5115 * moonlight.cs: Fix Canvas kind number.
5117 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5119 * plugin.cpp, plugin.h, plugin-class.cpp: Fix setter for source property.
5121 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5123 * plugin.cpp, plugin.h: Add sourceUrl to get information about base source
5124 url. New Stream also check if request is for source file, if not return
5125 NP_NORMAL to be used later by downloader functions.
5127 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5129 * plugin-class.cpp, plugin-class.h: Remove macro STRING_TO_NPVARIANT, create
5130 method StringToNPVariant and change all reverences from macro to method.
5131 StringToNPVariant also take care about NULL strings.
5133 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5135 * plugin.cpp, plugin.h, plugin-class.cpp: Implement initParams property.
5137 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5139 * plugin-class.cpp: Implement setters for enableFramerateCounter,
5140 enableHtmlAccess and windowless. This fields cant be set after
5141 initialization so just do nothing and return true.
5143 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5145 * plugin-glue.cpp: After PluginObject changes we can back to release objects
5146 and it fix segfault when browser closes.
5148 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5152 * plugin-class.h: Remove unneeded instance fields, and contructor, after
5153 implementation of PluginObject we have a better way to get instance
5156 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5158 * plugin-class.cpp: Change all PluginRootClass properties to use new object
5161 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5164 * plugin-class.h: Rename NPObject references to PluginObject, PluginObject
5165 class theres more useful information like instance and plugin.
5167 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5171 * Makefile.am: Downloader functions added.
5173 * plugin-glue.cpp: On NPP_Initialize call downloader_initialize.
5175 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5177 * plugin-class.cpp: In PluginDependencyObject:: ClassGetProperty return
5178 false instead of null because funtion is of type boolean. It fix message
5181 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5183 * plugin.cpp: Move rootclass declaration to plugin-class.
5185 * plugin.h: Remove inclusion of plugin-class.h.
5187 * plugin-class.h: Introduces PluginObject class inherited from NPObject and
5188 add rootclass declaration.
5190 * plugin-class.cpp: Uses PluginObject instead of NPObject, also make use of
5191 object in 'source' property getter.
5193 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5195 * plugin.cpp, plugin.h: Add a new member finalize that must be calling
5196 instead of delete, we must later found a way to fix reload problems.
5198 * plugin-glue.cpp: Call finalize instead of delete.
5200 * TODO: Some notes about this bad implementation.
5202 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5204 * plugin-class.cpp: Add setter for control.source property.
5206 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5208 * plugin.cpp, plugin.h: isLoaded property added.
5210 * plugin-class.cpp: Implement control.isLoaded wrapper.
5212 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5215 - Take some notes on properties that cant be set after initialization.
5216 - Create macho STRING_TO_NPVARIANT to standardize the way how strings are
5217 returned to jscript calls.
5220 - Implement control.source using STRING_TO_NPVARIANT macro.
5221 - Uses STRING_TO_NPVARIANT macho in control.settings.version.
5223 * plugin.h: Add source property.
5225 * plugin.cpp: Set source on initialization.
5227 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5229 * plugin.cpp, plugin.h:
5230 - Move static rootobject to class field to get working pages with more than
5231 one moonlight control.
5232 - Implement param source for html object elements, this is default way to
5233 tell plugin which xaml it must load.
5235 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5237 * plugin-class.cpp, plugin-class.h:
5238 - Move instance field from PluginRootClass to PluginClass because most
5239 classes can make use of this field, class constructor is also changed to
5240 receive instance as parameter.
5241 - Remove host field from PluginDependencyObject, host can be accessed using
5244 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5246 * plugin-class.cpp: Implement "control.content" proeprties.
5248 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5250 * TODO: Added to include information about features that we know that is
5251 not current supported. Can be use for now to take some notes to be read
5254 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5256 * plugin-class.h: Add comments about read write/read only on properties.
5258 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5260 * plugin-class.cpp, plugin-class.h: Add SetProperty to PLUGIN_PROPERTIES
5261 and implement it for all classes.
5263 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5265 * plugin-class.cpp, plugin-class.h:
5266 - Fix IndexOf method.
5267 - Create and uses macros PLUGIN_PROPERTIES and PLUGIN_METHODS to define
5268 properties and methods.
5269 - Uses arrays to define properties and methods.
5270 - Use NPID macro to get string identifier.
5272 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5274 * plugin-class.cpp: Fix dependency of PLUGINROOTCLASS_PCOUNT in property
5275 array initialization.
5277 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5279 * plugin-class.cpp, plugin-class.h:
5280 - Implement IndexOf method that uses and array.
5281 - implement properties array.
5282 - ClassHasProperty now uses IndexOf.
5284 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5286 * Makefile.am: Fix LIBADD to include MOON_LIBS instead of two times
5289 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5291 * plugin-class.cpp, plugin-class.h: Get content and settings as a plugin
5294 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5296 * plugin.cpp, plugin.h: PluginContent class added.
5298 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5300 * plugin.cpp, plugin.h: Remove unused CreateDemoControls method.
5302 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5304 * plugin.cpp: Remove unused code and fix function names.
5306 * moonlight.h: Remove ";" on end of PLUGIN_DESCRIPTION define.
5308 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
5310 * Makefile.am : build fix. without -f rm fails.
5312 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5314 * plugin-class.cpp, plugin-class.h: Remove unused method ClassAllocate
5315 and fix all debug messages.
5317 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5319 * plugin.cpp: Fix object creation using NPN_RetainObject to increment
5320 reference count as described in Mozilla documentation.
5322 * plugin-class.cpp: On ClassDeallocate uses NPN_ReleaseObject that
5323 checks for references and release object when reference count is equal
5324 zero. It see to be solve all remaining segfault when browser closes.
5326 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5328 [Refactory jscript runtime code]
5330 * plugin-class.cpp, plugin-class.h: Create new class PluginRootClass,
5331 to be a proxy for javascript runtime calls, old code on plugin instance
5332 was moved here and all segfault related to script stuff was gone.
5334 * plugin.cpp, plugin.h: Remove jscript runtime related code and use
5337 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5341 * plugin.h: Fix remaining config.h -> moonlight.h.
5343 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5345 * moonlight.h: Define RUNTIME to enable/disable mono runtime
5346 integration. Its because right now it fails when open a page with
5347 script so we can comment /#define RUNTIME to get plugin working in
5350 * plugin.cpp: Dont call vm_load_xaml when RUNTIME is not defined.
5352 * plugin-glue.cpp: Dont call vm_init when RUNTIME is not defined.
5354 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5356 * moon-plugin.cpp: Renamed to plugin.cpp.
5357 * moon-plugin.h: Renaned to plugin.h.
5358 * config.h: Renaned to moonlight.h.
5360 * plugin-class.h, plugin-glue.cpp: Update includes.
5362 2007-06-11 Miguel de Icaza <miguel@novell.com>
5364 * Makefile.am: Delete the ~/.mozilla/plugins/libmoon.so in case it
5365 was around, that was the painful bug.
5367 * moon-plugin.cpp (CreateWindow): Do not create a canvas, nor
5368 attach it, let Mono do that.
5369 (StreamAsFile): Request that the VM loads the file, this will
5370 change to something else later when we use the Silverlight object
5373 * moonlight.cs: Implement some bits, it currently only loads the
5374 XAML file, it needs to create a new appdomain.
5376 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5380 * mono.cpp: Rename moon.cpp to moon-mono.cpp.
5382 * moon-mono.h: Add header information.
5385 * config.h: Add constant MOON_1_0 and MOON_1_1, when 1.1 is define
5386 compile also mono runtime, it is disabled by default since mono runtime
5387 give us some crashes right now.
5389 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5391 * Makefile.am: config.h added.
5399 * moon-plugin.h: Include config.h and remove unneeded includes.
5401 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5403 * moon-plugin.cpp: Remove DEMO mode and set SCRIPTING mode by default.
5405 2007-06-10 Miguel de Icaza <miguel@novell.com>
5407 * moonlight.cs: the startup code, will contain the helper classes
5408 to create new AppDomains for each instance create.
5410 * mono.cpp: New file, embeds the Mono VM.
5412 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5414 * plugin-glue.cpp: Call plugin instance destructor, now it dont causes
5415 error when you reload page.
5417 * moon-plugin.cpp: Only destroy container widget, if you dont destroy it
5418 when you start with page plugin, go to another page and close browser,
5419 a segfault is emited before browser exits. Now navigating for some time in
5420 silverlight pages looks to dont emit segfault if scripting is disabled.
5422 * plugin-class.cpp: Remove debug message from class constructor.
5424 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5429 - Read xaml file from src tag and display contents.
5430 - Disable demo box, now we have a better demo under xaml file.
5432 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5434 * Makefile.am: test added to subdirs.
5436 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5440 * moon-plugin.h: Rename DEBUG to DEBUGMSG.
5442 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5445 * moon-plugin.cpp: Change demo code to class method CreateDemoControls.
5447 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5449 * moon-plugin.cpp: Add canvas, connect it to surface and get demo working
5452 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5455 * moon-plugin.cpp: Rename CreateControls to CreateWindow.
5457 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5459 * Makefile.am: Add $(MOON_LIBS) to linker options.
5461 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5463 * plugin-glue.cpp: Dont delete plugin object since right now it causes some
5464 segfault when change to another page.
5466 * moon-plugin.cpp: Got scripting mode enabled by default.
5468 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5470 * plugin-glue.cpp: Fix plugin destruction.
5471 * moon-plugin.cpp: Change button to gtk label with plugin name and version.
5473 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5475 * plugin-glue.cpp: Set instance data to NULL to prevent error when browser
5479 - Disabled demo mode.
5480 - Enabled Scripting mode.
5481 - Fix runtime object creation, dont user NPN_RetainObject anymore.
5482 - Fix also object properties creation (settings).
5483 - Release object on class destructor.
5485 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5487 * moon-plugin.cpp: Simplify controls creation and add a button when you are
5488 not in demo mode. It is just for now to made some tests.
5490 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5492 * moon-plugin.cpp: Remove runtime initialization because it is wrong place.
5493 * plugin-glue.cpp: Add gtk and runtime initialization to NPP_Initialize.
5495 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5497 * moon-plugin.cpp: Add some initialization code to prevent some segmentation
5500 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5502 * moon-plugin.cpp: Add SCRIPTING and DEMO macros to make available only
5503 tested features, it mean that developers must uncomment this MACRO lines
5504 before work on scripting and libmoon stuff.
5506 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5508 * moon-plugin.cpp: Fix gtkplug creation fro 64bit systems.
5510 * Makefile.am: Add -lavformat to link options.
5512 Thanks Grendel for this patches.
5514 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5516 * moon-plugin.h: Change version number 0.99.0, SilverLight scripts searchs
5517 for version > 0.95.1.
5519 * test/index.html: Small fixes in test page.
5521 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5523 * test/index.html: Add javascript settings test.
5526 * moon-plugin.h: Implementing Settings class.
5528 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5531 * moon-plugin.h: Implement runtime properties structure and 'version'
5534 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5536 [PluginClass added to handle script objects]
5540 * Makefile.am: PluginClass added.
5543 * moon-plugin.h: PluginInstance now inherit from PluginClass, also
5544 scriptclass was removed and "this" is used in NPN_CreateObject. For
5545 NPN_CreateObject we can now always use classes inherited by PluginClass.
5547 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5549 * Makefile.am: Remove idl related code, new object system dont need idl or
5551 * nsIScriptableMoonPlugin.h: deleted.
5552 * nsIScriptableMoonPlugin.idl: deleted.
5554 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5556 * plugin-glue.cpp: Fix the instance initialization problems, the object
5557 instance was empty after creation.
5559 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5563 * plugin-glue.cpp: Fix SetValue declaration.
5565 * plugin-entry.cpp: Fix a lot of declarations, support for win and mac,
5566 support for runtime version checking and some other minor fixes.
5568 2007-06-06 Everaldo Canuto <ecanuto@novell.com>
5570 * moon-plugin.cpp: Comment container destructor to prevent segfault.
5572 2007-06-06 Everaldo Canuto <ecanuto@novell.com>
5574 * moon-plugin.cpp: Fix API change for Canvas.
5576 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
5578 * moon-plugin.cpp: Fix API change for SolidColorBrush.
5580 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5582 * moon-plugin.h: Add PLUGIN_OURNAME and PLUGIN_OURVERSION constants to
5583 specify our internal name and version that differs from plugin version
5584 detected by browser. SilverLight javascripts checks for WPF plugin and
5587 * moon-plugin.cpp: Change runtime initialization to CreateControls, before
5590 * plugin-glue.cpp: Fix memory allocation problems in NPP_New.
5592 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5596 * moon-plugin.h: Add initialization and remove demo transformation.
5598 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5600 [Remove ScriptablePeer code]
5602 * nsScriptablePeer.h, nsScriptablePeer.cpp: Removed.
5604 * plugin-glue.cpp: Fix debugger messages.
5608 * moon-plugin.h: Remove ScriptablePeer code since now Mozilla use
5611 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
5613 * moon-plugin.cpp: Fix API change for Rectangle.
5615 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5617 * moon-plugin-glue.cpp: Splited in plugin-glue.cpp and plugin-entry.cpp.
5618 * plugin-glue.cpp: Fix 'undefined symbol' creating NPP_SetValueX.
5620 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5622 * Makefile.am: Add some linker flags, it prevents crash on Epiphany.
5624 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5626 * test/index.html: Add script to demo html page.
5628 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5630 * moon-plugin.cpp: Add runtime init to demo code.
5632 2007-06-04 Everaldo Canuto <ecanuto@novell.com>
5634 * plugin/Makefile.am: Generate and install .xpt for install-plugin target.
5636 2007-06-04 Everaldo Canuto <ecanuto@novell.com>
5638 [Implement scriptable to plugin]
5640 * plugin/test/index.html: Sample jscript included.
5642 * plugin/Makefile.am: Generates .h from idl file use xpidl.
5644 * plugin/moon-plugin.h,
5645 * plugin/moon-plugin.cpp,
5646 * plugin/moon-plugin-glue.cpp: Implement scriptable and some clean up.
5648 * plugin/nsIScriptableMoonPlugin.h,
5649 * plugin/nsIScriptableMoonPlugin.idl,
5650 * plugin/nsScriptablePeer.cpp,
5651 * plugin/nsScriptablePeer.h: New scriptable classes.
5653 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5655 * moon-plugin-glue.cpp,
5657 * moon-plugin.cpp: Fix GetValue and implement SetValue.
5659 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5661 * moon-plugin.h: Change plugin name, version and description to mimic
5662 SilverLight and can be recognize as a valid plugin.
5664 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5666 * moon-plugin.c: Destroy objects on class destructor to prevent browser
5669 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5671 [Clean up demo and make some class fields private ]
5673 * moon-plugin-glue.c,
5675 * moon-plugin.c: Now just a surface control is added to plugn container,
5676 some field is now private demo was refactored.
5678 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5680 * Makefile.am: Compile if needed for install-plugin target.
5682 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5684 [Move to c++ based classes ]
5686 * moon-plugin-glue.c: Fix getvalue to return error when no instance
5690 * moon-plugin.c: Change all function to class methods, also move wrapper
5691 functions to moon-plugin-glue.
5693 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5697 * moon-plugin-glue.c: Remove moon_plugin_initialize and moon_plugin_shutdown
5698 since whe alread have NP_Initialize and NP_Shutdown. Also change
5699 PluginInstance structure to class (complete class suppont comming soon).
5701 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5703 * moon-plugin-glue.c: Some comments and stetic changes.
5705 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5707 * moon-plugin.h: Mime type description chage to 'WPFe Plug-In' to handle
5708 SilverLight objects.
5710 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5713 * moon-plugin.h: Remove unused members to provide a clean code.
5715 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5717 * Makefile.am: Fix link options.
5719 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5721 * moon-plugin-glue.c:
5723 * moon-plugin.h: Rename initialise to initialize.
5725 * Makefile.am: Add libmoon to link and install it on plugin dir.
5727 2007-06-02 Everaldo Canuto <ecanuto@novell.com>
5729 * moon-plugin-glue.c: Renamed to moon-plugin-glue.cpp.
5730 * moon-plugin.c: Renamed to moon-plugin.cpp.
5731 * Changelog: Create a separated change log for plugin.
5732 * Makefile.am: Renamed to moon-plugin.cpp.
5733 * moon-plugin.h: Renamed to moon-plugin.cpp.
5735 [Also add a sample to show libmoon features in browser]