1 2009-11-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
3 * plugin-class.cpp: GetSurface doesn't exist anymore - use IsAttached
6 2009-11-26 Chris Toshok <toshok@ximian.com>
8 * plugin.cpp (PluginInstance::StreamAsFile): remove the source
9 setting from here because it has to happen both with xaps and xaml
11 (PluginInstance::UpdateSource): it needs to happen here. in the
12 case where we aren't calling SetPageUrl, we need to need to worry
13 about relative/absolute urls. lots of comments added. should fix
14 the three different problematic splash scenarios I've found (2
15 telerik demos and the sl3 toolkit demo), and their relative url
18 2009-11-26 Chris Toshok <toshok@ximian.com>
20 * plugin.cpp (PluginInstance::StreamAsFile): set the source
21 location to the xaml file when parsing the splash screen so that
22 urls are resolved correctly for images/etc during the loading
23 process. Set it back again afterward.
24 (PluginInstance::LoadSplash): when loading the splash we need to
25 allow separators at the end of the urls so that relative urls are
28 2009-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
30 * plugin.mdp: Updated with new files.
32 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
34 * cbinding.h: Regenerated.
36 * plugin-class.h.in: Add changes to the .in file too so that the
37 changes survive the generator.
39 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
41 * plugin-class.cpp|h: Name change from MarkerReachedEventArgs ->
42 TimelineMarkerRoutedEventArgs (to better match managed code).
44 * cbinding.h: Regenerated.
46 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
48 * cbinding.h: Regenerated.
50 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
52 * plugin.cpp: When requesting a codec download, indicate that the user
53 initiated the download.
55 2009-11-12 Jeffrey Stedfast <fejj@novell.com>
57 * plugin.cpp (UrlNotify): Don't spam the console with printf's if
58 the download was successful.
60 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
64 * plugin-class.cpp: Update according to Type / Value API changes.
66 2009-11-06 Chris Toshok <toshok@ximian.com>
68 * plugin.cpp (PluginInstance::FlushSplash): WalkTreeForLoaded ->
69 WalkTreeForLoadedHandlers, and explicitly emit Loaded
72 2009-11-05 Alan McGovern <amcgovern@novell.com>
74 * cbinding.h: regen. r: toshok
76 2009-11-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
78 * plugin-class.cpp: Don't try to throw js exceptions when returning
81 * plugin-class.h: Remove THROW_JS_EXCEPTION2, not used anymore.
85 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
87 * plugin.cpp|h: Don't create the window if the splash failed to load -
88 this fixes a crash with MS DRT #352 where the splash error handler
89 shuts down the browser, causing us to crash later on when we try to
94 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
96 * plugin.cpp|h: Remove all code which handles downloading of assemblies
97 which aren't in the xap, since that can't happen. Some of this code was
98 already commented out.
102 2009-11-02 Alan McGovern <amcgovern@novell.com>
104 * cbinding.h: regen. r: rolf
106 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
108 * plugin.cpp: Add missing Deployment::SetCurrent.
112 2009-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
114 * plugin.cpp: Always show the codec download entry in the right click
115 menu - this allows easy redownload for whatever reason, instead of
116 requiring the user to manually locate and delete the codecs if they're
121 2009-10-20 Jeffrey Stedfast <fejj@novell.com>
123 * plugin.cpp (same_site_of_origin): If either of the urls is null,
124 return true. Fixes drt #329.
128 2009-10-20 Chris Toshok <toshok@ximian.com>
130 * plugin-class.cpp (MoonlightObject::ClearEventProxies): fix
131 ancient sles-10 build.
135 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
137 * plugin-glue.cpp: We might need the current plugin (NPP->pdata) during
138 plugin shutdown (to report errors to js in case of any errors).
140 * plugin-class.cpp|h|in.h:
141 Added MoonlightScriptControlObject::[Pre|Post]SwitchPlugin methods: stores
142 the data (event handlers) we need to copy over from one plugin instance to
143 the next when the source changes. Also make sure to delete all current
144 event handlers / proxies, since the root npobjects are not recreated.
145 EventListenerProxy: added GetCallback and IsFunc accessors.
146 MoonlightObject: Add a SetPlugin method that allows moving MoonlightObjects
147 from one PluginInstance to another.
150 Added a PluginInstance::Recreate method that recreates the PluginInstance
151 when the source changes. Remove unused parameter to PluginInstance ctor.
152 Keep track whether the window has been created or not (used to not recreate
153 the window, since it moves from one PluginInstance to another).
157 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
159 * plugin-class.h.in: Update with recent changes to plugin-class.h.
163 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
165 * plugin-class.[g.]cpp|h: Store a reference to the PluginInstance on
166 all MoonlightObjects instead of the NPP instance, since we'll soon
167 have more than one PluginInstance per NPP instance.
171 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
174 * plugin-class.h: Use the proper type for the content and settings
179 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
181 * windowless.cpp: Don't access the deployment field, use the
182 new SetCurrentDeployment method.
186 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
188 * plugin.cpp|h: Move all managed code handling to Deployment.
192 2009-10-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
194 * plugin-downloader.cpp: We should never allow downloading with another
195 plugin than the correct one.
199 2009-10-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
201 * plugin.cpp|h: Remove two obsolete and unused methods.
205 2009-10-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
207 * cbinding.h: Regenerated.
211 2009-10-08 Chris Toshok <toshok@ximian.com>
213 * plugin.cpp (PluginInstance::StreamAsFile): Add another cross
214 domain check after loading the splash (and emitting loaded
216 (PluginInstance::LoadSplash): substantially bulk up this code to
217 check for all the XDomain splash possibilities defined in drt
220 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
221 comment out a line of spew that's really really spewing in xdomain
226 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
228 * plugin.cpp|h: Make PluginInstance work with async shutdown by using
229 refcounting to only delete the PluginInstance when nobody needs it
230 anymore. Add two flags, HasShutdown and IsShuttingDown informing about
231 the current shutdown status. Destructor: rename to Shutdown and make
232 sure we zero/null out all the fields. Finalize: removed, not used.
233 Also ensure that the PluginInstance is not deleted until the managed
234 appdomain has been unloaded, since managed code has references to it.
235 Maintain a counter of the number of instances alive so that we can detect
236 when they are all deleted.
238 * plugin-class.cpp: Make html_release_object thread-safe by marshalling
239 any calls to the main thread. Also detect if the plugin has shut down
240 when trying to retain or release a npobject, in which case do nothing
241 at all, since firefox has already freed it.
243 * plugin-glue.cpp: Don't delete the plugin instance, call Shutdown
244 instead and unref it. Only shutdown moonlight if all the plugin instances
245 and all the deployments have been destroyed.
249 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
251 * plugin.cpp: Remove unused variable (fixes compiler warning).
255 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
257 * cbinding.h: Regenerated.
261 2009-09-25 Sebastien Pouliot <sebastien@ximian.com>
263 * plugin-class.cpp|h|h.in: Change html_object_invoke[_self] to
264 return the boolean representing the invokation result.
268 2009-09-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
270 * plugin-debug.cpp: Remove unused variable (fixes compiler warning).
274 2009-09-23 Chris Toshok <toshok@ximian.com>
276 * plugin-class.cpp (EventObjectCreateWrapper): return
277 dependency_object_classes [MOUSE_EVENT_ARGS_CLASS]; for both
278 MOUSEBUTTONEVENTARGS and MOUSEWHEELEVENTARGS.
280 fixes DRT #50 regression.
284 2009-09-23 Chris Toshok <toshok@ximian.com>
290 2009-09-23 Chris Toshok <toshok@ximian.com>
292 * plugin-accessibility.h (class Accessibility):
293 @ManagedEvents=Manual
299 2009-09-18 Jackson Harper <jackson@ximian.com>
302 * plugin.cpp: Remove the import_default_xmlns stuff, this is
303 handled by flags now.
306 2009-09-16 Jeffrey Stedfast <fejj@novell.com>
308 * plugin.cpp (Properties): Display the RuntimeVersion attribute.
312 2009-09-14 Chris Toshok <toshok@ximian.com>
314 * plugin-class.cpp (MoonlightErrorEventArgs::GetProperty): use
315 ErrorEventArgs accessors.
317 * plugin.cpp (PluginInstance::network_error_tickcall): pass a
318 MoonError to the ErrorEventArgs ctor.
319 (PluginInstance::splashscreen_error_tickcall): same.
320 (PluginXamlLoader::TryLoad): same, use accessor.
321 (PluginInstance::ManagedExceptionToErrorEventArgs): same.
323 2009-09-14 Jackson Harper <jackson@ximian.com>
325 * plugin-debug.cpp: Use foreach instead of gtkiter
327 2009-09-11 Sebastien Pouliot <sebastien@ximian.com>
329 * plugin.cpp: Fix regression/crash on DRT455 since
330 splashscreensource is now freed. Add missing g_free on
335 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
337 * cbinding.h: Regenerated.
341 2009-09-10 Jackson Harper <jackson@ximian.com>
343 * plugin.cpp: Add some namescope info to the debugging tree
347 2009-09-10 Jackson Harper <jackson@ximian.com>
349 * plugin.cpp|h: Update signature on SetProperty
351 2009-09-09 Chris Toshok <toshok@ximian.com>
353 * plugin.cpp (PluginInstance::PluginInstance): init
354 culture/uiculture to null.
355 (PluginInstance::~PluginInstance): free culture/uiculture, and
356 also plug a leak by freeing onSourceDownloadProgressChanged,
357 onSourceDownloadComplete, and splashscreensource.
358 (PluginInstance::Initialize): parse culture/uiculture <param>
360 (PluginInstance::InitializePluginAppDomain): track change to
361 InitializeDeployment argcount
362 (PluginInstance::ManagedInitializeDeployment): add
363 culture/uiculture args when calling the managed methods.
367 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
369 * plugin-class.cpp|.g.cpp.in|.h.in: no longer auto generate bindings
370 for MSI, copy paste the autogenerated from .g.cpp to .cpp. add a
371 SetProperty method and use to set the UriSource of the DZITS instead
372 of creating a new DZITS everytime.
374 * plugin-class.h|g.cpp: regen
376 2009-09-03 Alan McGovern <amcgovern@novell.com>
378 * plugin.cpp: It's possible that window will be null, so check
379 it exists before using it. r: toshok
381 2009-08-27 Chris Toshok <toshok@ximian.com>
383 * plugin.cpp (PluginInstance::NewStream): set the current deployment here.
387 2009-08-26 Jackson Harper <jackson@ximian.com>
389 * plugin.cpp: check for the zip file magic instead of using file
392 2009-08-26 Alan McGovern <amcgovern@novell.com>
394 * cbinding.h: regen r: shana
396 2009-08-26 Jackson Harper <jackson@ximian.com>
398 * plugin.cpp: Use the xaml function for parsing bools so things
399 like enablehtmlaccess=1 are handled properly.
403 2009-08-24 Sebastien Pouliot <sebastien@ximian.com>
405 * plugin-class.cpp: Free NPVariant array leaks
409 2009-08-16 Chris Toshok <toshok@ximian.com>
411 * plugin.cpp (plugin_menu_about): we aren't doing previews
412 anymore, we're doing betas.
416 2009-08-12 Alan McGovern <amcgovern@novell.com>
418 * cbinding.h: regen r: toshok
420 2009-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
422 * plugin.mdp: Connect the Build command in
423 MonoDevelop with 'make install'.
425 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
427 * plugin.mdp: Use Makefile integration.
429 2009-07-23 Sebastien Pouliot <sebastien at ximian.com>
431 * plugin.cpp: Make sure 'source_original' is set even when scripting
432 is used to initialize source. Remove xdomain warnings from mstv.cz
434 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
437 * plugin-class.h.in: Added html_object_retain.
439 * plugin-class.h: Regenerated.
441 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
443 * plugin.mdp: Updated.
445 2009-07-22 Sebastien Pouliot <sebastien at ximian.com>
447 * plugin-class.cpp: Fix DEBUG_WARN_NOTIMPLEMENTED macro to output
448 all related information on the same line. Use NULL_TO_NPVARIANT
449 with MoonId_MethodName (since this is a string).
450 * windowless.cpp: Initialize GdkEventKey correctly (valgrind) and
451 provide a Window pointer so we avoid a SEGSIGV when TextBox calls
452 gtk_im_context_xim_filter_keypress (webide)
454 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
456 * plugin-class.cpp: Incorporate significant advances in debugging
459 2009-07-20 Chris Toshok <toshok@ximian.com>
461 * plugin-class.cpp (MoonlightContentObject::Invoke): pass null for
463 (MoonlightContentObject::Invoke): same.
465 * plugin.h|cpp: add resource base parameters to all the XamlLoader
466 calls, and pass stream->url for that value when we have it.
470 2009-07-20 Chris Toshok <toshok@ximian.com>
472 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): add
473 the fallback findName lookup here, since we removed it from
474 DependencyObject::FindName.
476 2009-07-18 Jackson Harper <jackson@ximian.com>
479 * plugin.h|cpp: Add a flag to import the default xmlns. Basically
480 nothing sets this to true except for the JS CreateFromXaml
483 2009-07-17 Larry Ewing <lewing@novell.com>
485 * plugin.cpp: get agressive about flushing loaded events to the
486 plugin from splash elements. Fixes 285,445.
488 2009-07-16 Larry Ewing <lewing@novell.com>
490 * plugin.cpp, plugin.h: rework the splash logic to handle document
491 fragment references and get closer to emitting the correct events
492 in the correct order.
494 * plugin-class.cpp: use PluginInstance::IsLoaded instead of poking
497 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
499 * cbinding.h: Regenerated.
501 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
503 * plugin.cpp: PluginInstance::UpdateSourceByReference: add a
504 Deployment::SetCurrent.
506 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
508 * plugin-entry.cpp: Push/Pop the current deployment on every
509 transition to the browser. Makes MS DRT #2003 not spew a lot
510 of deployment mismatch warnings.
512 2009-07-15 Larry Ewing <lewing@novell.com>
514 * plugin.cpp: reconnect onload in LoadXAML and LoadXAP so that
515 source changes reset the oneshot call. Fixes DRT#21.
517 2009-07-13 Sebastien Pouliot <sebastien at ximian.com>
519 * plugin.cpp: Check for NULL *and* Empty inside UpdateSource.
520 Gives a bit of progress for DRT#354
522 2009-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
524 * cbinding.h: Regenerated.
526 2009-07-13 Alan McGovern <amcgovern@novell.com>
528 * plugin-class.h.in: Var should be named
529 'OnSourceDownloadComplete' not 'OnSourceDownloadCompleted'
531 2009-07-13 Alan McGovern <amcgovern@novell.com>
533 * cbinding.h: Commit the initial implementation of the
534 TabNavigationWalker. Supports the three tabbing modes and
535 also forward/backward tabbing. Passes drt 323 except for a
536 default focusing issue.
538 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
540 * plugin.cpp: Only call EmitSourceDownloadComplete is we needed
541 to download the splashscreen (versus embedded using #)
543 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
545 * plugin.cpp|h, plugin-class.cpp|h: Rename
546 SourceDownloadCompletedEvent to SourceDownloadCompleteEvent
548 2009-07-09 Sebastien Pouliot <sebastien at ximian.com>
550 * plugin.cpp: Check for redirection each time a new stream
551 is created (i.e. before downloading) using the current URI (not
552 the original one) so we can detect redirection correctly.
554 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
556 * plugin-class.cpp: EventObjectCreateWrapper: return null as the
557 wrapper for a null object.
559 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
561 * plugin-downloader.h: Add response getter.
563 * plugin-downloader.cpp: Regenerated.
565 * cbinding.h: Regenerated.
567 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
569 * plugin-downloader.cpp: When calling Send, reset the finished
570 field, so that we abort it properly upon destruction if the
571 PluginDownloader has been reused.
573 2009-07-01 Chris Toshok <toshok@ximian.com>
575 * plugin-proxy.cpp (load): check the return value of
576 dlopen(libmono.so) before we make use of mono_config_parse_memory.
578 * plugin-entry.cpp: remove the moz-sdk includes, since they get
579 pulled in from moonlight.h
581 * plugin-class.h|cpp (MoonlightContentObject::GetProperty): add
582 Accessibility support.
583 (MoonlightContentObject::SetProperty): same.
584 (MoonlightContentObject::~MoonlightContentObject): unref the
585 accessibility object.
587 * moonlight.h: add the moz-sdk/ prefix for the np* headers here.
589 * Makefile.am (libmoonplugin_la_SOURCES): add
590 plugin-accessibility.
591 (INCLUDES): remove the moz-sdk include, and add it the #includes
592 so things work when files are included from the src/ directory.
594 * plugin-accessibility.h|cpp: new DependencyObject subclass to
595 represent the plugin's content.accessibility object.
597 * cbinding.h, plugin-class.h: regen.
599 2009-06-30 Jackson Harper <jackson@ximian.com>
601 * plugin-class.cpp: Update function signature, add the validate
605 2009-06-30 Alan McGovern <amcgovern@novell.com>
607 * plugin-class.cpp: Use SetValueWithError instead of SetValue
608 and propagate the exception back to javascript. Fixes drt
611 2009-06-29 Sebastien Pouliot <sebastien@ximian.com>
613 * plugin.cpp: Initialize enable_html_access to true since the value
614 can be queried before anything is loaded (e.g. scripting). Remove
615 failure message from DRT #21 bitmap.
617 2009-06-26 Chris Toshok <toshok@ximian.com>
619 * plugin-class.h.in|cpp: add support for GridLengths.
621 * plugin-class.h: regen.
623 2009-06-26 Larry Ewing <lewing@novell.com>
625 * plugin-class.h.in: add MoonlightCornerRadius and MoonIds.
627 * plugin-class.cpp: implement cornerradius foo.
629 2009-06-25 Chris Toshok <toshok@ximian.com>
631 * plugin-class.cpp (thickness_mapping): fix the mapping of "top"
632 to MoonId_Top, not MoonId_Right. Fixes drt test 421.
634 2009-06-25 Chris Toshok <toshok@ximian.com>
636 * plugin.cpp (PluginXamlLoader::SetProperty): track change to
637 xaml_is_valid_event_name.
639 2009-06-25 Chris Toshok <toshok@ximian.com>
641 * plugin-class.cpp (_set_dependency_property_value): add a
642 MoonError parameter so we can communicate it back to our callers.
643 (MoonlightTextBoxObject::Invoke): use textbox->SelectWithError and
644 throw the exception if it failed.
645 (MoonlightPasswordBoxObject::Invoke): same.
647 2009-06-25 Chris Toshok <toshok@ximian.com>
649 * plugin-class.cpp (MoonlightCollectionObject::Invoke): add
650 "remove(string)" support for resource dictionaries.
651 2009-06-25 Chris Toshok <toshok@ximian.com>
653 * plugin-class.cpp (value_to_variant): add support for
654 FontWeight/Style/Stretch here. Fixes DRT test 94.
656 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
658 * cbinding.h: Regenerated.
660 2009-06-25 Sebastien Pouliot <sebastien@ximian.com>
662 * plugin-class.cpp: Return "" not NULL for empty files (DRT #180)
664 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
666 * plugin-class.cpp: proxy_listener_to_javascript: we need to restore
667 the current deployment after returning from javascript, if the
668 javascript did anything which caused firefox to process events,
669 we may have entered any other deployment while processing those
672 2009-06-24 Chris Toshok <toshok@ximian.com>
676 2009-06-22 Chris Toshok <toshok@ximian.com>
678 * plugin-class.h.in|cpp: MediaElements and Images need to subclass
679 from UIElement here instead of DependencyObject, or else we can't
680 call UIElement methods on them. gets fixture #282 further than
681 the stupid .js error.
683 * plugin-class.h: regen
685 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
687 * plugin-class.cpp: Add support for MultiScaleImage methods.
689 * plugin-class.g.cpp.in: Added required header.
691 * plugin-class.g.cpp:
693 * cbinding.h: Regenerated.
695 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
697 * plugin.mdp: Updated with new files.
699 2009-06-18 Jeffrey Stedfast <fejj@novell.com>
701 * plugin-class.cpp (value_to_variant): Handle Type::CHAR by
702 converting to an NPVariant string.
704 2009-06-18 Sebastien Pouliot <sebastien@ximian.com>
706 * cbinding.cpp|h: regen
707 * plugin.cpp|h: Keep the original location and source (before any
708 redirection can happen) and use them in the check for cross-domain
709 applications. Fixing DRT 955-958
711 2009-06-17 Chris Toshok <toshok@ximian.com>
713 * plugin-class.h.in, plugin-class.cpp: add textbox and passwordbox
714 types (select and selectAll methods.)
716 * plugin-class.g.*, cbinding.h: regen.
718 2009-06-17 Alan McGovern <amcgovern@novell.com>
720 * plugin-class.g.cpp.in: We need to include textbox.h
722 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
724 * plugin.cpp: SetXapLocation must be set before
725 ManagedInitializeDeployment is called, since
726 ManagedInitializeDeployment ends up executing managed code, which
727 may need SetXapLocation to be set (for downloading files).
728 MS DRT #483 is an example.
730 2009-06-16 Sebastien Pouliot <sebastien@ximian.com>
732 * plugin.cpp: Set default cross_domain_app to false since using
733 embedded XAML is valid (and not cross domain) and won't trigger
734 a load (to update the value). Should fix XAML #401 test
736 2009-06-15 Sebastien Pouliot <sebastien@ximian.com>
738 * plugin.cpp|h: Move cross-domain application check to it's own
739 method. Call it once we download the source (it could be later
740 than anticipated). This fix sites using custom scripts like
741 ASP.NET <asp:Silverlight>
742 * plugin-class.cpp: Don't emit javascript events for cross
745 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
747 * plugin.cpp: same_site_of_origin: add nre protection. Makes
748 moonlight test #408 not crash.
750 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
752 * plugin-class.cpp: Update after MediaElementState -> MediaState
755 2009-06-13 Sebastien Pouliot <sebastien@ximian.com>
757 * plugin.cpp|h: Move cross-domain application check earlier to
758 not register the events (e.g. onLoad, onError...) for cross-domain
759 applications. Complete fix for DRT 361, 362, 364, 365 and 370
761 2009-06-12 Sebastien Pouliot <sebastien@ximian.com>
763 * plugin.cpp|h: Fix 'enableHtmlAccess' to have a different
764 default value when used for the same 'site of origin' (true)
765 wrt to be used for 'cross-domain' applications (false).
766 * plugin-class.cpp: Add restrictions on cross-domain applications
767 based on the manifest ExternalCallersFromCrossDomain value.
769 2009-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
771 * plugin.cpp: Disable the spinner for now, it's breaking a lot of
774 2009-06-10 Larry Ewing <lewing@novell.com>
776 * plugin.cpp (CreateWindow): add a simple spinner if nothing is
779 * plugin-spinner.h: new simple spinner.
781 2009-06-08 Chris Toshok <toshok@ximian.com>
783 * plugin.cpp (class PluginClosure): new class to wrap
785 (PluginInstance::network_error_tickcall): use PluginClosure.
786 (PluginInstance::splashscreen_error_tickcall): use PluginClosure,
787 also don't UpdateSource if the surface is zombified (since the
788 plugin is likely already gone.)
789 (PluginInstance::UrlNotify): use PluginClosure's and add the tick
790 calls directly via the timemanager so we can specify both method
793 * plugin.h (class PluginInstance): make network_error_tickcall and
794 splashscreen_error_tickcall static methods on PluginInstance.
796 2009-06-08 Jackson Harper <jackson@ximian.com>
798 * plugin.cpp|h: Update signature for SetProperty
800 2009-06-05 Chris Toshok <toshok@ximian.com>
802 * plugin.cpp (PluginInstance::UrlNotify): only emit the 2104 error
803 if the network failure was on the XAP itself. move the
804 Deployment::SetCurrent call a little earlier, and make the splash
805 screen download error async as well.
807 2009-06-04 Chris Toshok <toshok@ximian.com>
809 * plugin.cpp (PluginInstance::MonoGetPropertyFromName): new
810 method, look up the property on a type and print a nice warning if
812 (surface_network_error_tickcall): we can't emit the network error
813 from inside UrlNotify, since the handler can remove the plugin at
814 that point, and firefox takes a shit all over itself in that case.
815 (PluginInstance::UrlNotify): if there was a network error
816 downloading the xap, add the tick call to emit the proper error.
817 (PluginInstance::InitializePluginAppDomain): look up the
818 MoonException type and some properties to use when accessing it.
819 (PluginInstance::ManagedExceptionToErrorEventArgs): convert from a
820 managed exception to an ErrorEventArgs which we'll then emit
821 through the surface's ErrorEvent.
822 (PluginInstance::ManagedCreateXamlLoader): check for an exception,
823 and if there was one, emit the error on the surface.
824 (PluginInstance::ManagedInitializeDeployment): same.
825 (PluginInstance::ManagedDestroyApplication): same.
827 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
828 set the current deployment earlier. definitely needs to be set
829 before we call the callback :)
831 2009-06-02 Geoff Norton <gnorton@novell.com>
833 * plugin.cpp: Ensure we dont start downloading the source until we have
834 the splash. If the splash 404's we need to emit a 2108.
836 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
838 * cbinding.h: Regenerated
840 2009-06-01 Chris Toshok <toshok@ximian.com>
842 * plugin-class.cpp (MoonlightContentObject::Invoke): for
843 createFromXaml make sure we call LoadVM on the XamlLoader so we
844 can access managed types (like StackPanel).
846 2009-06-01 Chris Toshok <toshok@ximian.com>
848 * plugin-class.cpp|h: add MoonlightThickness* and add
849 Type::THICKNESS to value_to_variant. this fixes a few instances
850 in the tests where they're accessing margins from javascript.
852 2009-05-28 Jeffrey Stedfast <fejj@novell.com>
854 * plugin-utils.cpp: New source file which has utility functions
855 such as check_arg_list().
857 * plugin-class.h.in: Removed static impl of check_arg_list() -
858 this was causing compile warnings about unused functions and also
859 bloating up the binary ;-)
861 2009-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
863 * plugin.cpp: Sprinkle SetCurrentDeployment.
865 2009-05-27 Geoff Norton <gnorton@novell.com>
867 * plugin.cpp|h: Ensure we only emit the source progress/completed events
868 on the source, and not on the source splash ourself. Also, we need to make
869 sure we have a toplevel before emitting otherwise sender is null going to the
872 2009-05-27 Geoff Norton <gnorton@novell.com>
875 * plugin-class.cpp|h|h.in: Support the splash screen progress/completed events
878 2009-05-27 Geoff Norton <gnorton@novell.com>
880 * plugin.cpp: Avoid a double-delete of the splash xaml_loader
882 2009-05-27 Geoff Norton <gnorton@novell.com>
884 * plugin.cpp|h: Support splash screen.
886 2009-05-27 Geoff Norton <gnorton@novell.com>
888 * plugin.cpp|h: Ensure we spin up a default application for the xaml
889 case as well since <Canvas><StackPanel /></Canvas> works.
891 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
893 * plugin-downloader.h:
894 * plugin-downloader.cpp: Add support for retrieving response headers
897 * cbinding.h: Regenerated.
899 * browser-bridge.h: Updated according to downloader API changes.
901 * plugin.mdp: Updated.
903 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
905 * plugin-downloader.cpp: Don't hard code the verb.
907 2009-05-25 Chris Toshok <toshok@ximian.com>
909 * plugin-class.cpp (value_to_variant): robustify this and support
910 NULL Value*'s. Fixes crash in DRT #485.
912 2009-05-23 Chris Toshok <toshok@ximian.com>
914 * plugin-class.cpp, plugin-class.h: add a Control plugin class,
915 which exposes "focus". Should get DRT #250 a little further (and
916 keep it from timing out.)
918 2009-05-21 Rusty Howell <rhowell@novell.com>
920 * Makefile.am: Changed install dir to DIST_SUBDIRS for make dist
922 2009-05-21 Andreia Gaita <avidigal@novell.com>
924 * plugin-class.cpp: disable throwing js exceptions on html_object_invoke
925 and html_object_get_property, the exceptions get stuck on firefox and
926 any subsequent eval call will fail
928 2009-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
930 * npstream-request.cpp: Fix typo.
932 2009-05-20 Rusty Howell <rhowell@novell.com>
934 * Makefile.am: Added install dir to SUBDIRS for 'make dist'
936 2009-05-20 Larry Ewing <lewing@novell.com>
938 * plugin.cpp (TryLoad): update the error string for 2021 to match
941 2009-05-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
943 * cbinding.cpp|h: Regenerated.
945 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
947 * cbinding.cpp|h: Regenerated.
949 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
951 * cbinding.cpp|h: Regenerated.
953 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
955 * cbinding.cpp|h: Regenerated.
957 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
959 * plugin.h: Add a GetBrowserHost which returns a void* to avoid
960 putting NPObject/mozilla headers in the c bindings.
962 * cbinding.cpp|cbinding.h: Regenerated.
964 2009-05-17 Andreia Gaita <avidigal@novell.com>
966 * plugin-class.cpp: If a managed method called from js returns
967 void, create a valid NPVariant_Void return object
969 2009-05-15 Chris Toshok <toshok@ximian.com>
971 * plugin-class.cpp (MoonlightCollectionObject::Invoke): for
972 getItem on a resource dictionary, a string parameter (the key)
975 2009-05-13 Jackson Harper <jackson@ximian.com>
977 * plugin.cpp|h: Update params for SetProperty.
979 2009-05-12 Larry Ewing <lewing@novell.com>
981 * plugin-debug.cpp (reflect_value): add output for point.
983 2009-05-11 Larry Ewing <lewing@novell.com>
985 * plugin-class.cpp: remove UpdateLayout now that it is
988 2009-05-09 Andreia Gaita <avidigal@novell.com>
990 * plugin-class.h.in, plugin-class.g.cpp.in: Added, used to
991 generate Moonlight* classes and MoonId types, for automatic
992 js binding with the GenerateJSBinding annotation.
993 plugin-class.cpp has the bulk of the code, plugin-class.g.cpp
994 has the autogenerated implementations.
996 * plugin-class.[h|g.cpp]: regen.
998 * plugin-class.cpp: moved some definitions to the header file,
999 so .g.cpp can use them too. Added uielement class support, which
1000 is autogenerated on plugin-class.g.cpp. Removed CaptureMouse and
1001 ReleaseMouseCapture, it's handled on uielement on .g.cpp now.
1003 * Makefile.am: Added plugin-class.g.cpp
1005 2009-05-03 Chris Toshok <toshok@ximian.com>
1007 * plugin-class.h|.cpp (MoonlightDependencyObjectObject::Invoke):
1008 add UpdateLayout() as a JS callable function. fixable a JS error
1011 2009-05-02 Chris Toshok <toshok@ximian.com>
1013 * plugin-proxy.cpp (load): add RTLD_GLOBAL to real_plugin,
1014 otherwise we can't call mono_config_parse_memory from the plugin
1015 loader (since it doesn't link to libmono directly).
1017 2009-05-02 Rusty Howell <rhowell@novell.com>
1019 * plugin-proxy.cpp: Detect which libmoonloader we are (xpi or sys)
1020 and dlopen accordingly
1021 * moonlight.h: Remove PLUGIN_INSTALL
1022 * plugin-proxy-xpi.cpp: removed from svn
1023 * Makefile.am: Added check in user-plugin target.
1024 Changed source of libmoonloader back to plugin-proxy.cpp
1026 2009-04-22 Chris Toshok <toshok@ximian.com>
1028 * moonlight.h: moon the #include <glib.h> here from windowless so
1029 we can guarantee glibconfig.h has been included before we check
1032 * windowless.h: drop the include glib.h from here.
1034 2009-04-22 Rusty Howell <rhowell@novell.com>
1036 * make builds separate binaries for xpi
1037 libmoonloaderxpi, libmoonpluginxpi
1039 2009-04-20 Chris Toshok <toshok@ximian.com>
1041 * plugin.cpp (plugin_menu_about): use a preview link for preview
1044 2009-04-18 Chris Toshok <toshok@ximian.com>
1046 * plugin-class.cpp (value_to_variant): add support for FontFamily.
1048 2009-04-18 Chris Toshok <toshok@ximian.com>
1050 * plugin-class.cpp (MoonlightStoryboardObject::Invoke): track
1053 2009-04-17 Chris Toshok <toshok@ximian.com>
1055 * plugin.h|.cpp: remove loaded_xap field, and use
1056 GetDeployment()->IsLoadedFromXap(). Also, switch from
1057 Surface::SetXapLocation to Deployment::SetXapLocation.
1059 2009-04-16 Jeffrey Stedfast <fejj@novell.com>
1061 * plugin-debug.cpp (reflect_value): Hush formatter warnings.
1063 2009-04-16 Geoff Norton <gnorton@novell.com>
1065 * plugin-debug.cpp: Avoid having a null deployment in remove_destroyed.
1067 2009-04-16 Geoff Norton <gnorton@novell.com>
1069 * plugin-debug.cpp: Avoid having a null deployment in selection_changed.
1071 2009-04-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1075 * plugin-class.cpp: Implement some missing js properties.
1076 Almost completely fixes MS DRT #21.
1078 2009-04-15 Stephane Delcroix <sdelcroix@novell.com>
1080 * plugin.cpp (PluginInstance::LoadXAP): set the surface xap_location
1082 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1086 * plugin-class.h: Added @GeneratePInvoke to all methods used
1087 in managed code. For C++ methods also generate the
1088 corresponding C method.
1091 * cbinding.cpp: Regenerated.
1093 2009-04-10 Jackson Harper <jackson@ximian.com>
1095 * plugin-class.cpp: Instead of unreffing just delete the value.
1097 2009-04-09 Jackson Harper <jackson@ximian.com>
1099 * plugin.cpp: Updated method names.
1100 * plugin-class.cpp: Update now that we are getting Value*s from
1103 2009-04-08 Geoff Norton <gnorton@novell.com>
1105 * plugin-debug.cpp: Ensure we set the Deployment here too to avoid
1106 crashes in the XAML window.
1108 2009-04-08 Jeffrey Stedfast <fejj@novell.com>
1110 * plugin*.cpp|h: Use glib integer types rather than stdint.h types
1111 especially see as how we aren't including stdint.h anywhere.
1113 * plugin-class.cpp: Updated for slight Downloader API changes.
1115 2009-04-07 Larry Ewing <lewing@novell.com>
1117 * plugin-debug.cpp (reflect_value): Fix the markup for GRIDLENGTH
1120 2009-04-06 Geoff Norton <gnorton@novell.com>
1122 * plugin-debug.cpp: Ensure we set our deployment before poking in
1125 2009-04-03 Sebastien Pouliot <sebastien@ximian.com>
1127 * plugin.cpp|h: Parse enablehtmlaccess and allowhtmlpopupwindow
1128 from the plugin properties. Add missing properties and C bindings.
1130 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
1132 * plugin-class.cpp: use Uri::ToString instead of originalstring.
1133 BitmapImage::GetUriSource never returns a NULL
1135 2009-04-01 Andreia Gaita <avidigal@novell.com>
1137 * plugin-class.[cpp|h]: move some declarations to the header
1138 so that the bridge code can use it too.
1140 2009-03-31 Jb Evain <jbevain@novell.com>
1142 * plugin-class.h: add key_code and char_code parameters
1143 to callback_dom_event.
1145 2009-03-30 Chris Toshok <toshok@ximian.com>
1147 * plugin.cpp: #include timemanager.h
1149 2009-03-29 Geoff Norton <gnorton@novell.com>
1151 * plugin-class.cpp: Ensure that the ImageSource we get is a BitmapImage
1152 before treating it as such.
1154 2009-03-29 Geoff Norton <gnorton@novell.com>
1156 * plugin-class.cpp: Image.Source is always a BitmapImage
1158 2009-03-28 Sebastien Pouliot <sebastien@ximian.com>
1160 * plugin.cpp|h: Export a new function (get_plugin_dir) that returns
1161 the location of the plugin.
1162 * plugin-glue.cpp: Initialize the runtime using the plugin location.
1164 2009-03-27 Andreia Gaita <avidigal@novell.com>
1166 * plugin.cpp: Don't release return from Eval if they're npobj,
1167 client code might reference it later
1169 2009-03-25 Chris Toshok <toshok@ximian.com>
1171 * plugin.cpp (PluginInstance::StreamAsFile): use uri accessors.
1173 * plugin-class.cpp (MoonlightImageBrushObject::GetProperty): same.
1174 (MoonlightImageObject::GetProperty): same.
1176 * plugin-debug.cpp (get_common_prefix_len): same.
1177 (save_callback): same.
1179 2009-03-25 Jeffrey Stedfast <fejj@novell.com>
1181 * plugin-class.cpp (MoonlightObjectType::LookupName): No longer
1182 takes an include_sl2 argument.
1184 * plugin.cpp (PluginInstance::StreamAsFile): We no longer have
1185 IsSilverlight2() so check the filename extension (fixed to not be
1186 a gross hack). Also got rid of #if PLUGIN_2_0 confusion, we are no
1187 longer supporting a 1.0-only build.
1188 (PluginInstance::CreateWindow): Surface.ctor() no longer takes a
1189 silverlight2 argument.
1191 * plugin-debug.cpp (reflect_value): Don't crash when the
1192 DependencyObject is null.
1194 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1196 * plugin-class.cpp: Move IsVersionSupported implementation to
1199 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1204 * cbinding.cpp: Include generated files in the build.
1206 2009-03-23 Chris Toshok <toshok@ximian.com>
1208 * plugin-class.cpp (value_to_variant): getting a Uri in the plugin
1211 2009-03-21 Andreia Gaita <avidigal@novell.com>
1213 * plugin-class.[h|cpp]: Add html_object_invoke_self
1214 (same as _invoke but with no name arg), that uses
1215 NPN_InvokeDefault instead.
1217 2009-03-21 Chris Toshok <toshok@ximian.com>
1219 * plugin-class.cpp (MoonlightImageObject::GetProperty):
1220 source->GetUriSource() returns a Uri, not a string.
1221 (MoonlightImageBrushObject::GetProperty): same.
1223 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1225 * plugin-downloader.h:
1226 * plugin-downloader.cpp: PluginDownloader: follow refcounting
1227 laws and ref/unref the response.This fixes a crash where
1228 firefox would unref FFxDownloaderResponse causing its
1229 destruction, and then PluginDownloader would attempt to use
1230 (abort) that response later on.
1232 2009-03-10 Chris Toshok <toshok@ximian.com>
1234 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): for
1235 DumpNameScope, s/LogicalParent/Parent.
1236 (MoonlightDependencyObjectObject::Invoke): for GetParent, make
1237 sure the dob is a frameworkelement subclass, and call
1238 GetLogicalParent on it.
1240 2009-03-10 Jackson Harper <jackson@ximian.com>
1242 * plugin-debug.cpp: COnsistentify method name.
1244 2009-03-03 Jackson Harper <jackson@ximian.com>
1246 * plugin.cpp|h: Update signature of SetProperty.
1248 2009-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1250 * plugin.cpp: Add informational printf.
1252 2009-02-23 Chris Toshok <toshok@ximian.com>
1254 * plugin-class.cpp (MoonlightContentObject::Invoke): add better
1255 error messages on createFromXaml.
1257 2009-02-23 Andreia Gaita <avidigal@novell.com>
1259 * plugin-class.[cpp|h]: Add html_object_has_property so managed code
1260 can check for properties before trying to get them. Free scriptable
1263 2009-02-22 Larry Ewing <lewing@novell.com>
1266 * plugin.cpp, plugin.h: add extra padding to our NPBool values so
1267 that buggy browsers don't smash the stack.
1269 2009-02-19 Andreia Gaita <avidigal@novell.com>
1271 * plugin-class.[cpp|h]: On [Get|Set]Property for scriptable objects,
1272 use the property name instead of the handle to call back to the
1273 property. This way we can reuse the virtual functions on
1274 ScriptObject, and it's one less GCHandle walking around.
1275 Fix exception define to have a block.
1277 2009-02-19 Andreia Gaita <avidigal@novell.com>
1279 * plugin-class.cpp: Fix casing lookup
1281 2009-02-19 Andreia Gaita <avidigal@novell.com>
1283 * plugin.cpp: Implement returning values from Evaluate
1284 * plugin-class.[cpp|h]: Expose variant_to_value so Evaluate can
1285 use it to convert values from js
1287 2009-02-17 Jeffrey Stedfast <fejj@novell.com>
1289 * plugin-debug.cpp: Pass true as the only_changed argument to
1290 DO::GetProperties().
1292 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1294 * plugin-class.cpp: Remove case for MediaErrorEventArgs.
1296 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1298 * plugin-class.cpp: EventListenerProxy: set our object type
1301 2009-02-16 Andreia Gaita <avidigal@novell.com>
1303 * plugin-class.cpp: Check return value on GetProperty and throw a js
1304 exception if it wasn't found. Don't lowercase names, scriptable objects
1307 2009-02-16 Geoff Norton <gnorton@novell.com>
1309 * plugin-class.cpp|h: Image(Brush).(Image)Source is the UriSource of the
1310 underlying ImageSource in the javascript API.
1312 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
1314 * plugin-debug.cpp (reflect_dependency_object_in_tree): Updated to
1315 use DO::GetProperties() instead so that we could get attached
1318 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
1320 * plugin-debug.cpp (reflect_dependency_object_in_tree): Fixed up
1321 to use Type::GetProperties().
1323 2009-02-11 Andreia Gaita <avidigal@novell.com>
1325 * plugin-class.cpp: lowercase all method, property and event name
1326 references, they're all added in lowercase
1328 2009-02-11 Andreia Gaita <avidigal@novell.com>
1330 * plugin-class.cpp (html_object_invoke): Check method invoke return
1331 value and throw an exception if it fails. Add an alternate "static"
1332 version of the js exception throwing macro.
1334 2009-02-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1336 * plugin-class.cpp: Change our static DependencyProperty
1337 backing fields to store an integer id instead of an
1338 instance to a DependencyProperty. This way we can have true
1339 per-deployment dependency properties.
1341 2009-02-10 Jackson Harper <jackson@ximian.com>
1343 * plugin.cpp|h: Added a param to the SetProperty callback, plugin
1344 doesn't need to use it for anything.
1346 2009-02-05 Geoff Norton <gnorton@novell.com>
1348 * plugin.cpp: We cannot safely null the deployment here as NPN_GetURLNotify
1349 can sync invoke NPN_URLNotify in the same tick, and we might need the deployment
1352 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
1354 * plugin-class.cpp (MoonlightDependencyObjectObject::GetProperty):
1355 Updated for ReadLocalValue method rename.
1357 * plugin-downloader.cpp (plugin_downloader_create_webrequest):
1358 Don't crash if we don't have a browser bridge.
1360 2009-02-04 Jackson Harper <jackson@ximian.com>
1362 * plugin.cpp|h: Updated xaml signatures.
1364 2009-02-04 Andreia Gaita <avidigal@novell.com>
1366 * plugin-class.[cpp|h]: Change Invoke call to take a name parameter,
1367 so that methods can be called by name as well.
1369 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1371 * plugin.cpp: PluginInstance::UrlNotify: We need to set the
1372 current deployment here.
1374 * plugin-glue.cpp: NPP_Destroy: We need to set the current
1377 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1379 * plugin-class.cpp: Use Type::GetName () instead of accessing
1382 2009-02-03 Fernando Herrera <fherrera@novell.com>
1384 * plugin.cpp: moonlight_flags is 64bits now.
1386 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1388 * plugin-class.cpp: proxy_listener_to_javascript: we need to set the
1389 current deployment after emitting an event to javascript.
1391 2009-01-29 Geoff Norton <gnorton@novell.com>
1394 * plugin-class.cpp: Ensure that we set the correct context when dtoring our
1395 plugin and its js-object instances.
1397 2009-01-29 Geoff Norton <gnorton@novell.com>
1399 * plugin.cpp: When there are 2 plugins on a page, StreamAsFile can be called
1400 after the deployment has been changed away from this instance. Ensure we
1401 set our deployment properly in this case.
1403 2009-01-29 Geoff Norton <gnorton@novell.com>
1405 * windowless.cpp: Store our creation deployment so we can emit events
1406 in the right deployment.
1408 2009-01-29 Geoff Norton <gnorton@novell.com>
1410 * plugin.cpp: Register the surface with the Deployment. Start cleaning
1411 up all the places we pass this around too. (More to come)
1413 2009-01-29 Geoff Norton <gnorton@novell.com>
1415 * plugin.cpp: Ensure that we create our Surface and SystemTimeSource
1416 in the correct deployment.
1418 2009-01-29 Larry Ewing <lewing@novell.com>
1420 * plugin-debug.cpp (reflect_dependency_object_in_tree): restrict
1421 the VisualChild expansion away from Panel and border to keep from
1422 slowing down the tree that Badly.
1424 2009-01-29 Sebastien Pouliot <sebastien@ximian.com>
1426 * plugin-class.cpp: Only call NPN_ReleaseObject on callback
1427 if the object is *not* a string.
1430 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1432 * plugin.cpp: ~PluginInstance: Call Dispose on the deployment and the
1433 surface. PluginXamlLoader::TryLoad: ref any error arguments we emit
1436 2009-01-28 Larry Ewing <lewing@novell.com>
1438 * plugin-debug.cpp: show VisualChild on all FEs so that we can
1439 navigate into ContentPresenter.
1441 2009-01-28 Larry Ewing <lewing@novell.com>
1443 * plugin-debug.cpp (reflect_value): add more value types.
1445 2009-01-28 Sebastien Pouliot <sebastien@ximian.com>
1447 * plugin-class.cpp: MediaElementState is used as a string inside
1448 Javascript applications but it's an enum (in the managed world).
1450 2009-01-28 Chris Toshok <toshok@ximian.com>
1452 * plugin-debug.cpp (selection_changed): fix crash.
1453 (reflect_dependency_object_in_tree): add Control handling - put a
1454 "Visual Child" under it that gives the subtree.
1456 * plugin-class.cpp (value_to_variant): not sure what to do here
1457 for UINT32's, since NPVariants only have INT32...
1459 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1461 * plugin.cpp: Call Deployment::Initialize in runtime_init.
1463 2009-01-27 Geoff Norton <gnorton@novell.com>
1465 * plugin.cpp: Use the static overload here.
1467 2009-01-26 Geoff Norton <gnorton@novell.com>
1469 * plugin.cpp: Ensure we're in the right deployment/domain before we
1470 start poking around in managed land.
1472 2009-01-26 Geoff Norton <gnorton@novell.com>
1474 * plugin.cpp|h: Clean this stuff up now that our book-keeper is
1475 Deployment* not internally on MonoDomain*.
1476 * plugin-class.cpp: Ensure that we set the tls slot in Deployment
1477 to the Deployment* this plugin owns before transitioning into libmoon
1479 2009-01-26 Jackson Harper <jackson@ximian.com>
1481 * plugin.cpp|h: SourceLocation for Sl2 xaps is the .xap url.
1483 2009-01-26 Geoff Norton <gnorton@novell.com>
1485 * plugin.cpp|h: We now go thru Deployment to warm up the application.
1487 2009-01-25 Geoff Norton <gnorton@novell.com>
1489 * plugin.cpp: We initialize a Deployment for every plugin regardless
1490 of wether its 1.0 or 2.0 context now.
1492 2009-01-25 Chris Toshok <toshok@ximian.com>
1494 * plugin.cpp (PluginInstance::CreatePluginAppDomain): create/set
1495 the deployment for this plugin before we return, so it's set
1496 before Application.CreateFromXap is called.
1498 2009-01-23 Geoff Norton <gnorton@novell.com>
1500 * plugin.cpp: Force keep-delegates on in SVN (only if a custom
1501 MONO_DEBUG doesn't already exist in the environment)
1503 2009-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1505 * plugin-debug.cpp: Integrate munxap into our debugging experience.
1507 2009-01-21 Jb Evain <jbevain@novell.com>
1509 * plugin.cpp|h: remove PluginInstance::GetBrowserInformation
1510 and ::EvaluateToVariant as well as
1511 plugin_instance_get_browser_information which is now implemented
1512 in the managed code.
1514 2009-01-21 Andreia Gaita <avidigal@novell.com>
1516 * plugin-class.[h|cpp]: Add support for registering objects as a
1517 tree. fix casing on lookups.
1519 2009-01-21 Sebastien Pouliot <sebastien@ximian.com>
1521 * plugin-class.cpp: Process the difference between SL1/2 default
1522 values on a case-by-case basis. Right now this (re-fix) UIElement::
1523 RenderTransformProperty (wrt null) and FrameworkElement::[Height|
1524 Width]Property (wrt NaN).
1526 2009-01-20 Geoff Norton <gnorton@novell.com>
1528 * plugin-class.cpp: Ensure that we convert doubles in the ASCII
1529 locale, as we attempt to parse in this locale.
1533 2009-01-20 Sebastien Pouliot <sebastien@ximian.com>
1535 * plugin-class.cpp: Call GetLocalValue on DO so we don't provide the
1536 default values used in SL2 to SL1 applications. This fix Fox
1537 http://www.silverlight.net/fox/ while allowing to use the (non-null)
1538 default value for UIElement::RenderTransformProperty
1540 2009-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1542 * plugin.mdp: Updated.
1544 2009-01-18 Geoff Norton <gnorton@novell.com>
1546 * plugin-downloader.cpp: Avoid crashing when the bridge isn't available
1548 2009-01-18 Larry Ewing <lewing@novell.com>
1550 * plugin-debug.cpp (reflect_foreach_current_value): don't crash if
1551 we can't lookup the owning type.
1553 2009-01-16 Jb Evain <jbevain@novell.com>
1555 * plugin-class.cpp: move STRDUP_FROM_VARIANT and
1556 STRLEN_FROM_VARIANT to plugin.h
1557 * plugin.h: also define PluginInstance::EvaluateToVariant
1558 * plugin.cpp: implement PluginInstance::GetBrowserInformation
1559 and PluginInstance::EvaluateToVariant.
1561 2009-01-16 Jb Evain <jbevain@novell.com>
1563 * plugin.cpp|h: remove PluginInstance::LoadUrl.
1565 2009-01-15 Jackson Harper <jackson@ximian.com>
1567 * plugin.cpp|h: Updated signature for the xaml callbacks.
1569 2009-01-13 Geoff Norton <gnorton@novell.com>
1571 * plugin.cpp: Fix our MonoDomain cleanup (hopefully) once and for all.
1573 2009-01-13 Geoff Norton <gnorton@novell.com>
1575 * plugin.cpp: Don't free domain's until we fix the problems on the
1576 mono side associated with that.
1578 2009-01-13 Geoff Norton <gnorton@novell.com>
1580 * plugin.cpp: Ensure we finalize the domain before freeing it.
1582 2009-01-13 Jackson Harper <jackson@ximian.com>
1584 * plugin.cpp|h: Updated xaml callback sig.
1586 2009-01-13 Jb Evain <jbevain@novell.com>
1588 * plugin.cpp: specify System.Windows's fullname when loading it,
1589 to avoid loading a different version, such as the desktop one.
1591 2009-01-13 Geoff Norton <gnorton@novell.com>
1593 * plugin.cpp: Update to build appdomains properly isolated for each
1594 PluginInstance. Also change the location resolution of System.Windows
1597 2009-01-13 Geoff Noton <gnorton@novell.com>
1599 * plugin.cpp: Find System.Windows.dll a slightly different way
1600 so that we can search in MONO_PATH for it and not just the installed
1601 prefix. Fixes test runs on the buildbots.
1603 2009-01-12 Jb Evain <jbevain@novell.com>
1605 * plugin.h, plugin.cpp: remove the need for a moonlight.exe
1606 launcher by calling directly methods in System.Windows. We're
1607 getting the System.Windows relative to the moonlight mscorlib.dll.
1608 * Makefile.am: remove references to moonlight.cs and moonlight.exe.
1609 * moonlight.cs: delete.
1611 2009-01-12 Geoff Norton <gnorton@novell.com>
1613 * plugin.cpp: Update to reflect changes in the mono embedding API.
1615 2009-01-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1617 * plugin.cpp: Unconfuse a bit: initParams is a char*, so use a boolean
1618 value to initialize it.
1620 2009-01-10 Jeffrey Stedfast <fejj@novell.com>
1622 * plugin.cpp (moonlight_authors): Updated.
1624 2009-01-08 Jeffrey Stedfast <fejj@novell.com>
1626 * plugin-class.cpp (MoonlightKeyEventArgsObject::GetProperty):
1627 Updated for method name changes.
1629 2008-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1631 * plugin.mdp: Updated.
1633 2008-12-18 Chris Toshok <toshok@ximian.com>
1635 * plugin.h, plugin.cpp: rework the app domain stuff slightly. we
1636 now only call mono_jit_init_version once (and don't attempt to
1637 unload that room AppDomain), and then call mono_domain_create from
1638 each plugin instance (and we *do* free that AppDomain).
1640 2008-12-17 Chris Toshok <toshok@ximian.com>
1642 * plugin.cpp (PluginInstance::MonoInit): turns out this wasn't the
1643 domain name, but the version. it needs to be "moonlight".
1645 * moonlight.cs: remove reference to Helper, as this was only used
1646 to print out the Mono.Moonlight.dll fully qualified name.
1648 * Makefile.am: remove references to Mono.Moonlight.dll.
1650 2008-12-17 Chris Toshok <toshok@ximian.com>
1652 * plugin.cpp (PluginInstance::MonoInit): supply a function pointer
1653 that actually exists to dladdr when PLUGIN_INSTALL is defined.
1654 Also, use a similar app domain name ("moonlight-%p" where %p is
1655 the PluginInstance*).
1657 2008-12-17 Geoff Norton <gnorton@novell.com>
1659 * plugin.cpp: gtk_plug_new takes a GdkNativeWindow which has
1660 differing precision on amd64 and i586.
1662 2008-12-16 Chris Toshok <toshok@ximian.com>
1664 * plugin.h, plugin.cpp: move all the stuff from mono.cpp (and
1665 moon-mono.h) here. Remove all global variables and make them
1666 instance variables on PluginInstance (of particular importance is
1667 the AppDomain). This means every PluginInstance gets their own
1668 app domain, their own boot assembly, etc, and we can drop all the
1669 AppDomain stuff from moonlight.cs.
1671 * mono.cpp, moon-mono.h: nuke.
1673 * plugin-glue.cpp: remove include of moon-mono.h
1675 * moonlight.cs: remove all the AppDomain specific stuff here - the
1676 unload handler is gone (replaced by a mono_domain_free call in
1677 plugin.cpp), the Helper calls to create instances and unwrap them
1678 has been replaced with type lookups + Activator.CreateInstance.
1680 2008-12-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1682 * plugin.cpp: SetSource: in case we already have a surface, detach
1683 downloaders from it right away, this should fix the random failures
1686 2008-12-03 Larry Ewing <lewing@novell.com>
1688 * plugin.cpp: clean up source setting so that the property is
1689 always set and we don't accidentally schedule more than one idle
1692 2008-12-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1694 * browser-bridge.h, plugin-class.cpp, plugin-class.h: Rework event
1695 attaching/detaching a bit: html_object_attach_event now takes a
1696 context argument, which is passed to the event callback.
1697 ff2/3-dom.cpp: After removing the event listener we delete the
1700 2008-12-02 Chris Toshok <toshok@ximian.com>
1702 * plugin-class.cpp (MoonlightScriptControlObject::Invoke): fix
1703 isVersionSupported - i don't like knocking off 2.0 except when
1704 PLUGIN_SL_2_0 is enabled, but it seems like if people are checking
1705 2.0, they'll assume managed code.
1707 2008-11-26 Jackson Harper <jackson@ximian.com>
1709 * plugin.cpp|h: The parser no longer requires assemblies to be
1710 downloaded, so the mapping stuff is commented out.
1711 - The parser now treats events as properties, so we use
1712 SetProperty instead of HookupEvent.
1714 2008-11-22 Geoff Norton <gnorton@novell.com>
1716 * windowless.cpp: Revert
1717 * windowless.h: Include glib.h and moonlight.h so that GDK_NATIVE_WINDOW_POINTER
1718 is defined and GdkNativeWindow gets its correct width of 8 bytes to prevent
1721 2008-11-21 Alp Toker <alp@nuanti.com>
1723 * plugin-class.cpp: Fix 'DownloadProgressCanged' typo in DOM event
1724 names leading to dropped events.
1726 2008-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1728 * plugin-class.cpp: Implement variant<->value conversion for NPObjects.
1729 * plugin.h, plugin.cpp: Added plugin_instance_get_id and
1730 plugin_instance_get_host.
1732 2008-11-10 Jeffrey Stedfast <fejj@novell.com>
1736 * plugin-debug.cpp (plugin_debug): Connect to surface
1737 DestroyedEvent to close the debug window so that it won't crash
1738 when trying to use it once the site has been navigated away from.
1740 2008-11-06 Stephane Delcroix <sdelcroix@novell.com>
1743 * plugin-downloader.h|cpp:
1744 * firefox/browser-http.inc: pass the uri with the finished handler
1745 for further validation. r:gnorton
1747 2008-10-31 Chris Toshok <toshok@ximian.com>
1749 * plugin.cpp (PluginInstance::CreateWindow): call SetTransparent
1750 on moon_window instead of the surface.
1752 * windowless.cpp (MoonWindowless::HandleEvent): pass
1753 GetTransparent() to Surface::PaintToDrawable here.
1755 2008-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1757 * plugin.cpp: Implement EnableRedrawRegions by linking them to
1758 RUNTIME_INIT_SHOW_EXPOSE.
1760 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
1762 * plugin.cpp: Add a row to the Properties dialog informing about the
1765 2008-10-21 Chris Toshok <toshok@ximian.com>
1767 * plugin-class.cpp, plugin-class.h: event listener leak fix v3.0
1769 2008-10-21 Chris Toshok <toshok@ximian.com>
1771 * plugin-class.cpp, plugin-class.h: since I removed the value_dtor
1772 from xaml_proxies, we need to iterate over it and destroy the
1773 proxies manually now. Also, disavow ownership of proxies when we
1776 2008-10-20 Chris Toshok <toshok@ximian.com>
1778 * plugin-class.cpp (MoonlightObject::ClearXamlEventProxy): this
1779 method cannot call RemoveHandler on the proxy. instead, we return
1780 the proxy and our callers can do it
1781 (MoonlightScriptControlObject::SetProperty): here
1782 (MoonlightContentObject::SetProperty): here
1783 (MoonlightDependencyObjectObject::SetProperty): and here
1785 (EventListenerProxy::~EventListenerProxy): here we need to clear
1786 out the xaml/non-xaml proxy regardless of of whether or not it's a
1787 function. and make sure to call the right method depending on our
1790 2008-10-20 Chris Toshok <toshok@ximian.com>
1792 * plugin-class.cpp, plugin-class.h: Rather complicated lifecycle
1793 sorting out dealing with EventListenerProxies - there was a reason
1794 I was avoiding this :) - fixes bug 436060.
1796 1) if the target (the object on which the proxy calls AddHandler)
1797 is destroyed, the proxy should go away.
1799 2) if the owner (the MoonlightObject which created the proxy) is
1800 invalidated, the proxy should also be invalidated.
1802 3) if the owner is destroyed, the proxy should call RemoveHandler
1803 on the target. Note that we shouldn't destroy the proxy here -
1804 it'll be destroyed by virtue of the data_dtor stuff in
1807 * windowless.h, windowless.cpp: add support for experimental
1808 extension (see mozilla.org bug #430451) for windowless cursors.
1810 2008-10-20 Chris Toshok <toshok@ximian.com>
1812 * plugin-entry.cpp: get rid of all those CallNPP_* macro uses.
1813 just invoke the damn function.
1815 * plugin-proxy.cpp, moonlight.h: include npfunctions.h instead of npupp.h
1817 * plugin-glue.cpp, plugin.h: fix types.
1819 * moz-sdk/*: rev to a newer version of the moz-sdk files.
1821 2008-10-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1823 * plugin-class.cpp: proxy_listener_to_javascript: if calldata is null,
1824 only pass 1 argument to javascript. Fixes #426440 partially (mp3s
1825 are now downloaded).
1827 2008-10-16 Jb Evain <jbevain@novell.com>
1829 * moonlight.h: update SL2 mime type and runtime version.
1831 2008-10-14 Chris Toshok <toshok@ximian.com>
1833 * windowless.cpp (MoonWindowless::GetGdkWindow): get the
1834 netscapeWindow from our plugin id and return a new GdkWindow for
1837 2008-10-14 Stephane Delcroix <sdelcroix@novell.com>
1839 * windowless.h|.cpp: implements GetGdkWindow ()
1841 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1843 * plugin-class.cpp: Fix statement order.
1845 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1847 * plugin.cpp, plugin-class.cpp: Add some null checks, found while using
1848 firebug during plugin initialization.
1850 2008-10-07 Larry Ewing <lewing@novell.com>
1852 * windowless.cpp (MoonWindowless::HandleEvent): set the crossing
1853 mode of our synthetic events to normal.
1855 Fixes missing mouse leave events for InputHitTst.html (143)
1857 2008-10-07 Larry Ewing <lewing@novell.com>
1859 * plugin.cpp: remove a redundant call to SetSurface after creating
1860 a surface, it is handled in the ctor.
1862 Fixes the double render_cb registration problem we were seeing
1863 that caused high framerates and starvation problems.
1865 2008-10-03 Stephane Delcroix <sdelcroix@novell.com>
1867 * plugin.cpp: call SetPageURL even for embedded xaml. Makes fixture
1868 145 break, as expected.
1870 2008-09-30 Chris Toshok <toshok@ximian.com>
1872 * plugin-debug.cpp: more debug window work - it's sorted by name
1873 now, and add support for colors, timespans, and a few other types.
1875 2008-09-30 Chris Toshok <toshok@ximian.com>
1877 * plugin-debug.cpp: rework the Debug window entirely. no we don't
1878 just show children, but all property values.
1880 2008-09-28 Chris Toshok <toshok@ximian.com>
1883 plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): add
1884 support for dumpNameScope.
1886 2008-09-26 Fernando Herrera <fherrera@novell.com>
1888 * mono.cpp: Fix compilation when configured with --with-debug=no
1890 2008-09-25 Jeffrey Stedfast <fejj@novell.com>
1892 * plugin.cpp (PluginInstance::PluginInstance): Initialize
1893 source_location to NULL - probably the source of the random
1894 crashes we were seeing on the buildbot earlier.
1896 2008-09-25 Stephane Delcroix <sdelcroix@novell.com>
1898 * plugin.cpp: update the Surface::source_location while setting
1899 the source_location.
1901 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1903 * plugin.cpp: Show a item in the right-click menu allowing the ms
1904 codecs to be installed manually.
1906 2008-09-23 Chris Toshok <toshok@ximian.com>
1908 * plugin.cpp (PluginInstance::CreateWindow): plug some memory
1911 2008-09-19 Jeffrey Stedfast <fejj@novell.com>
1913 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): For
1914 RemoveEventListener(), we don't need to look up the event_id more
1917 * plugin.cpp (PluginXamlLoader::HookupEvent): Call
1918 event_object_add_xaml_listener() instead of
1919 event_object_add_javascript_handler() since this is happening as a
1920 result of a listener being set in the XAML (which means it has to
1921 have a token value of 0).
1923 * plugin-class.cpp (EventListenerProxy::AddXamlHandler): New method.
1924 (event_object_add_xaml_listener): New.
1926 2008-09-19 Stephane Delcroix <sdelcroix@gnome.org>
1928 * plugin-class.cpp: use the nex dl->Open interface
1930 2008-09-16 Fernando Herrera <fherrera@novell.com>
1932 * Makefile.am: Add asf include dir
1934 2008-09-06 Chris Toshok <toshok@ximian.com>
1936 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): look
1937 up the event here, the DO api is gone.
1938 (EventListenerProxy::~EventListenerProxy): use the DestroyedEvent
1939 id instead of "destroyed".
1941 2008-09-03 Larry Ewing <lewing@novell.com>
1943 * plugin-class.cpp, plugin-class.h: remove all the ControObject
1944 wrapper foo, Control has the properties we need and this looks
1947 2008-08-28 Chris Toshok <toshok@ximian.com>
1949 * plugin.cpp, plugin-class.cpp: track move from C-binding to C++
1950 for the xaml_create/hydrate_from* methods.
1952 2008-08-28 Larry Ewing <lewing@novell.com>
1954 Make a little progress in getting opera to load the plugin
1955 correctly in windowless mode. Opera is still only minimally
1956 functional but the plugin should come up now.
1958 * plugin.cpp, plugin.h: don't get the source url via GetProperty
1959 that causes operapluginwrapper to reenter and breaks everything.
1960 Handle a few other operapluginwrapper quirks and pass resizing
1961 through the window not the surface (so that UpdateWindowInfo will
1964 * plugin-glue.cpp: slightly rework the initialization, don't fixup
1965 errors just try to fail early.
1967 * windowless.cpp (MoonWindowless::UpdateWindowInfo): new function
1968 to copy the needed members of NPWindow that opera is prematurely
1971 2008-08-25 Chris Toshok <toshok@ximian.com>
1973 * plugin-class.cpp, windowless.cpp: track rect change.
1975 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1977 * plugin.cpp: Fix build.
1979 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1981 * plugin-downloader.cpp: Drastically enhance the debugging experience
1984 2008-08-18 Larry Ewing <lewing@novell.com>
1986 * plugin-class.cpp (MoonlightStrokeCollectionObject::Invoke):
1987 unref the collection we've created.
1989 2008-08-18 Geoff Norton <gnorton@novell.com>
1991 * plugin-class.cpp: Its possible that we dont have a surface in the
1992 OnError case at this point, guard against this.
1994 2008-08-18 Geoff Norton <gnorton@novell.com>
1996 * plugin.cpp: Ensure we dont set object.Source to a data mime-type value.
1998 2008-08-18 Geoff Norton <gnorton@novell.com>
2000 * windowless.cpp: Null the GdkEventKey.string value.
2001 * plugin-class.cpp|h: Rename KeyboardEventArgs->KeyEventArgs,
2002 but support returning "KeyboardEventArgs" to javacsript toString()
2005 2008-08-17 Geoff Norton <gnorton@novell.com>
2007 * plugin.cpp|h: Add a C binding for GetSourceLocation ()
2009 2008-08-17 Chris Toshok <toshok@ximian.com>
2011 * plugin.cpp, plugin-class.cpp, mono.cpp, plugin-proxy.cpp,
2012 plugin.h, moonlight.h, moon-mono.h: SL_2_0 -> SL_PLUGIN_2_0.
2014 2008-08-17 Chris Toshok <toshok@ximian.com>
2016 * Makefile.am: INCLUDE_MONO_RUNTIME ->
2017 INCLUDE_BROWSER_MANAGED_CODE.
2019 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
2021 * plugin-class.cpp (MoonlightStylusInfoObject::GetProperty): Use
2022 the c++ property accessors for the stylus classes.
2024 2008-08-14 Jackson Harper <jackson@ximian.com>
2026 * plugin.cpp|h: We now get a 'dest' pointer for hooking up events,
2027 this is basically ignored by the javascript event hookup since
2028 everything is in a global space.
2030 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2032 * plugin.h: Don't use base_unref, call unref on the instance.
2034 2008-08-14 Geoff Norton <gnorton@novell.com>
2036 * plugin.cpp|h: The timeout C bindings are no longer used.
2038 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2040 * plugin-class.cpp: Remove spew.
2041 * moonlight.cs: Don't initialize Helper.Agclr here, it's not in the
2044 2008-08-13 Geoff Norton <gnorton@novell.com>
2046 * plugin.cpp|h: Reuse the old html_timer infrastructure for the
2047 intial DispatcherTimer implementation.
2049 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2051 * moonlight.cs: Set Helper.Agclr upon startup.
2053 2008-08-11 Larry Ewing <lewing@novell.com>
2055 * plugin.cpp (PluginInstance::StreamAsFile): horrible but
2056 temporary hack to load application/x-silverlight objects as sl2
2057 files when .xap is present in the filename.
2059 2008-08-11 Geoff Norton <gnorton@novell.com>
2061 * moonlight.h: Some sites are doing an exact string comparison
2062 in Javascript of this value. Unfortunately we need to drop
2063 out compatability string.
2065 2008-08-08 Chris Toshok <toshok@ximian.com>
2067 * plugin-class.cpp: add sl2 arguments to the various parser/enum
2068 functions that need them.
2070 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2072 * plugin.mdp: Make src and plugin projects build.
2074 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2076 * plugin-debug.cpp: Deleted Visual (moved content into UIElement), and
2077 renamed VisualCollection to UIElementCollection.
2079 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2081 * plugin-class.cpp: Use C++ bindings instead of C bindings.
2083 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2085 * plugin.cpp, plugin.h: Implement PluginInstance::Evaluate.
2087 2008-07-26 Chris Toshok <toshok@ximian.com>
2089 * plugin-class.h, plugin-class.cpp: add MoonlightRoutedEventArgs
2090 stuff between EventArgs and KeyboardEventArgs/MouseEventArgs.
2091 RoutedEventArgs exposes a 2.0-only property ("source"), and both
2092 Keyboard/MouseEventArgs expose a 2.0-only property as
2095 2008-07-25 Chris Toshok <toshok@ximian.com>
2097 * plugin-class.h, plugin-class.cpp: add a flags field to the
2098 mapping, so we can start to differentiate the 1.0 and 2.0 JS apis.
2100 * plugin.cpp (PluginInstance::CreateWindow): pass silverlight2 to
2103 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
2105 * plugin-class.cpp (MoonlightCollectionObject::GetProperty): Use
2106 collection->GetCount() instead of poking at the internal
2107 representation of the data.
2108 (MoonlightCollectionObject::Invoke): Need to add/remove/insert/etc
2109 items as Values now.
2111 2008-07-23 Chris Toshok <toshok@ximian.com>
2113 * plugin-class.cpp: track DependencyProperty changes.
2115 2008-07-18 Chris Toshok <toshok@ximian.com>
2117 * windowless.h, windowless.cpp: switch this from being a surface
2118 subclass to being a MoonWindow subclass, which fixes the need for
2119 us to worry about whether we have a widget (for fullscreen) in
2122 2008-07-18 Jb Evain <jbevain@novell.com>
2124 * moonlight.cs (UnloadDomain): actually call the plugin unload callback.
2126 2008-07-18 Jackson Harper <jackson@ximian.com>
2128 * plugin-debug.cpp: Use new method for getting content element.
2130 2008-07-17 Jackson Harper <jackson@ximian.com>
2132 * plugin-debug.cpp: Add the contents of UserControls to the tree too.
2134 2008-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2136 * npstream-request.cpp, plugin-entry.cpp: Add missing #include
2139 2008-07-10 Andrew Jorgensen <ajorgensen@novell.com>
2141 * plugin-proxy.cpp: Include config.h (which got un-included
2144 2008-07-10 Chris Toshok <toshok@ximian.com>
2146 * plugin.cpp (PluginInstance::UpdateSourceByReference): rework
2147 this so that it uses the NPN api instead of the bridge-requiring
2148 html_get_element_text.
2150 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
2152 * plugin.mdp: Updated.
2154 2008-07-09 Geoff Norton <gnorton@novell.com>
2156 * plugin.cpp: UrlNotify now calls dl->NotifyFinished() and
2157 StreamAsFile calls SetFilename
2158 * plugin-downloader.cpp: Update for the Downloader changes
2159 to NotifyFinished / SetFilename
2161 2008-07-09 Larry Ewing <lewing@novell.com>
2163 * windowless.cpp: make sure we proxy events to the fullscreen
2164 widget when we are in fullscreen mode.
2166 Fixes silverlight.net/fox in fullscreen mode.
2168 2008-07-08 Sebastien Pouliot <sebastien@ximian.com>
2170 * plugin-class.cpp: Make sure we free (or nullify) before calling
2173 2008-07-07 Jeffrey Stedfast <fejj@novell.com>
2175 * mono.cpp: Fixed includes.
2177 2008-07-06 Chris Toshok <toshok@ximian.com>
2179 * windowless.cpp (WindowlessSurface::HandleEvent):
2180 plugin_button_press_callback takes the plugin for user_data, not
2183 2008-07-06 Chris Toshok <toshok@ximian.com>
2185 * plugin.cpp (PluginInstance::Initialize): add a way to override
2186 the windowless setting. set the MOONLIGHT_NO_WINDOWLESS
2187 environment variable, and plugins will be created windowed,
2188 regardless of the JS.
2190 2008-07-02 Chris Toshok <toshok@ximian.com>
2192 * Makefile.am (INCLUDES): add src/zip
2194 * plugin.cpp (PluginInstance::StreamAsFile): in the case where the
2195 1.0 version of the plugin is fed a .xap file, show something to
2196 the user saying it's not going to be able to render it.
2198 2008-07-02 Chris Toshok <toshok@ximian.com>
2200 * plugin.h, plugin.cpp: more clean up in the class decl.
2202 * plugin-class.cpp, plugin-debug.cpp, plugin-glue.cpp: fallout
2203 from the above change.
2205 2008-07-02 Jeffrey Stedfast <fejj@novell.com>
2207 * plugin.cpp (PluginInstance::Properties): Added a "Show text
2210 2008-07-02 Chris Toshok <toshok@ximian.com>
2212 * plugin.h, plugin.cpp: reorder PluginInstance's class decl so
2213 that public: comes before private:, and make "timers" private,
2214 forcing the addition of TimeoutAdd and TimeoutStop instance
2215 methods so that the C binding can call them. put comments all
2216 over them saying they're obsolete in b2.
2218 2008-07-02 Chris Toshok <toshok@ximian.com>
2220 * plugin-class.h, plugin-class.cpp (string_to_npvariant): make
2223 2008-07-02 Chris Toshok <toshok@ximian.com>
2225 * windowless.h, windowless.cpp (WindowlessSurface::HandleEvent):
2226 move the windowless event handling here so it's not cluttering up
2229 * plugin.h, plugin.cpp: add GetWindow() to return the NPWindow,
2230 make plugin_button_press_callback a public static method so
2231 WindowlessSurface can call it, and remove the entire EventHandle
2232 method body (so it can be moved to WindowlessSurface).
2234 2008-07-02 Chris Toshok <toshok@ximian.com>
2236 * plugin.h, plugin.cpp: remove the old static methods for doing
2237 windowless things, and instead just instantiate a
2238 WindowlessSurface in CreateWindow when windowless == true.
2240 * Makefile.am (libmoonplugin_la_SOURCES): add windowless.{cpp,h}
2242 * windowless.h, windowless.cpp: new WindowlessSurface subclass
2243 which proxies things over to mozilla.
2245 2008-07-02 Chris Toshok <toshok@ximian.com>
2247 * plugin.cpp (NPN_strdup): just set 1 byte to 0 instead of all of
2249 (PluginInstance::SetSurfaceCursor): ifdefed out implementation of
2250 a proposed method for setting the cursor in windowless plugins.
2251 (PluginInstance::CreateWindow): hook up SetSurfaceCursor.
2253 2008-06-28 Geoff Norton <gnorton@novell.com>
2255 * plugin-downloader.(ccp|h): The finished event raises a success condition now
2256 so that we can notify failure on unsuccessful downloads.
2258 2008-06-27 Stephane Delcroix <sdelcroix@novell.com>
2261 * firefox/browser-http.inc:
2262 * firefox/ff2/ff2-bridge.h:
2263 * firefox/ff2/ff2-http.cpp:
2264 * firefox/ff3/ff3-bridge.h:
2265 * firefox/ff3/ff3-http.cpp:
2266 * npstream-request.cpp:
2267 * npstream-request.h:
2268 * plugin-downloader.cpp:
2269 * plugin-downloader.h: move browserrequest/response from the plugin
2270 as downloaderrequest/response.
2272 2008-06-26 Michael Dominic K. <mdk@mdk.am>
2275 * plugin-class.h: Adding ways/wrapper to access the KeyTime property of
2276 the KeyFrame. Fixes #402370 and #402035.
2278 2008-06-19 Chris Toshok <toshok@ximian.com>
2280 * plugin.h: add GetHost(), and rename all the "get"/"set" methods
2281 to "Get"/"Set" to match everything else.
2283 * plugin.cpp: fix up the renaming, and abstract out the code used
2284 in a couple of places (getting the NPNVPluginElementNPObject) into
2287 * npstream-request.cpp (NPStreamRequest::GetResponse): track
2290 * plugin-class.cpp: track renaming.
2291 (MoonlightDependencyObjectObject::Invoke): use GetHost().
2293 2008-06-19 Chris Toshok <toshok@ximian.com>
2295 * plugin-class.cpp (MoonlightScriptControlObject::Invoke): comment
2296 out the version requested spew.
2298 * plugin.cpp (PluginInstance::Initialize): comment some bridge
2299 spew, and make sure to use "else if" for the useragent tests so we
2300 don't end up possibly loading 2 bridges.
2302 2008-06-17 Geoff Norton <gnorton@novell.com>
2304 * plugin-downloader.cpp: When we are Aborted NULL our request
2305 and response objects so that we dont do a double abort from our
2306 dtor. Fully fixes the Downloader::Write issue (i hope).
2308 2008-06-17 Geoff Norton <gnorton@novell.com>
2310 * plugin-downloader.cpp: Set the finished state regardless of
2311 wether we have a downloader or not.
2313 2008-06-17 Geoff Norton <gnorton@novell.com>
2315 * plugin-downloader.cpp: If we destroy ourselves, ensure that we
2316 abort our request/response so that firefox doesn't call back
2317 into a destroyed object.
2319 2008-06-17 Geoff Norton <gnorton@novell.com>
2321 * plugin-downloader.cpp, plugin-downloader.h: Ensure that we dont
2322 attempt to abort a finished stream, as it may have dissappeared from
2325 2008-06-16 Jeffrey Stedfast <fejj@novell.com>
2327 * plugin-class.cpp (_set_dependency_property_value): Don't
2328 g_assert() here, it's not necessary plus we want to get rid of
2329 them anyway for bug #335413.
2331 2008-06-10 Chris Toshok <toshok@ximian.com>
2333 * plugin.cpp, plugin.h: wrap everything 2.0 related with
2334 INCLUDE_MONO_RUNTIME.
2336 2008-06-10 Geoff Norton <gnorton@novell.com>
2338 * plugin-downloader.cpp, plugin-downloader.h: Aborted guarding
2339 is handled in the bridge now, as plugin-downloader's might be
2340 reused. Also add a null check for Downloader in the Read callback
2342 2008-06-10 Geoff Norton <gnorton@novell.com>
2344 * npstream-request.cpp: Return the status of GetResponse.
2346 2008-06-11 Geoff Norton <gnorton@novell.com>
2348 * plugin-downloader.cpp: Only call into the downloader to Write
2349 if we have a downloader set. Fixes a crash when navigating away from
2352 2008-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
2354 * plugin-class.h: Replace g_assert with g_warning.
2356 2008-06-09 Geoff Norton <gnorton@novell.com>
2358 * npstream-request.cpp: Change the g_asserts to g_warning.
2360 2008-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2362 * plugin.mdp: Updated.
2364 2008-06-05 Jeffrey Stedfast <fejj@novell.com>
2366 * plugin-debug.cpp (save_callback): Modified to save mirror in the
2367 same directory layout as the website.
2369 2008-06-05 Geoff Norton <gnorton@novell.com>
2371 * plugin-class.cpp: Update to reflect API changes on the downloader
2374 2008-06-05 Geoff Norton <gnorton@novell.com>
2376 * plugin-downloader.cpp: Update the debugging outputs.
2378 2008-06-05 Geoff Norton <gnorton@novell.com>
2380 * http-downloader.cpp, http-downloader.h, mms-downloader.cpp,
2381 mms-downloader.h: Drop from the build in preparation to move
2382 mms logic into libmoon.
2383 * plugin-downloader.cpp, plugin-downloader.h,
2384 browser-bridge.h: Remove the browser downloader and encapsulate
2385 all the logic in a BrowserRequest.
2386 * npstream-request.cpp, npstream-request.h: New BrowserRequest
2387 based NPStream implementation.
2388 * plugin-downloader.cpp: Fix some debugging output. Add a few
2390 * plugin.cpp: Utilize the new npstream-request class.
2392 2008-06-04 Geoff Norton <gnorton@novell.com>
2394 * plugin-class.cpp: Fix the argument check for MouseEventArgs
2395 GetPosition regression introduced with check_arg_list changes.
2397 2008-06-04 Geoff Norton <gnorton@novell.com>
2399 * plugin-class.cpp: Fix the argument check for hitTest
2400 regression introduced with check_arg_list changes.
2402 2008-06-04 Geoff Norton <gnorton@novell.com>
2404 * plugin-class.cpp: Fix the argument check for setFontSource
2405 regression introduced with check_arg_list changes.
2407 2008-06-04 Jeffrey Stedfast <fejj@novell.com>
2409 * plugin-class.cpp: Added argument sanity checking in all the
2410 Invoke() methods I could find (may have missed some).
2411 (check_arg_list): New function to sanity-check an NPVariant
2412 argument vector for the correct types and the correct number of
2413 arguments (supports optional args as well).
2415 2008-06-04 Jeffrey Stedfast <fejj@novell.com>
2417 * plugin-class.cpp (MoonlightDownloaderObject::Invoke): Check the
2418 arg-types for ::Open(). Fixes bug #394943.
2420 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2422 * plugin-downloader.cpp: Don't delete BrowserDownloaders, it causes
2423 crashes for the moment.
2425 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2427 * mms-downloader.cpp: MmsDownloader::Read: only delete the ASFParser
2428 after we've finished with the data it contains.
2429 MmsDownloader::ProcessMetadataPacket: fix parsing quoted strings.
2430 * mms-downloader.h, npstream-downloader.h: Make dtor virtual.
2431 * plugin-downloader.cpp, plugin-downloader.h: Move ctors and dtors into
2432 cpp file, and delete the BrowserDownloader in PluginDownloader's
2435 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2437 * plugin.mdp: Updated.
2439 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2441 * mms-downloader.cpp: Call Downloader::NotifyFailed when we encounter
2442 an invalid mms source. Parse metadata packets, and set
2443 HttpStreamingFeatures correctly on the downloader.
2444 * plugin-downloader.cpp: Handle rtsp urls.
2446 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2448 * plugin.cpp: Add some debugging foo.
2450 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2452 * npstream-downloader.cpp: If NPN_GetURLNotify fails, notify the
2455 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2457 * mms-downloader.cpp, mms-downloader.h: For the broadcast case keep a
2458 count of the number of packets received, and write new packets at
2459 the end of the previous packet. Don't print warnings for MMS_END
2460 and MMS_STREAM_C packets.
2462 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2464 * plugin-downloader.cpp: Return something from
2465 PluginDownloader::GetPlugin.
2467 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2469 * plugin-downloader.cpp: Spaces->Tabs.
2471 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2473 * mms-downloader.h, mms-downloader.cpp: Move ctor/dtor into cpp file,
2474 add some logging and null out response in Finished, otherwise we
2475 might crash if Abort is called later on.
2477 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2479 * http-downloader.cpp: Return something from HttpDownloader::Read.
2481 2008-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2483 * plugin.mdp: Updated.
2485 2008-05-23 Geoff Norton <gnorton@novell.com>
2487 * browser-bridge.h: Get/SetUri is no longer needed on the BrowserResponse
2490 2008-05-23 Geoff Norton <gnorton@novell.com>
2492 * *-downlodaer.cpp: Add the files to SVN
2494 2008-05-23 Geoff Norton <gnorton@novell.com>
2496 * browser-bridge.cpp: Refactor to move all the stream processing logic outside
2497 the bridge into the plugin in a generic way.
2498 * plugin.cpp: Cache the source_location. Needed for http-downlodaer to resolve
2500 * mmsh-state.*: Merged into mms-downlodaer.cpp
2501 * mms-downloader.cpp: Rewritten to not leak all memory when streaming from a mms
2502 server, plus a lot of readability fixes.
2503 * npstream-downloader.cpp: Hide NPStream related specifics here instead of in
2504 * plugin-downloader.cpp: Direct requests to the BrowserDownloader implementation
2507 2008-05-21 Chris Toshok <toshok@ximian.com>
2509 * plugin.cpp (plugin_button_press_callback): rename
2510 plugin_event_callback to this, and remove all the non-button event
2512 (PluginInstance::CreateWindow): connect to just
2513 "button-press-event", not the more generic "event". track
2515 (PluginInstance::EventHandle): track renaming.
2517 2008-05-19 Larry Ewing <lewing@novell.com>
2519 * plugin.cpp (PluginInstance::SetPageURL): drop the reference we
2520 were holding to NPNVWindowNPObject.
2522 2008-05-19 Larry Ewing <lewing@novell.com>
2524 * plugin.cpp (PluginInstance::EventHandle): discard any events
2525 that happen before SetWindow has been called.
2527 Fix for a crash in Silverlight Pad.
2529 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2531 * plugin-class.cpp: Throw an exception if the downloader doesn't have a
2532 surface when we call Downloader::Send.
2534 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2536 * mmsh-state.h: Surround file with ifdefs, and forward declare
2538 * plugin-downloader.h: Include mmsh-state.h and properly declare
2539 PluginDownloader::state as MmshState.
2541 2008-05-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
2543 * plugin.mdp: Updated.
2545 2008-05-15 Larry Ewing <lewing@novell.com>
2547 * plugin.cpp (PluginInstance::EventHandle): send focus in/out to
2550 * plugin-class.cpp, plugin.cpp, plugin.h: capture id parameter and
2553 2008-05-14 Sebastien Pouliot <sebastien@ximian.com>
2555 * moonlight.h: Start plugin description with Silverlight plugin
2556 version. The new detection script for sharethelove requires this.
2558 2008-05-13 Larry Ewing <lewing@novell.com>
2560 * plugin.cpp, plugin-class.cpp: copy all npvariant strings so that
2561 we can null terminate them. WebKit and Opera don't null terminate
2564 2008-05-13 Larry Ewing <lewing@novell.com>
2566 * plugin-glue.cpp (NPP_Initialize): opera needs to have threads
2567 initialized even in the gtk2 case.
2569 * plugin.cpp (PluginInstance::SetWindow): disable this check since
2570 it currently fails on opera 9.5b2.
2572 These changes get the plugin loading in opera 9.5b2 we need to
2573 discuss some of this with them more.
2575 2008-05-13 Chris Toshok <toshok@ximian.com>
2577 * plugin.cpp (PluginInstance::Initialize): add an opera case (just
2578 like the webkit case) which references a (for now) nonexistant
2581 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2583 * plugin.cpp: TryLoad: Before parsing any xaml, we need to clear the
2584 current surface, otherwise the xaml we'll be parsing might add tick
2585 callbacks to the timemanager of the previous surface.
2587 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2589 * plugin.mdp: Updated.
2591 2008-05-12 Andrew Jorgensen <ajorgensen@novell.com>
2593 * Makefile.am: Moved the plugin installer code to a subdir (install)
2594 because the firefox bridges must build after the plugin but before the
2597 2008-05-09 Geoff Norton <gnorton@novell.com>
2599 * Makefile.am: Add mmsh-state.* to the build.
2600 * plugin-downloader.*: When connecting to a mms server we cannot
2601 immediately start streaming. We must first query its capabilities
2602 with a Describe request, then select the appropriate streams we
2603 wish to have available.
2605 2008-05-09 Geoff Norton <gnorton@novell.com>
2607 * mmsh-state.cpp, mmsh-state.h: New class to keep stream state
2608 for selecting which streams to fetch from a mms:// server.
2610 2008-05-09 Chris Toshok <toshok@ximian.com>
2612 * ff3/Makefile.am (libmoonplugin_ff3bridge_la_LIBADD): add
2615 2008-05-09 Chris Toshok <toshok@ximian.com>
2617 * ff2/Makefile.am (EXTRA_DIST): dist firefox-browsermmsh.inc
2619 2008-05-08 Chris Toshok <toshok@ximian.com>
2621 * install.rdf.in: track MINVERSION/MAXVERSION ->
2622 MIN_FIREFOX_VERSION/MAX_FIREFOX_VERSION change.
2624 * plugin.cpp (NPN_strdup): make the arg const char* to quiet gcc.
2625 (PluginInstance::PluginInstance): initialize bridge to NULL.
2626 (PluginInstance): delete the bridge.
2627 (PluginInstance::Initialize): try loading a browser specific
2628 bridge using the useragent string (gross, fragile, i know...)
2629 (PluginInstance::TryLoadBridge): new method, dlopen the bridge.
2631 * browser-http.h, browser-http.cpp: nuke. the C implementation
2632 lives in browser-bridge.cpp, and browser-bridge.h defines
2633 the (purely abstract) base classes that the bridge implementations
2634 subclass from for browser-specific functionality.
2636 * plugin-proxy.cpp: clean up more XP_UNIX stuff - it's always
2637 defined (in moonlight.h) so we don't need ifdefs for it. Also, it
2638 needs to be defined *before* including npapi/npupp so that
2639 structures we need are defined.
2641 * plugin-class.cpp: remove all HtmlObject implementation code from
2642 here. it lives in the browser bridge now. Also, remove all
2643 internal mozilla #includes.
2645 * moonlight.h (XP_UNIX): always define it if it isn't already
2648 * browser-bridge.h: add NPNetscapeFuncs* arg to
2649 CreateBrowserBridge.
2651 * plugin-entry.cpp (NPN_PostURLNotify): correct arg type.
2652 (NPN_MemAlloc): same.
2653 (NPN_MemFlush): same.
2654 (NPN_PostURL): same.
2655 (NP_Initialize): remove the stupid #if XP_UNIX stuff from here.
2656 we're only building on unix, so let's simplify things. Also,
2657 don't use PR_TRUE/PR_FALSE. NPBool uses TRUE/FALSE.
2659 * plugin-glue.cpp (NPP_WriteReady): change type to int32 instead
2660 of int32_t so that it matches the prototype.
2663 * moz-sdk/npapi.h, moz-sdk/npupp.h: unfuck our npapi headers so
2664 they can be used for either ff2 and ff3 (and without pulling in
2667 2008-05-08 Larry Ewing <lewing@novell.com>
2669 * plugin.cpp (PluginInstance::SetWindow): don't crash if we
2670 weren't able to create a surface.
2672 2008-05-08 Chris Toshok <toshok@ximian.com>
2674 * ff2/ff2-bridge.cpp: in order to keep from needing to load
2675 libmoonplugin.so with RTLD_GLOBAL (which breaks other plugins), we
2676 need to pass the NPNetscapeFuncs vtable to the bridge, and provide
2677 implementations of all the NPN_ methods here. That was making
2678 this file a bit busy, so break out the dom and http stuff to
2681 * ff2/ff2-dom.cpp: move the dom stuff here.
2683 * ff2/ff2-http.cpp: move the browserhttp stuff herre.
2685 * ff2/Makefile.am (EXTRA_DIST): make sure we dist
2686 firefox-browserhttp.inc
2688 * ff3/ff3-http.cpp, ff3/ff3-dom.cpp, ff3/ff3-bridge.cpp: same
2689 changes to the ff3 bridge.
2691 2008-05-07 Geoff Norton <gnorton@novell.com>
2693 * plugin.cpp, plugin.h: Add NPN_strdup
2694 * plugin-class.cpp: Use NPN_strdup
2695 * plugin-entry.cpp: Dont abort if XEmbed/Gtkv2 aren't found as
2696 some browsers wont lets us NPN_GetValue on a NULL instance.
2698 2008-05-07 Andrew Jorgensen <ajorgensen@novell.com>
2700 * Makefile.am: Move mono_*dir stuff into Makefile
2702 2008-05-07 Larry Ewing <lewing@novell.com>
2704 * plugin.cpp (PluginInstance::SetWindow): if SetWindow is called
2705 with the same window this is due to a resize, propogate that
2706 resize to the surface code.
2708 Fixes the plugin side of windowless resizing. See
2709 http://my.liveatedu.com/ for test case.
2711 2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
2713 * moonlight.h: Could not find (nor google) the real meaning for SCR,
2714 I suspect "script", nor does it affect any apps I've seen but having
2715 xaml in it's place is probably not a good idea.
2718 2008-05-06 Jeffrey Stedfast <fejj@novell.com>
2720 * plugin.h (PluginInstance::getNPP): Removed, this just duplicated
2721 the getInstance() method.
2723 2008-05-06 Andrew Jorgensen <ajorgensen@novell.com>
2725 * install.rdf.in: Use values from configure for min and max versions
2727 2008-05-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2729 * plugin-glue.cpp: shutdown_moonlight: we have to check again if there
2730 are plugins alive, this method is called async, and it's possible
2731 that another plugin has been initialized between adding the timeout
2734 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2736 * plugin-class.cpp: Add a missing initialization.
2738 2008-05-04 Miguel de Icaza <miguel@novell.com>
2740 * moonlight.cs: Add support for XAP file loading.
2742 * mono.cpp: New methods to create applications based on XAP files,
2745 * plugin.cpp (PluginInstance::StreamAsFile): If Silverlight2 the
2746 request was for a XAP file, load a XAP file. This could break
2747 if people embed a Silverlight2 plugin, but pass a XAML file, must
2750 * plugin.cpp: Some refactoring to keep the Mono-depending features
2751 together, without having ifdefs inside of functions.
2753 XAP maintenance: Keep track of whether a XAP application has been
2754 loaded, destroy XAP applications on shutdown.
2757 2008-05-04 Chris Toshok <toshok@ximian.com>
2759 * plugin.h, plugin.cpp, plugin-class.cpp, plugin-class.h: revert
2760 most of r102288 to move back to the separate Loaded/Load events.
2761 Leave the OneShot behavior for EventListenerProxy's, though, as
2762 that still is useful.
2764 2008-05-01 Larry Ewing <lewing@novell.com>
2766 * plugin.cpp (plugin_event_callback): fix windowless button
2767 presses so that only button 3 is swallowed by the menu logic.
2770 http://www.designwithsilverlight.com/tutorials/photoGallery/gallery.html
2771 2008-05-02 Andrew Jorgensen <ajorgensen@novell.com>
2773 * Makefile.am: strip all .sos in XPI (not just ffmpeg)
2774 If we need un un-stripped XPI we'll build one.
2776 2008-05-02 Geoff Norton <gnorton@novell.com>
2778 * plugin.cpp: reinterpret_cast doesn't work on 64-bit as it
2781 2008-05-01 Chris Toshok <toshok@ximian.com>
2783 * plugin-class.h, plugin-class.cpp: make EventListenerProxy's
2784 one-shottable (if they're one-shot, they remove themselves
2785 automatically after being invoked.) Use this with the plugin
2786 onLoad proxy. The script control object adds it to the surface's
2787 toplevel object's LoadedEvent.
2789 * plugin.h, plugin.cpp: when we create the surface, add a handler
2790 for AttachingEvent so we can notify our
2791 MoonlightScriptControlObject that it should add the onLoad handler
2792 to the toplevel element's LoadedEvent.
2794 2008-04-30 Fernando Herrera <fherrera@novell.com>
2796 * browser-mmsh.cpp: Abort and NotifyFailed on invalid mms streams,
2797 probably they are plain http file downloads.
2799 2008-04-30 Fernando Herrera <fherrera@novell.com>
2801 * plugin-debug.cpp: Added utils.h and uri.h.
2803 2008-04-30 Jeffrey Stedfast <fejj@novell.com>
2805 * moonlight.h: Don't need to include glib.h and gtk.h, gtk.h will
2808 2008-04-29 Jeffrey Stedfast <fejj@novell.com>
2810 * plugin-debug.cpp (foreach_func): Save the files with their
2811 original filenames using the URI's path.
2813 2008-04-28 Sebastien Pouliot <sebastien@ximian.com>
2815 * moonlight.h: Fix [Moon|Silver]'L'ight capitalization. Add
2816 Moonlight URL (as HTML) in about:plugins. This enables "Visit
2817 Home Page" in Firefox 3 "Tools | Add-ons | Plugins".
2819 2008-04-25 Chris Toshok <toshok@ximian.com>
2821 * plugin-class.cpp (enum PluginPropertyId): add MoonId_OnLoad.
2822 (map_moon_id_to_event_name): handle MoonId_OnLoad.
2823 (MoonlightObjectType::MoonlightObjectType): zero out construct,
2825 (scriptable_control_mapping): move onerror here, and add onload.
2826 (MoonlightScriptControlObject): null out both settings and content
2828 (MoonlightScriptControlObject::GetProperty): fix IsLoaded to check
2829 the surface, and add support for OnError/OnLoad here.
2830 (MoonlightScriptControlObject::SetProperty): add support for
2831 OnError/OnLoad here.
2832 (moonlight_content_mapping): remove onerror.
2833 (MoonlightContentObject::GetProperty): remove support for OnError.
2834 (MoonlightContentObject::SetProperty): same.
2836 * plugin.cpp (PluginInstance::CreateWindow): initialize the
2837 onResize/onLoad events in the same way as onError.
2838 (PluginInstance::Initialize): parse the onResize arg.
2839 (PluginInstance::JsRunOnload): nuke. rejoice.
2840 (PluginInstance::TryLoad): remove the call to JsRunOnload. The
2841 surface's LoadEvent is responsible for this now.
2843 2008-04-25 Sebastien Pouliot <sebastien@ximian.com>
2845 * plugin-debug.cpp: Better fix against my previous crash fix (as
2846 we can get an invalid pointer to the plugin).
2848 2008-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2850 * plugin-downloader.cpp: Added logging.
2852 2008-04-25 Fernando Herrera <fherrera@novell.com>
2854 * browser-mmsh.cpp: Conditional logging.
2855 * plugin-downloader.cpp: proper error handling at
2856 p_downloader_mmsh_send.
2858 2008-04-24 Andrew Jorgensen <ajorgensen@novell.com>
2860 * Makefile.am: Add the locally built assemblies to the XPI
2862 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2864 * plugin-debug.cpp: Don't crash if we don't have any sources.
2866 2008-04-24 Fernando Herrera <fherrera@novell.com>
2868 * Makefile.am: Fix "make -jN" build.
2870 2008-04-23 Sebastien Pouliot <sebastien@ximian.com>
2872 * plugin-debug.cpp: Don't crash if try to save stuff after changing
2875 2008-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2877 * browser-mmsh.cpp: Parse http streaming metadata/features.
2878 * browser-mmsh.h: AsyncBrowserMmshResponse: Type the context as a
2879 PluginDownloader instead of a generic gpointer.
2881 2008-04-22 Larry Ewing <lewing@novell.com>
2883 * moonlight.h: use HAVE_LIBXUL_UNSTABLE to determine which symbols
2886 * browser-http.h, browser-mmsh.h: use HAVE_LIBXUL_UNSTABLE to
2887 determine the include path.
2890 2008-04-22 Chris Toshok <toshok@ximian.com>
2892 * plugin.h, plugin.cpp: Add the notion of "cleanup pointers".
2893 It's a horrible name for the following hack. You register a local
2894 variable pointer with the plugin before making a call during which
2895 you might be destroyed. If the plugin instance is destroyed, all
2896 cleanup pointers are nulled.. When the all returns, you can't
2897 rely on "this" being valid, but you can rely on your local stack
2898 frame, so you look at the registered pointer. if it's null,
2901 * plugin.cpp (PluginInstance::PluginInstance): pass the pluginType
2902 instead of the boolean flag. C apis should be thin wrappers
2904 (PluginInstance::~PluginInstance): zombify the surface and then
2905 unref_delayed it, to allow everything to unwind before actually
2906 freeing that memory.
2907 (PluginInstance::Initialize): use "else" and remove all those damn
2909 (PluginInstance::TryLoad): use the cleanup pointer hack to check
2910 if we're still alive after the xaml_loader->TryLoad method.
2912 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
2913 use cleanup pointers to make sure we don't try to free plugin
2914 objects that have been destroyed by virtue of the plugin going
2915 away while we were in JS.
2917 * plugin-glue.cpp: since we're only destroying surfaces from the
2918 idle loop, we need to delay the shutting down of the moonlight
2919 engine until all surfaces have been destroyed. Also, take care
2920 not to do it from the DestroyEvent handler, as that is invoked
2921 *before* the object is destroyed (and destruction requires the
2922 engine to be initialized).
2924 2008-04-22 Michael Dominic K. <mdk@mdk.am>
2926 * plugin-class.cpp: Throw js exception if Storyboard failed to start
2929 2008-04-21 Jeffrey Stedfast <fejj@novell.com>
2931 * mono.cpp (vm_init): Don't leak memory in the plugin case. Also
2932 use d() around debug printfs.
2934 * plugin.cpp: Wrap debug printfs with d()
2936 2008-04-20 Miguel de Icaza <miguel@roxanne.site>
2938 * plugin.h: Add methods to flag Silverlight2, add field Xap that
2939 if not-NULL contains a pointer to the XAP file downloaded.
2941 * plugin-instance.c: If we are dealing with a Silverlight 2
2942 application, use Xap to unpack it. Does not load the result yet.
2944 * moonlight.h: Add support for SL2 mime type, clear up VERSION
2946 * plugin-glue.cpp: Tell PluginInstance whether this is an SL1 or
2949 2008-04-16 Chris Toshok <toshok@ximian.com>
2951 * plugin.cpp (PluginInstance::StreamAsFile): use "else if" here,
2952 otherwise the notifydata might be gone.
2954 2008-04-16 Jeffrey Stedfast <fejj@novell.com>
2956 * plugin-class.cpp (MoonlightDependencyObjectObject::GetProperty):
2957 Just because enums_int_to_str() returns NULL does not mean that
2958 the value was invalid, it could also mean that the property is
2959 simply an Int32 type.
2961 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2963 * plugin-class.cpp, plugin-class.h: Comparing a Kind value to another to
2964 determine type hierarchy isn't supported anymore, use Value::Is or
2965 Type::IsSubclassOf, which are doing the right thing.
2967 2008-04-15 Larry Ewing <lewing@novell.com>
2969 * plugin.cpp (PluginXamlLoader::TryLoad): emit an error if the
2970 root visual type is incorrect. Fixes one more of the ParserError
2971 tests until we can unfiy js exceptions and parser errors.
2973 2008-04-15 Larry Ewing <lewing@novell.com>
2975 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
2976 based on RuntimeErrors and
2977 http://msdn2.microsoft.com/en-us/library/bb979718.aspx getParent
2978 only applies to uielement subclasses.
2980 Fixes test that was failing in RuntimeErrors.htm.
2982 2008-04-15 Larry Ewing <lewing@novell.com>
2984 * plugin-class.cpp: throw an exception for invalid string values.
2986 2008-04-14 Jeffrey Stedfast <fejj@novell.com>
2988 * plugin.cpp: Got rid of unnecessary uses of keyword 'this'.
2989 (PluginInstance::CreateWindow): Fixed setting of background color.
2991 2008-04-13 Jb Evain <jbevain@novell.com>
2993 * moonlight.cs: use reflection to initialize the XamlLoader
2994 until we get moonlight.exe to be friend with Mono.Moonlight.
2995 Merged from the Moonlight 2 branch.
2997 2008-04-11 Larry Ewing <lewing@novell.com>
2999 * plugin.h (class PluginInstance): make setBackground return a
3000 boolean success value.
3002 * plugin-class.cpp (MoonlightSettingsObject::SetProperty): check
3003 the return value of setBackground and throw an exception if it
3006 * plugin.cpp (PluginInstance::CreateWindow): handle NULL return
3007 values from color_from_string.
3009 Handle the new case where color_from_string might return null.
3011 2008-04-11 Jeffrey Stedfast <fejj@novell.com>
3013 * plugin-class.cpp (MoonlightTextBlockObject::Invoke):
3014 SetFontSource() now takes a Downloader argument rather than a DOB.
3016 2008-04-11 Andrew Jorgensen <ajorgensen@novell.com>
3018 * plugin-proxy.cpp: Allow the user to override the location of
3019 libmoonplugin by setting MOON_PLUGIN_DIR so that the test harness
3020 can run without installing first.
3022 2008-04-11 Larry Ewing <lewing@novell.com>
3024 * plugin.cpp (PluginXamlLoader::TryLoad): Allow controls to be
3025 toplevel elments, drop all surface contents on errors.
3027 Allows Kit 3d to start rendering something in the texture map
3030 2008-04-11 Michael Dominic K. <mdk@mdk.am>
3032 * plugin-class.cpp: Small debug hint also here when enums invalid.
3034 2008-04-10 Chris Toshok <toshok@ximian.com>
3036 * plugin-class.cpp (npvariant_is_dependency_object): no reason to
3037 duplicate the logic here - call npobject_is_dependency_object.
3039 2008-04-10 Jeffrey Stedfast <fejj@novell.com>
3041 * plugin-class.cpp: Cast DOB's to Downloaders when passing to
3044 2008-04-10 Chris Toshok <toshok@ximian.com>
3046 * plugin-class.cpp, plugin-class.h: use the same "Invalidate
3047 NULL's things out, while the dtor checks for NULL before calling
3048 NPN_ReleaseObject" pattern with event listener proxies.
3050 2008-04-09 Chris Toshok <toshok@ximian.com>
3052 * plugin.cpp, plugin.h: make PluginInstance::SetSource behave
3053 asynchronously for both #ref and normal url cases. Fixes bug
3056 2008-04-08 Jeffrey Stedfast <fejj@novell.com>
3058 * plugin.cpp (PluginXamlLoader::TryLoad): Print a little more
3059 useful info on error.
3061 2008-04-04 Jeffrey Stedfast <fejj@novell.com>
3063 * plugin-class.h (EventListenerProxy.dtor): Made virtual... not
3064 sure if this matters or not, but might as well be consistent.
3065 (MoonlightTimeSpan.dtor): Same.
3067 2008-04-04 Chris Toshok <toshok@ximian.com>
3069 * plugin-class.cpp, plugin-class.h: change our use of
3070 NPType->invalidate. Firefox docs say this is *only* called when
3071 the browser is shutting down the plugin instance. So, we
3072 shouldn't access fields that point to other NPObjects here. Just
3073 break links. All freeing should be done in the dtor instead,
3074 which most of the various ::Dispose methods have been renamed to.
3075 Also, don't call Dispose in the MoonlightObject dtor. Lastly,
3076 rename Dispose to Invalidate so we don't again mistake what it
3079 2008-04-03 Larry Ewing <lewing@novell.com>
3081 (PluginXamlLoader::TryLoad): if the parser has an unknown error
3082 code try the managed loader.
3084 2008-04-03 Larry Ewing <lewing@novell.com>
3086 * plugin.cpp (PluginXamlLoader::TryLoad): if we get a parser while
3087 loading set attach to a NULL toplevel.
3089 2008-04-02 Larry Ewing <lewing@novell.com>
3091 * plugin-class.cpp: check number of arguments on getHost throw the
3092 appropriate exception if there are arguments.
3094 2008-04-02 Larry Ewing <lewing@novell.com>
3096 * plugin-class.cpp: make sure the event name is valid when adding
3097 or removing, throw an exception if not.
3099 2008-04-02 Larry Ewing <lewing@novell.com>
3101 * plugin-class.cpp: start making the exceptions match the ms
3102 exceptions. Work around the id string until more is known about
3103 how we should deal with it.
3105 2008-04-02 Jeffrey Stedfast <fejj@novell.com>
3107 Fixes bug #375277 and maybe other crashers.
3109 * plugin-class.h (MoonlightScriptControlObject::.ctor): Initialize
3110 settings->control and content->control to 'this'.
3111 (MoonlightSettingsObject): Now has a pointer to its owning
3112 MoonlightScriptControlObject so we can protect against Firefox's
3113 aggressive destruction of still-referenced objects when you
3114 navigate away from a Moonlight page and/or close the browser when
3115 a scriptable object is still referenced. Yay Firefox!
3116 (MoonlightContentObject): Same.
3118 * plugin-class.cpp (MoonlightScriptControlObject::Dispose): Set
3119 settings->control to NULL before unreffing the settings
3120 NPObject. Same with content->control.
3121 (MoonlightContentObject::Dispose): If we have a pointer to our
3122 parent control, set control->content to NULL here.
3123 (MoonlightSettingsObject::Dispose): Same as
3124 MoonlightContentObject::Dispose().
3125 (MoonlightEventObjectObject::SetEventObject): Removed, just to be
3126 sure we never reuse these objects.
3127 (EventObjectCreateWrapper): Implement the equivalent of
3128 SetEventObject() here instead, since this is the only place that
3129 should EVER be calling it. Also makes it a lot simpler.
3131 2008-04-02 Larry Ewing <lewing@novell.com>
3133 * plugin-class.cpp: charposition not charnumber.
3135 2008-04-01 Chris Toshok <toshok@ximian.com>
3137 * plugin-class.cpp (MoonlightContentObject::Invoke): back out my
3138 SetSurface() stuff from here.
3140 2008-04-01 Jeffrey Stedfast <fejj@novell.com>
3142 * plugin-class.cpp: Implemented better type-checking. Fixes the
3143 crash mentioned in bug #375921.
3145 2008-04-01 Chris Toshok <toshok@ximian.com>
3147 * plugin-class.cpp (MoonlightContentObject::Invoke): in
3148 createFromXaml/createFromXamlDownloader, call dep->SetSurface()
3149 after we parse to make sure the thing knows what surface it
3152 2008-04-01 Jeffrey Stedfast <fejj@novell.com>
3154 * plugin-class.cpp (MoonlightContentObject::Invoke): Properly
3155 nul-terminate the text value.
3156 (MoonlightDownloaderObject::Invoke): Properly nul-terminate the
3157 text value returned here too.
3159 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3161 * plugin-class.cpp: Remove Type::NPOBJ, it's not needed.
3163 2008-03-31 Jeffrey Stedfast <fejj@novell.com>
3165 * plugin-class.cpp (moonlight_downloader_mapping): Got rid of
3166 second ResponseText item.
3167 (MoonlightDownloaderObject::GetProperty): nul-terminate the value
3168 gotten from downloader->GetResponseText() as javascript will use
3169 this string expecting that it is nul-terminated.
3171 2008-04-01 Fernando Herrera <fherrera@novell.com>
3174 * plugin-downloader.h: Support for live streams (not seekable).
3176 2008-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3178 * browser-mmsh.cpp: asf_header_parse: Use ASFParser::GetPacketSize instead
3179 of looking in internal fields. Delete parser and unref the source when
3182 2008-03-28 Fernando Herrera <fherrera@novell.com>
3186 * plugin-downloader.cpp:
3187 * plugin-downloader.h: Implement server seeking on the mms://
3190 2008-03-26 Andrew Jorgensen <ajorgensen@novell.com>
3192 * mono.cpp: Get correct path for moonlight.exe as well when
3193 enable-user-plugin=yes
3195 2008-03-26 Chris Toshok <toshok@ximian.com>
3197 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
3198 implement removeEventListener for named callbacks using the new
3199 EventObject::RemoveMatchingHandlers method, and a helper
3200 class (NamedProxyPredicate).
3202 * plugin-class.h: we need to make
3203 EventListenerProxy::proxy_listener_to_javascript public so
3204 NamedProxyPredicate can access it.
3206 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3208 * browser-mmsh.cpp: Updated according to API changes.
3210 2008-03-25 Andrew Jorgensen <ajorgensen@novell.com>
3212 * plugin-proxy.cpp: Load libraries relative to the location of
3213 libmoonloader.so if enable-user-plugin=yes
3214 * install.rdf.in: Basic install.rdf for plugin installation
3215 * Makefile.am: Create directory structure for RDF install method
3216 rather than XPInstall JS method
3218 2008-03-20 Jeffrey Stedfast <fejj@novell.com>
3220 * plugin-class.cpp (MoonlightContentObject::Invoke): Same.
3222 * plugin-downloader.cpp (p_downloader_mmsh_finished): Updated for
3223 Downloader API changes.
3225 2008-03-18 Andrew Jorgensen <ajorgensen@novell.com>
3227 * plugin-proxy.cpp: Push conditional swscale into user plugin code
3228 and remove avformat dependency
3229 * Makefile.am: Conditionally include swscale and don't include avformat
3230 in user plugin installer
3232 2008-03-17 Larry Ewing <lewing@novell.com>
3234 * plugin-class.cpp: more rough argument sanity checks.
3236 2008-03-17 Larry Ewing <lewing@novell.com>
3238 * plugin.cpp (PluginXamlLoader::TryLoad): add a quick check to
3239 avoid a crash. Better error handling on the way.
3241 * plugin-class.cpp (MoonlightCollectionObject::Invoke): do some
3242 very basic argument type checking.
3244 2008-03-16 Larry Ewing <lewing@novell.com>
3246 * plugin-class.cpp: make objects chain up to their parent class
3247 rather than simply returning false directly to make the logic
3248 clearer and to allow toplevel handling of tostring.
3250 2008-03-14 Larry Ewing <lewing@novell.com>
3252 * plugin-class.h, plugin-class.cpp: wrap all EventArg subclasses
3253 as dependencyobjects.
3255 * plugin.cpp: connect to the plugin onerror event.
3257 2008-03-14 Chris Toshok <toshok@ximian.com>
3259 * plugin-class.h, plugin-class.cpp: wrapped TimeSpan and Duration
3260 objects aren't actually values. they're references to the
3261 particular DependencyObject/Property we got them from, so doing
3264 var foo = storyboard.Duration; foo.seconds=5;
3266 updates the original storyboard's Duration property, not just the
3267 duration contained in the "foo" variable.
3269 2008-03-13 Chris Toshok <toshok@ximian.com>
3271 * plugin-class.cpp, plugin-class.h: fix up our toString support.
3273 Thu Mar 13 23:13:59 CET 2008 Paolo Molaro <lupus@ximian.com>
3275 * Makefile.am: don't overwrite binary files when installing the
3276 plugin (avoids crashes in the running browser).
3278 2008-03-13 Chris Toshok <toshok@ximian.com>
3280 * plugin-entry.cpp: fix backward compatibility of the plugin api.
3281 also, use the NPVERS_ defines for feature tests instead of our own
3282 set. Also, add NPN_Enumerate.
3284 2008-03-13 Andrew Jorgensen <ajorgensen@novell.com>
3286 * install.js.in: Change the install path so that the plugin
3287 should work in debian (iceweasel)
3289 2008-03-13 Chris Toshok <toshok@ximian.com>
3291 * moz-sdk/*: import the trunk firefox plugin headers.
3293 * plugin.cpp (PluginInstance::Initialize): fix the hack I needed
3294 due to xulrunner-1.8.10 headers not having NPNVSupportsWindowless.
3296 * plugin-class.h, plugin-class.cpp (MoonlightObjectType): add
3297 Enumerate, which just iterates over the mapping filling in the
3300 * Makefile.am: add dist-hook to copy the moz-sdk headers.
3302 * mono.cpp (vm_init): missed this STACK_DEBUG -> DEBUG change.
3304 2008-03-12 Sebastien Pouliot <sebastien@ximian.com>
3306 * plugin-downloader.cpp: Fix duplicate g_strdup on pd->uri.
3308 2008-03-12 Michael Dominic K. <mdk@mdk.am>
3310 * plugin-downloader.cpp: Adding an extra NULL check. Fixes the
3311 flowers-for-you.com.my website.
3313 2008-03-12 Miguel de Icaza <miguel@novell.com>
3315 * browser-mmsh.cpp (AsyncBrowserMmshResponse::MmsMetadataParse):
3316 Rewrote this routine to have a regular parser instead of splitting
3317 strings with g_strsplit, copes with commas inside metadata.
3319 Fernando mentioned that most of this code is no longer useful,
3320 except for a few flags.
3322 2008-03-11 Fernando Herrera <fherrera@novell.com>
3326 * plugin-downloader.cpp: Parse MMS Metadata packet. Get file size and
3327 asf_packet_size from the ASF header.
3329 2008-03-10 Michael Dominic K. <mdk@mdk.am>
3331 * plugin-class.cpp: Don't scream about the unsupported type when
3332 setting a property to NULL. Instead, pass NULL and let the
3333 SetValue do it's thing (ie. nullable handling). This fixes the
3334 Animation_CornerCases.htm.
3336 2008-03-08 Geoff Norton <gnorton@novell.com>
3338 * plugin.cpp: I suppose I'm one of these for real now.
3340 2008-03-08 Fernando Herrera <fherrera@novell.com>
3344 * plugin-downloader.cpp: Stop properly the mms download.
3346 2008-03-06 Chris Toshok <toshok@ximian.com>
3348 * plugin.cpp (PluginInstance::Initialize): make sure we look for
3349 the right framerate property name. the JS is specified using
3350 "framerate", but the plugin has to recognize "maxFramerate"
3352 (PluginInstance::CreateWindow): use the surface's timemanager.
3353 (PluginInstance::setMaxFrameRate): same.
3355 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
3357 * plugin-class.cpp, plugin-class.h: Make our Moonlight*EventArgs mirror the
3358 runtime *EventArgs Updated runtime event handling to receive an
3359 EventArgs* calldata instead of a gpointer. This allows us to create the
3360 correct Moonlight*EventArgs based on the actual type of the runtime
3361 *EventArgs, instead of making a decision based on the event name,
3362 obsoleting all the *_event_wrapper functions.
3363 * plugin-glue.cpp: Set the pdata field of the instance to NULL before
3364 deleting the plugin, this allows us to detect plugin usage during plugin
3365 destruction (we might cause destruction of EventObjects -> events are
3366 raised -> plugin tries to send those events to js -> crash)
3368 2008-03-05 Michael Dominic K. <mdk@mdk.am>
3370 * plugin-class.cpp: Making the plugin class use the new enum<->str code
3373 2008-03-03 Chris Toshok <toshok@ximian.com>
3375 * plugin.cpp (PluginInstance::EventHandle): add
3376 KeyPress/KeyRelease handling. there are some XXX's involing the
3377 call to gdk_keymap_translate_keyboard_state, but I have no test
3378 case at present to test this stuff against. Use at your own risk.
3380 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3382 * plugin-downloader.cpp: Don't call dl->NotifySize with the partial size of
3383 the file, should only be called with the final size of the file.
3385 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3387 * plugin.mdp: Updated.
3389 2008-02-28 Jeffrey Stedfast <fejj@novell.com>
3391 * browser-mmsh.cpp (AsyncBrowserMmshResponse::OnDataAvailable):
3392 'size' needs to be a uint32 so that the comparison is between 2
3393 uint32's rather than a uint32 and an int32.
3395 * browser-mmsh.h (class AsyncBrowserMmshResponse): Fixed a
3398 2008-02-28 Michael Dominic K. <mdk@mdk.am>
3400 * plugin/plugin-class.cpp: When getting property value try to resolve it
3401 to string if it's an enum. This way from js we ie. get:
3403 Arc.SweepDirection == "Counterclockwise"
3407 Arc.SweepDirection == 0 (enum int value).
3409 Fixes finally the OM_RemoveClearRemoveAt.htm test (with other collection
3412 2008-02-28 Fernando Herrera <fherrera@novell.com>
3417 * plugin-downloader.cpp:
3418 * plugin-downloader.h: Add initial mms over http support.
3420 2008-02-26 Chris Toshok <toshok@ximian.com>
3422 * plugin.cpp (PluginInstance::EventHandle): fix some x64 build
3424 (PluginInstance::InvalidateSurface): same.
3426 2008-02-26 Chris Toshok <toshok@ximian.com>
3428 * plugin-proxy.cpp: use RTLD_LAZY, not RTLD_NOW.
3430 * moonlight.h: more #include hackery to get the right members to
3431 be there for NPSetWindowCallbackStruct on X.
3433 * plugin.h (class PluginInstance): add our
3434 RenderSurface/InvalidateSurface methods.
3436 * plugin.cpp (PluginInstance::Initialize): initialize the
3437 windowless stuff if we need it and the browser supports it.
3438 (PluginInstance::RenderSurface): our render method - call
3440 (PluginInstance::InvalidateSurface): our invalidate method - call
3442 (PluginInstance::CreateWindow): set our invalidate/render funcs
3443 accordingly, and SetTrans on the surface (err, why?) if we're
3444 windowless, and only do the widget stuff if we aren't windowless.
3445 (PluginInstance::EventHandle): kind of gross, but fill in enough
3446 of the gdk events to fool the surface machinery. Currently
3447 missing are all key events, GdkDevice support for mouse events,
3448 and Expose event aggregation.
3450 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3452 * plugin/plugin-class.cpp: Throw js exception when object passed to
3453 Collection.Remove is NULL (instead of returning false). Fixes mostly
3454 OM_RemoveClearRemoveAt but still fails because of ArcSweep problem.
3456 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3458 * plugin/plugin-class.cpp: Throw js exception when Collection.Insert
3461 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3463 * plugin/plugin-class.cpp: Throw js exception when Collection.Add returns
3466 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3468 * plugin/plugin-class.cpp: Properly return int instead of void for
3471 2008-02-25 Chris Toshok <toshok@ximian.com>
3473 * plugin.cpp (PluginInstance::CreateWindow): use GetWidget instead
3476 2008-02-25 Chris Toshok <toshok@ximian.com>
3478 * plugin.cpp: add windowless creation stuff. move some code
3479 around, and put some in (!windowless) blocks.
3481 * plugin-entry.cpp (NP_Initialize): set handleEvent.
3483 * plugin-glue.cpp (NPP_GetValue): don't handle NeedsXEmbed here -
3484 let PluginInstance::GetValue do it.
3486 2008-02-22 Jackson Harper <jackson@ximian.com>
3488 * plugin-debug.cpp: mkdir and friends needs sys/stat.h on some
3491 2008-02-22 Michael Dominic K. <mdk@mdk.am>
3493 * plugin/plugin.cpp:
3494 * plugin/plugin.h: Add support for the cache-size reporting interface. The
3495 UI now reports cache size when running with
3496 MOONLIGHT_OVERRIDES="cache=show".
3498 2008-02-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3500 * plugin-class.cpp: Add a null check.
3501 * plugin-debug.cpp: Add a Save button to the Sources list, which will save
3502 every source file to a directory in /tmp.
3504 2008-02-21 Michael Dominic K. <mdk@mdk.am>
3506 * plugin/plugin.cpp: Small fix for table ("Properties") formatting so that
3507 it doesn't expand like crazy because of long URL's in sources.
3509 2008-02-20 Jeffrey Stedfast <fejj@novell.com>
3511 * plugin-class.cpp (MoonlightTextBlockObject::Invoke): The
3512 downloader argument is allowed to be null.
3514 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3516 * plugin.cpp, plugin.h, plugin-debug.cpp, plugin-debug.h: Add a 'Sources'
3517 entry to the plugin context menu, shows a list of all the files the
3518 plugin has loaded, with the ability to open the files.
3520 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3522 * plugin.mdp: Updated.
3524 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3526 * plugin-class.cpp: Fix IsVersionSupported according to tests.
3528 2008-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3530 * plugin.cpp, plugin-class.cpp, plugin.h: Add MaxFrameRate to the properties
3531 page, and parse windowless and framerate properties during
3532 initialization and store the values on the plugin instance, so that the
3533 property page can show the correct values.
3535 2008-02-15 Chris Toshok <toshok@ximian.com>
3537 * plugin-class.cpp (MoonlightStoryboardObject::Invoke): the seek
3538 method can take either an integer or a string representing a
3539 timespan. Fixes the JS errors I mentioned in bug #362380.
3541 2008-02-06 Jackson Harper <jackson@ximian.com>
3543 * plugin-class.cpp|h: Store all MoonlightDependencyObject classes
3544 in an array so that we can easily check if a type passed in from
3545 JS is actually a DO.
3546 - Add one check to verify that an object is a DO, I am sure we
3547 will need many more.
3549 2008-02-06 Fernando Herrera <fherrera@novell.com>
3551 * plugin-debug.cpp: set default size and scroll bars policy in the
3554 2008-02-05 Chris Toshok <toshok@ximian.com>
3556 * plugin.h, plugin.cpp: add a label to the properties dialog that
3557 shows the fps message.
3559 * plugin-debug.cpp (selection_changed): invalidate a large enough
3560 rectangle so that the selection disappears.
3562 2008-02-05 Chris Toshok <toshok@ximian.com>
3564 * Makefile.am (libmoonplugin_la_SOURCES): add plugin-debug.h/cpp
3566 * plugin-debug.h, plugin.cpp: for now, just a gtk treeview with a
3567 snapshot of the xaml hierarchy. selecting an item in the tree
3568 puts a rectangle around the element in the plugin.
3570 * plugin.cpp (plugin_show_menu): if debug is enabled, add the
3573 2008-02-05 Chris Toshok <toshok@ximian.com>
3575 * moonlight.h: don't #define DEBUG here. it's a config.h deal.
3577 2008-02-04 Jackson Harper <jackson@ximian.com>
3579 * plugin-class.cpp: Fix some of the parameter checking to match
3582 2008-01-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3584 * plugin-class.cpp, plugin-class.h: Implement toString method on
3585 MarkerReachedEventArgsObject.
3587 2008-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
3589 * plugin-class.cpp: Handle the case where js sets Timespan seconds using an
3592 2008-01-28 Andrew Jorgensen <ajorgensen@novell.com>
3594 * Makefile.am: added plugin-downloader.h to dist
3596 2008-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3598 * downloader.cpp, plugin-downloader.cpp, plugin-downloader.h: Renamed
3599 downloader.cpp to plugin-downloader.cpp and added a header file for it.
3600 Set downloader_shutdown to false upon initialization, makes aborting
3601 actually work. Save the PluginDownloader in the stream, so that we can
3602 inform the PluginDownloader when the stream is destroyed.
3603 * plugin.mdp, Makefile.am: Updated.
3604 * plugin.cpp: Include plugin-downloader.h and remove unnecessary method
3605 declarations. Inform the PluginDownloader when a stream is destroyed.
3606 * plugin-glue.cpp: Include plugin-downloader.h and remove unnecessary method
3609 2008-01-23 Chris Toshok <toshok@ximian.com>
3611 * plugin-class.cpp (EventListenerProxy::AddHandler): use the event
3612 id instead of the name for the destroyed event, and also don't try
3613 to add an event that doesn't exist for a given type.
3615 2008-10-11 Andrew Jorgensen <ajorgensen@novell.com>
3617 * plugin-proxy.cpp: Add conditionals for ffmpeg inclusion
3618 * Makefile.am: Respect ffmpeg inclusion in xpi install
3620 2008-01-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
3622 * plugin.mdp: Added.
3624 2008-01-09 Chris Toshok <toshok@ximian.com>
3626 * plugin-class.h, plugin-class.cpp: add two new wrapper types -
3627 one for StrokeCollection and the other for Stroke, so that both of
3628 them can implement their GetBounds and HitTest methods.
3630 2008-01-09 Chris Toshok <toshok@ximian.com>
3632 * plugin-class.h, plugin-class.cpp: a few changes with the
3633 MoonlightMouseEventArgsObject. It now wraps a MouseEventArgs*.
3634 Translate all the property accesses and method calls into
3635 accesses/calls on the actual MouseEventArgs, instead of having the
3636 code live here. Also, add STYLUSINFO handling to the
3637 EventObjectWrapper method.
3639 2008-01-09 Jeffrey Stedfast <fejj@novell.com>
3641 * plugin.cpp (Initialize): Use g_ascii_strcasecmp() so that we are
3642 not locale dependent.
3644 2008-01-04 Jeffrey Stedfast <fejj@novell.com>
3648 * plugin-class.cpp (EventListenerProxy::AddHandler): Add a handler
3649 for the destroyed event too so that we can clear our target_object
3651 (EventListenerProxy::on_target_object_destroyed): New callback to
3652 clear the target_object pointer when it gets destroyed.
3653 (EventListenerProxy::get_wrapper_for_event_name): Use
3654 g_ascii_strcasecmp() instead of g_strcasecmp().
3655 (EventListenerProxy::~EventProxyListener): Disconnect from the
3656 destroyed event and the other event if still hooked up.
3658 2008-01-03 Jeffrey Stedfast <fejj@novell.com>
3660 * plugin-class.cpp (_set_dependency_property_value): For
3661 non-object variants, we can easily get away with using a static
3662 string buffer rather than using dynamically allocated strings to
3663 hold our temp values.
3665 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3667 * plugin.cpp: PluginInstance::SetSource: don't check if we're setting the
3668 same source. Fixes #349592.
3670 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3672 * plugin-class.cpp: Don't crash if surface->GetTopLevel returns null. Fixes
3675 2007-12-20 Sebastien Pouliot <sebastien@ximian.com>
3677 * plugin-class.cpp|h: Add support for StylusPointCollection since
3678 it's a special case where a new method, AddStylusPoints, is
3679 introduced. Fix unit tests for StylusPointCollection but doesn't
3680 solve bugs #349596 and 349598 because we don't capture the mouse
3683 2007-12-20 Jb Evain <jbevain@novell.com>
3685 * plugin-class.cpp (MoonId_GetStylusPoints): return an
3686 empty StylusPointCollection instead of doing non-sense.
3688 2007-12-20 Jb Evain <jbevain@novell.com>
3690 * plugin-class.cpp: throw if createObject is called
3691 for something else than Downloader.
3693 2007-12-18 Sebastien Pouliot <sebastien@ximian.com>
3695 * plugin-class.cpp: The plugin handle Color as an integer (see js
3698 2007-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3700 * plugin-class.cpp: The part parameter of MediaElement::SetSource is the
3701 second parameter, fixes a crash when js calls SetSource. Also removed
3704 2007-12-17 Jb Evain <jbevain@novell.com>
3706 * plugin-class.cpp: return null instead of undefined
3707 on GetValue is the value is NULL. Fixes a lot of tests
3710 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
3712 * plugin.cpp (PluginInstance::CreateWindow): Set the FPS report
3714 (PluginInstance::Properties): Added FPS enable/disable properties.
3715 (PluginInstance::ReportFPS): Report the FPS via the browser's
3718 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
3720 * downloader.cpp (p_downloader_abort): Set pd->stream to NULL
3721 after destroying it.
3723 * plugin.cpp (PluginInstance::TryLoad): Added a comment that we
3724 should check for errors returned by NPN_GetURLNotify().
3725 (PluginInstance::UpdateSource): Same.
3726 (PluginInstance::UrlNotify): Removed a printf.
3728 2007-12-12 Jeffrey Stedfast <fejj@novell.com>
3730 Fixes toward bug #341853
3732 * downloader.cpp (p_downloader_send): Check the return code from
3733 NPN_GetURLNotify() as it will give us an error if the file doesn't
3736 * plugin.cpp (UrlNotify): Call Downloader::NotifyFailed() on
3739 2007-12-10 Chris Toshok <toshok@ximian.com>
3741 * plugin-class.h, plugin-class.cpp: more event changes. return
3742 the integer token for adding a handler, and change
3743 removeEventListener to accept either a string (unsupported at the
3744 moment) or integer second argument. This allows things like
3745 removeEventListener (..., 0) for removing the event handler that's
3748 Also, remove MoonlightEventListener{Type,Object} since we don't
3749 need to return a wrapped object from addEventListener any longer.
3751 2007-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3753 * plugin-class.cpp: Plug more leaks.
3755 2007-12-06 Jeffrey Stedfast <fejj@novell.com>
3757 * plugin-class.cpp (MoonlightCollectionObject::Invoke):
3758 Implemented GetItemByName for MediaAttributeCollections.
3760 2007-12-06 Chris Toshok <toshok@ximian.com>
3762 * plugin-class.h, plugin-class.cpp: a few changes. abstract out
3763 all the event-as-property code, so we just add events to objects
3764 as additional properties in their mapping, and the MoonlightObject
3765 code handles it all for us.
3767 2007-12-05 Chris Toshok <toshok@ximian.com>
3769 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
3772 2007-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
3774 * plugin-class.cpp: Rename DependencyObject::parent/SetParent/GetParent
3776 to logical_parent/SetLogicalParent/GetLogicalParent.
3778 2007-12-04 Jb Evain <jbevain@novell.com>
3780 * plugin-class.h: add the definitions of MoonlightStylusInfoType
3781 and MoonlightStylusInfoObject.
3783 * plugin-class.cpp: implement MoonlightStylusInfoType and
3784 MoonlightStylusInfoObject. Add getStylusInfo() and getStylusPoints()
3785 methods on MouseEventArgs.
3787 2007-12-04 Jackson Harper <jackson@ximian.com>
3789 * plugin-class.cpp: Map in IsLoaded, so HasProperty will return
3792 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
3794 * plugin.cpp (Properties): Added more runtime debug options.
3796 2007-11-29 Jeffrey Stedfast <fejj@novell.com>
3798 * plugin.cpp (PluginInstance::Properties): Added runtime ability
3799 to enable show-expose regions.
3801 2007-11-20 Jb Evain <jbevain@novell.com>
3803 * plugin-class.cpp: rename INVOKE_EXCEPTION to
3804 THROW_JS_EXCEPTION. Throw more exceptions where needed.
3806 2007-11-20 Jb Evain <jbevain@novell.com>
3808 * plugin-class.cpp: throw JS exceptions where SL does.
3810 2007-11-20 Jb Evain <jbevain@novell.com>
3812 * plugin-class.cpp( MoonlightContentObject::Invoke):
3813 return null instead of undefined, like SL 1.0 does.
3815 2007-11-20 Jb Evain <jbevain@novell.com>
3817 * plugin-class.h (html_get_element_text): add a function
3818 to get the `innerText` of an html element from its id.
3819 * plugin-class.cpp (html_get_element_text): implement it.
3820 * plugin.cpp (PluginInstance::UpdateSourceByReference):
3821 use html_get_element_text to get the inline xaml.
3824 2007-11-16 Chris Toshok <toshok@ximian.com>
3826 * plugin-class.cpp, plugin-class.h: switch
3827 hasProperty,getProperty,setProperty,hasMethod,invoke to object
3828 methods instead of vtable entries on the type. Also, put the
3829 name->id mapping in MoonlightObject's vtable entries, before the
3830 call to the virtual object methods (so now we only do name lookups
3831 there instead of all over the place) Also, aggregate mappings for
3832 all classes up to the root in the hierarchy when we initialize the
3833 type. This means only 1 bsearch per LookupName, instead of 1 per
3836 2007-11-15 Jeffrey Stedfast <fejj@novell.com>
3838 * plugin-class.cpp: Alphabetize all of the mapping tables so that
3839 bsearch works properly.
3841 2007-11-14 Chris Toshok <toshok@ximian.com>
3843 * plugin-class.h, plugin-class.cpp: substantially rework the way
3844 names are looked up. remove 90% of the has_method/has_property
3845 code, and move all the invoke/get_property/set_property to using
3846 id's for their work instead of string comparisons. also make the
3847 string lookups case insensitive. I don't much like the way
3848 chaining is done (check out MoonlightObjectType::SetBase and
3849 MoonlightObjectType::LookupName), but it's working for now, and
3850 should be substantially faster (and easier to maintain) this way
3851 than the naive conversion to case insensitivity.
3853 2007-11-14 Jeffrey Stedfast <fejj@novell.com>
3855 Fixes for the Matrix demo.
3857 * plugin-class.cpp (EventListenerProxy): Don't leak the NPObject.
3858 (proxy_listener_to_javascript): Updated printf debugging.
3859 (moonlight_content_invoke): Use the second argument
3860 (create_namescope) and pass that along to xaml_create_from_str().
3862 2007-11-14 Andrew Jorgensen <ajorgensen@novell.com>
3864 * Makefile.am: strip the ffmpeg libs for the user plugin but do not
3865 strip libmoon and libmono, will either add an option to strip those libs
3866 later or just make that part of the release process.
3867 * install.js.in: Cleaned up error handling and added a call to
3868 refreshPlugins(), should make it so nobody has to restart firefox
3870 2007-11-13 Andrew Jorgensen <ajorgensen@novell.com>
3872 * Makefile.am: Use the mono_ddldir rather than assuming /usr/lib and
3873 pick up any dlls in the gac that are for the 2.1 profile so that we
3874 don't miss any that should have been symlinked in /usr/lib/mono/2.1 but
3875 for some reason were not.
3877 2007-11-12 Andrew Jorgensen <ajorgensen@novell.com>
3879 * Makefile.am: Add moon.config to EXTRA_DIST
3881 2007-11-12 Andrew Jorgensen <ajorgensen@novell.com>
3883 * install.js.in: Just add moonlight directory, not individual files.
3884 * mono.cpp: Get moonlight.exe from home dir plugin path.
3885 * plugin-proxy.cpp: dlopen libmono and set it's dirs.
3886 * Makefile.am: Build out the full directory structure for the user
3887 plugin and zip that.
3888 * moon.config: Installed as $sysconfdir/mono/config to tell mono to
3889 use the already dlopened libmoon.so.
3891 2007-11-09 Sebastien Pouliot <sebastien@ximian.com>
3893 * plugin.cpp: Fix Moonlight URL (#339929) since it didn't work.
3895 2007-11-09 Jb Evain <jbevain@novell.com>
3897 * browser-http.cpp|h: make browser_http_request_get_async_response
3901 2007-11-08 Miguel de Icaza <miguel@novell.com>
3903 * plugin.cpp (PluginInstance::Properties): Spice this bad boy up.
3904 We now can get some info about a XAML surface.
3906 2007-11-08 Jeffrey Stedfast <fejj@novell.com>
3908 * plugin.cpp (plugin_instance_get_surface): New function needed by
3910 (TryLoad): Removed an unnecessary g_assert() (the code handles the
3911 error case properly).
3913 2007-11-07 Jb Evain <jbevain@novell.com>
3915 * browser-http.cpp|h: implement a GetStatus method for
3916 BrowserHttpResponse.
3918 2007-11-06 Miguel de Icaza <miguel@novell.com>
3920 * plugin.cpp (string_to_js): rename from escape_quotes, this helps
3921 because some error messages being thrown from managed code contain
3922 newlines (Sudoku, see #325336).
3924 2007-11-05 Chris Toshok <toshok@ximian.com>
3926 * plugin-class.cpp (moonlight_content_invoke): don't crash if the
3927 surface hasn't been attached (if we haven't finished loading the
3930 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3932 * plugin.cpp: Replace PLUGIN_OURVERSION with VERSION (from config.h)
3933 * moonlight.h: Put the version in the description string for the sake
3936 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3938 * install.js.in: Get the version and the target CPU from configure and
3939 do some error checking, including checking that the platform matches
3941 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3943 * Makefile.am: Apparently $(builddir) is a newer autotools feature not
3944 available on SuSE 10.1 so we'll just not use it.
3946 2007-11-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3948 * downloader.cpp: Don't keep a ref to the Downloader, it causes a circular
3951 2007-10-31 Andrew Jorgensen <ajorgensen@novell.com>
3953 * Makefile.am: Don't link in cairo, pixman, or anything else that we
3954 don't need to libmoonplugin
3956 2007-10-29 Andrew Jorgensen <ajorgensen@novell.com>
3958 * install.js, plugin-proxy.cpp, Makefile.am: Changes to include ffmpeg
3959 libs in the XPI package
3961 2007-10-27 Jackson Harper <jackson@ximian.com>
3963 * plugin-class.cpp: Make onError work.
3965 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3967 * plugin-class.cpp, plugin-class.h: Implement emission of MarkerReached
3970 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3972 * mono.cpp: Enable vm stacktraces after mono has been loaded.
3974 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3976 * downloader.cpp: Ref/unref the downloader.
3978 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3980 * plugin-class.h: NULL-initialize a variable, fixing a crash.
3982 2007-10-25 Jackson Harper <jackson@ximian.com>
3985 * plugin-class.cpp: Add the onError event to the content object.
3987 2007-10-25 Jackson Harper <jackson@ximian.com>
3989 * plugin-class.cpp: Fix function name.
3991 2007-10-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3993 * plugin-class.cpp: Unref the event object even though the plugin is
3996 2007-10-24 Jb Evain <jbevain@novell.com>
3998 * browser-http.cpp|h: work on asynchronous requests.
4000 2007-10-23 Andrew Jorgensen <ajorgensen@novell.com>
4002 * install.js: Install the libraries under ~/.mozilla/plugins/moonlight
4003 so that they are not loaded by mozilla
4004 * moonlight.h: Don't define PLUGIN_INSTALL unless it is not defined
4005 * plugin-proxy.cpp: dlopen libmoon.so from the user's
4006 plugins/moonlight directory if we are building the user plugin
4007 * Makefile.am: Use the PLUGIN_INSTALL flag to control building of the
4010 2007-10-23 Jb Evain <jbevain@novell.com>
4012 * browser-http.cpp|h: Add support for Abort and SetBody.
4014 2007-10-22 Jb Evain <jbevain@novell.com>
4016 * browser-http.cpp: add browser_http_response_destroy and
4017 browser_http_sync_response_read.
4019 2007-10-22 Jb Evain <jbevain@novell.com>
4021 * browser-http.cpp|h (SyncBrowserHttpRequest::Read):
4022 do read the entire input stream even if it's a buffered
4025 2007-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4027 * plugin-class.cpp: If we're leaking NPObjects make sure we don't crash in
4028 invalidate, since FF will call invalidate long after shutting down
4031 2007-10-21 Jb Evain <jbevain@novell.com>
4033 * browser-http.cpp|h: add the files where the unmanaged
4034 implementation of BrowserHttpRequest will live.
4036 * Makefile.am: add them to the build.
4038 2007-10-18 Chris Toshok <toshok@ximian.com>
4040 * plugin-class.cpp (moonlight_dependency_object_invoke): make the
4041 debug "printf" method its own method, instead of a hack on
4043 (MoonlightEventObjectObject::Dispose): remove the wrapped object
4045 (MoonlightEventObjectObject::SetEventObject): update the cache.
4046 (EventObjectCreateWrapper): check the cache before creating a new
4049 * debug.js: convert from
4050 printf_proxy.setValue ("printf", message);
4052 printf_proxy.printf (message);
4054 * plugin.cpp, plugin.h: add {Add,Remove,Lookup}WrappedObject
4055 methods to cache the JS objects we use for a given EventObject*.
4057 2007-10-17 Chris Toshok <toshok@ximian.com>
4059 * plugin.cpp (PluginXamlLoader::TryLoad): use ->Attach instead of
4060 surface_attach, and add a comment about element->unref().
4062 2007-10-16 Jb Evain <jbevain@novell.com>
4064 * plugin.cpp: add plugin_instance_get_browser_runtime_settings.
4066 2007-10-16 Jb Evain <jbevain@novell.com>
4068 * moonlight.cs: Keep track of all plugin unload callbacks.
4069 Don't use Hashtable and refactor some code.
4071 2007-10-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4073 * plugin.cpp, plugin-proxy.cpp: Remove some const char/char mismatch
4075 * plugin-glue.cpp: Fix some const char/char mismatch warnings.
4077 2007-10-10 Chris Toshok <toshok@ximian.com>
4079 * plugin-class.cpp (EventListenerProxy::~EventListenerProxy):
4080 don't NPN_ReleaseObject the callback. the browser does this for
4083 2007-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4085 * plugin.cpp: Fix e-mail.
4087 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4089 * Makefile.am: Can't use the -MM (fail if patterns not matched) because it
4092 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4094 * Makefile.am: Make zip fail if one of the files is not found
4096 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4098 * Makefile.am: Build the firefox xpi plugin installer (unsigned)
4099 * install.js: First draft install script for xpi
4101 2007-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
4103 * TODO: Update, fullScreen is now implemented.
4105 2007-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4107 * plugin.cpp: Set the downloader context of the surface.
4108 * downloader.cpp: Ref/unref the downloader we store. Get the context stored
4109 in the downloader if possible, and use it to get the plugin instance.
4110 * plugin-class.cpp: Use the brand new PluginInstance::CreateDownloader, and
4111 provide xaml loaders for the xaml_create_from* methods.
4112 * plugin.h: Add a CreateDownloader method.
4114 2007-10-04 Zoltan Varga <vargaz@gmail.com>
4116 * plugin.cpp (LoadUrl): New method to download stuff synchronously using the browser.
4117 (plugin_instance_load_url): C wrapper for the above.
4118 (ReportException): Fix a leak.
4120 2007-10-03 Chris Toshok <toshok@ximian.com>
4122 * moonlight.h: need to wrap the renamed symbols in an extern "C"
4125 2007-10-03 Chris Toshok <toshok@ximian.com>
4127 * moonlight.h, plugin-entry.cpp, plugin-proxy.cpp: if we're using
4128 libmoonloader.so, we need to rename the 4 symbols we proxy in
4129 plugin-entry.cpp, and load them up via our mangled names in
4130 plugin-proxy.cpp. This is so mozilla doesn't try to load
4131 libmoonplugin.so as a plugin itself. It should only load
4132 libmoonloader.so. Also, add code in plugin-proxy.cpp to handle
4133 the case where the .so lives in ~/.mozilla/plugins. This requires
4134 #define PLUGIN_INSTALL 1 to be used, so we should figure out how
4135 to build with that when building the XPI.
4137 2007-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4139 * plugin.cpp, plugin.h: Added SetPageURL, updates the Surface' source
4140 location to the url of the current page.
4142 2007-09-30 Zoltan Varga <vargaz@gmail.com>
4144 * plugin.cpp (ReportException): Handle multiple calls correctly.
4146 2007-09-28 Chris Toshok <toshok@ximian.com>
4148 * Makefile.am: wrap moonlight.exe stuff in "if
4149 INCLUDE_MONO_RUNTIME" where necessary.
4151 2007-09-28 Chris Toshok <toshok@ximian.com>
4153 * moonlight.h (INCLUDE_MONO_RUNTIME): remove #define from here.
4154 it's now a configure arg (and the define lives in config.h).
4156 2007-09-28 Zoltan Varga <vargaz@gmail.com>
4158 * plugin.cpp (UrlNotify): Add some debug messages here.
4160 * plugin.cpp (ReportException): New helper function to display exception details
4161 using dynamic html above the plugin frame.
4163 2007-09-27 Jeffrey Stedfast <fejj@novell.com>
4165 * plugin-glue.cpp (NPP_Initialize): Call runtime_init() with
4166 RUNTIME_INIT_BROWSER.
4168 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4170 * plugin.cpp: Properly release a MoonlightObject.
4172 2007-09-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
4174 * plugin.cpp: PluginInstance::UrlNotify: delete the StreamNotify when we're
4175 done with it. Added plugin_xaml_loader_from_str.
4176 * plugin-class.cpp: moonlight_scriptable_control_invoke: unref the
4177 Downloader we create once the object wrapper has it. Move implementation
4178 of MoonlightEventObjectObject::SetEventObject here.
4179 * plugin.h: StreamNotify: ref the DependencyObject we get, and unref on
4180 destruction. Added plugin_xaml_loader_from_str.
4181 * plugin-class.h: Move implementation of
4182 MoonlightEventObjectObject::SetEventObject to the cpp file.
4184 2007-09-23 Jb Evain <jbevain@novell.com>
4186 * plugin.cpp: Pride sin, add my name to the contributors.
4188 2007-09-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4190 * plugin.cpp, plugin.h: Add a plugin_unload_callback to PluginInstance, and
4191 call it in the dtor.
4192 * moonlight.cs: Added UnloadDomain: unloads the domain that was loaded for a
4193 specific plugin, and set the corresponding native callback. Keep a hash
4194 table of all created domains so that we know which domain to unload,
4195 Delete some dead code (DisposeXamlLoader, ~Loader, Dispose)
4197 2007-09-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4199 * plugin.cpp: If an assembly already has been downloaded once, don't try to
4200 reload the xaml (otherwise might cause a loop if loading the xaml failed
4201 due to a reason other than that the assembly wasn't already downloaded).
4202 Added PluginXamlLoader::LoadVM. PluginXamlLoader::TryLoad: don't call
4203 into the vm here, since it might not be loaded yet. Move implementation
4204 of InsertMapping, CreateElement and SetAttribute to XamlLoader.
4205 InitializeLoader: don't create a managed loader if the vm hasn't been
4207 * plugin.h: Move implementation of InsertMapping, CreateElement and
4208 SetAttribute to XamlLoader.
4209 * plugin-class.h: Remove unused function declaration.
4210 * mono.cpp, moon-mono.h: Remove all managed methods except moon_load_xaml,
4211 which sets the methods as callbacks on the xaml loader with delegates
4212 now. Guard against loading the vm twice.
4213 * moonlight.cs: Moved code to agclr, just kept a simple stub here that
4214 creates the new AppDomain.
4215 * plugin-glue.cpp: Don't initialize the vm when the plugin is initialized,
4216 it's initialized on demand.
4218 2007-09-19 Zoltan Varga <vargaz@gmail.com>
4220 * plugin.cpp (plugin_menu_about): Make the close button work on some gtk versions.
4222 2007-09-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4224 * plugin.cpp: Remove a printf.
4225 * plugin-class.cpp, plugin-class.h: Apparently invalidate isn't always
4226 called for our MoonlightObjects (though deallocate is). Create a Dispose
4227 method that does what invalidate did (and call it from Invalidate), and
4228 keep track if it has been called or not (allows deallocate to call it if
4229 invalidate wasn't called by mozilla). Make Dispose virtual so that the
4230 base deallocator can call it for all derived classes (which also means
4231 that we only need the base invalidate method), and add a virtual
4232 destructor so that the base deallocator can also delete the object (and
4233 remove all other *_deallocator methods). proxy_listener_to_javascript:
4234 release objects at the end of the method.
4236 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4238 * plugin.cpp, plugin.h, moonlight.cs: Move callbacks from PluginXamlLoader
4241 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4243 * downloader.cpp: Removed warning.
4244 * plugin.cpp: Delete the current xaml_loader if we create a new one.
4246 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4250 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4252 [Removed mono dependency for 1.0 moonlight applications.
4253 We now have a native [Plugin]XamlLoader that is the native counterpart of the
4254 managed Loader object, the native loader handles xaml loading when the
4255 mono runtime isn't loaded.]
4257 * plugin.cpp, plugin.h: Added PluginXamlLoader that can forward calls into
4258 the managed loader if the mono runtime is loaded.
4259 * plugin-class.cpp: isVersionSupported: if built without mono runtime
4260 support, we only support 1.0 applications. Update according to API
4262 * moonlight.h, mono.cpp, moon-mono.h: Update according to API change.
4263 * moonlight.cs: Update according to API change. Added Hosting.base_unref and
4264 unref a few objects.
4265 * plugin-glue.cpp: Don't initialize the mono runtime for 1.0 applications.
4267 2007-09-09 Chris Toshok <toshok@ximian.com>
4269 * plugin-class.cpp (moonlight_content_invoke): implement
4270 content.createFromXamlDownloader.
4272 Thu Sep 6 16:19:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
4274 * mono.cpp, moon-mono.h, plugin.cpp, plugin.h: correct use of mono
4275 objects: they can't be stored in unmanaged memory.
4277 Thu Sep 6 15:22:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
4279 * mono.cpp, moon-mono.h: cleanup of some code and localized the mono
4282 2007-09-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4284 * plugin-class.cpp: Added some special debug code, enabling basic printf
4285 functionality from javascript code. No need to synchronize console
4286 output with firebug output anymore.
4287 * debug.js: Added, a printf function for javascript, specially crafted for
4290 2007-08-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4292 * plugin.cpp: Get the actual size from the surface.
4294 2007-08-31 Michael Hutchinson <m.j.hutchinson@gmail.com>
4296 * plugin.cpp: Fix pointer cast for 64-bit arch.
4298 2007-08-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4300 * downloader.cpp: Added downloader_destroy.
4301 * plugin-class.cpp, plugin-class.h: Add plugin_destroy_classes, and remove a
4302 duplicate creation of MoonlightPointClass.
4303 * plugin-glue.cpp: Try shutting down everything correctly, if it can be
4304 shutdown, if not, don't initialize twice (vm and gtk).
4306 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4308 * plugin-class.cpp: Javascript expects the sender of a FullScreenChange
4309 event to be the toplevel canvas, so when the Surface emits this event,
4310 change the sender to the toplevel canvas.
4312 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4314 * plugin.cpp: Don't delete the surface, unref it.
4315 * plugin-class.cpp, plugin-class.h: Create a MoonlightEventObject* and make
4316 MoonlightDependencyObject* inherit from it. Change all event usage to
4317 the new class, enables events for objects that aren't DependencyObjects
4318 (but are EventObjects, such as Surface). Implement FullScreen support in
4319 the plugin. Remove the dob field from MoonlightDependencyObject, the
4320 MoonlightEventObject has an eo field that fits the purpose, and
4321 implement a MoonlightDependencyObject.GetDependencyObject () that does
4322 what dob did earlier (and change all usages).
4324 2007-08-24 Jackson Harper <jackson@ximian.com>
4326 * plugin-class.cpp|h: Add a new EventListenerObject that we can
4327 return from addEventListener.
4328 - Implement removeEventListener.
4330 2007-08-24 Jackson Harper <jackson@ximian.com>
4332 * plugin-class.cpp|h: Now that getPosition works as intended, we
4333 don't need to store the position as an NPObject on the
4335 - Eliminate the variant_to_value so that we don't need to do a
4336 bunch of extra casting.
4338 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4340 * plugin-class.cpp: mouse_event_invoke (getPosition):
4341 use the argument to calculate the position if provided.
4343 2007-08-23 Jackson Harper <jackson@ximian.com>
4345 * plugin-class.cpp: We can now hookup to the resize event.
4347 2007-08-23 Jb Evain <jbevain@novell.com>
4349 * mono.cpp (vm_init): properly initialize the new debugging
4352 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4354 * plugin-class.cpp|h: Duration and TimeSpan's seconds property
4355 is a double, so treat is as such. Add moonlight type information
4356 to MoonlightObject (and derived classes), so that the marshalling
4357 knows how to treat them when they come back from js land.
4358 _set_dependency_property_value: handle values coming from js land
4359 correctly, according to their moonlight type.
4361 2007-08-23 Jb Evain <jbevain@novell.com>
4363 * mono.cpp (vm_init): use new method name to initialize
4366 2007-08-23 Jb Evain <jbevain@novell.com>
4368 * Makefile.am: use -pkg:agmonosilver to reference agmono.dll
4370 2007-08-17 Chris Toshok <toshok@ximian.com>
4372 * plugin-class.cpp|h: add a TimeSpan wrapper object.
4374 2007-08-17 Jb Evain <jbevain@novell.com>
4376 * mono.cpp (vm_init): small refactoring to get MonoMethods.
4378 2007-08-17 Chris Toshok <toshok@ximian.com>
4380 * plugin-class.cpp (moonlight_content_has/get/set_property): stub
4381 the onFullScreenChange property, to just warn us about the
4382 unimplemented functionality.
4384 2007-08-17 Jackson Harper <jackson@ximian.com>
4386 * plugin-class.cpp|h: Add a duration object that is exposed to the
4388 - Fix the value_to_variant to handle durations, rects and points.
4390 2007-08-17 Chris Toshok <toshok@ximian.com>
4392 * plugin-class.cpp (moonlight_dependency_object_invoke): add
4393 toString method for DependencyObjects, which just returns the type
4396 2007-08-17 Jackson Harper <jackson@ximian.com>
4398 * plugin-class.cpp: Properties are allowed to be null, so we still
4399 return true if the value is null.
4401 2007-08-17 Jackson Harper <jackson@ximian.com>
4403 * plugin-class.cpp: Add the Root property to the content
4404 object. This just returns the top element.
4406 2007-08-17 Jb Evain <jbevain@novell.com>
4408 * Makefile.am: use smcs to compile moonlight.exe
4409 * mono.cpp (vm_init): force the use of the moonlight profile
4412 2007-08-16 Jackson Harper <jackson@ximian.com>
4415 * downloader.cpp: Remove my downloader event code, these are
4416 raised elsewhere (they were hidden behind another bug yesterday).
4418 2007-08-16 Jackson Harper <jackson@ximian.com>
4420 * plugin-class.cpp: Fix cut&paste error that was preventing
4421 GetValue from working (get value only needs one arg).
4423 2007-08-16 Jackson Harper <jackson@ximian.com>
4425 * plugin-class.cpp: Add removeAt method to collections.
4427 2007-08-15 Jackson Harper <jackson@ximian.com>
4429 * plugin-class.cpp: Implement ctrl/shift for mouse and keyboard
4430 events. I didn't use a shared base class, because the
4431 duplicated code is significantly less than the boilerplate code
4434 2007-08-15 Jackson Harper <jackson@ximian.com>
4436 * plugin-class.h|cpp: Add support for keyboard arguments in the
4437 keyup/keydown events. TODO: Still need to implement shift and
4438 control, ideally, in a base class for mouse and keyboard events.
4440 2007-08-15 Jackson Harper <jackson@ximian.com>
4443 * downloader.cpp: Raise downloading events.
4445 2007-08-13 Jackson Harper <jackson@ximian.com>
4447 * plugin-class.cpp: findName should only look in the dependency
4450 2007-08-13 Jackson Harper <jackson@ximian.com>
4452 * plugin-class.cpp: For dependency object strings don't return
4453 null, just return an empty string.
4455 2007-08-11 Miguel de Icaza <miguel@novell.com>
4457 * moonlight.cs: Use the new Appdomain helper methods too.
4459 Use Ansi here because we only run on Linux not on
4460 Windows and the Auto API is gone from 2.1
4462 * moonligth.cs: Use the new helper method from agmono instead of
4463 duplicating code here.
4465 2007-08-07 Jackson Harper <jackson@ximian.com>
4467 * moonlight.cs: Add another system library to the do-not-download
4470 2007-08-06 Jackson Harper <jackson@ximian.com>
4472 * plugin-class.cpp: We don't need to explicitly free the value
4473 because the dtor will for us.
4475 2007-08-06 Jackson Harper <jackson@ximian.com>
4477 * plugin-class.cpp|h: Add functionality for detaching events and
4478 for releasing object references.
4479 - When looking up on the window object, do not release it. It
4480 doesn't need to be released because it is never retained.
4481 - Add a new function for creating a browser alert message.
4483 2007-08-03 Chris Toshok <toshok@ximian.com>
4485 * plugin-class.cpp (moonlight_downloader_*): add
4486 has_property/get_property methods, for the "responseText"
4487 property. not sure if getResponseText() is still around, but the
4488 property definitely is in use by silverlight pad.
4490 2007-08-03 Jackson Harper <jackson@ximian.com>
4492 * plugin-class.h|cpp: Add support for mouse events, pass all the
4493 info needed by HtmlEventArgs back in the callback.
4494 - Don't return null or void objects from invoke or get property.
4496 2007-08-03 Jackson Harper <jackson@ximian.com>
4498 * moonlight.cs: Dont download all the system libraries.
4500 2007-08-03 Jackson Harper <jackson@ximian.com>
4502 * plugin-class.h|cpp: Add support for attaching properties.
4504 2007-08-02 Chris Toshok <toshok@ximian.com>
4506 * plugin-class.cpp (moonlight_content_invoke): createFromXaml
4507 doesn't create a control object - it parses the xaml you pass in
4508 and returns the root element, so it can be used for any xaml
4511 * plugin.h, plugin.cpp: add plugin_instance_get_init_params for
4512 use in WebApplication.StartupArgs.
4514 2007-07-29 Chris Toshok <toshok@ximian.com>
4516 * moonlight.h: track the 1.1 refresh changes.
4518 2007-07-25 Chris Toshok <toshok@ximian.com>
4520 * plugin-class.cpp (moonlight_dependency_object_invoke): implement
4521 "getParent" correctly - it can return NULL.
4523 2007-07-25 Chris Toshok <toshok@ximian.com>
4525 * plugin-class.h: implement scriptable events (adding and emitting
4528 2007-07-24 Jackson Harper <jackson@ximian.com>
4530 * plugin-class.cpp|h: Add function to invoke methods on
4531 htmlobjects from unmanaged code.
4533 2007-07-24 Chris Toshok <toshok@ximian.com>
4535 * plugin.cpp (PluginInstance::setBackground): implement.
4536 (PluginInstance::CreateWindow): if our args contained a background
4537 color, set the surface's background.
4539 2007-07-24 Jackson Harper <jackson@ximian.com>
4541 * plugin-class.cpp: Move the window release up, prevents random
4542 crashing in firefox.
4544 2007-07-24 Chris Toshok <toshok@ximian.com>
4546 * plugin-class.h, plugin-class.cpp: add wrapper classes for
4547 TextBlocks and ImageBrushes.
4549 2007-07-24 Jackson Harper <jackson@ximian.com>
4551 * plugin-class.cpp: Implement variants to value on objects. TODO,
4552 add a method to release those objects.
4554 2007-07-24 Chris Toshok <toshok@ximian.com>
4556 * plugin-class.h, plugin-class.cpp: add a wrapper class for
4557 Images, which implements SetSource. also add SetSource handling
4558 for the MediaElement wrapper.
4560 * moonlight.cs: rework event hookup so that if we fail to hookup
4561 with C#, we assume it's a JS event. hook it up via the
4562 EventListenerProxy stuff.
4564 * plugin.h, plugin.cpp: MoonlightControl -> MoonlightScriptable
4566 * plugin-class.h, plugin-class.cpp:
4568 1. rename MoonlightControl* to MoonlightScriptableControl* to
4569 distinguish it from the new MoonlightControl, which is a wrapper
4570 for our Control class. factor out the _set_dependency_property_value
4572 2. add "getParent", "setValue", and "getValue" methods to the
4573 dependencyobject wrapper.
4575 3. Add a ctor for EventListenerProxy which just takes the callback
4576 name for use in hooking up js events from the parser.
4578 2007-07-24 Jackson Harper <jackson@ximian.com>
4580 * plugin.h|cpp: Add a getter for the plugin instance
4581 * plugin-class.h|cpp: Property get/setters for html objects.
4583 2007-07-23 Chris Toshok <toshok@ximian.com>
4585 * plugin-class.h, plugin-class.cpp: include error.h, and start out
4586 some error event args wrapping stuff.
4588 2007-07-23 Miguel de Icaza <miguel@novell.com>
4590 * plugin.cpp (PluginInstance): track the timers on a linked list
4593 (~PluginInstance): Remove all the timers for this plugin on
4596 (plugin_html_timer_timeout_add, plugin_html_timer_timeout_stop):
4597 Move these routines here and track all the timers created.
4599 * moonlight.cs: Use the type from agmono instead of agclr
4601 2007-07-21 Chris Toshok <toshok@ximian.com>
4603 * plugin-class.cpp (variant_to_value): fix this such that it
4604 doesn't crash due to c++'s not using a copy ctor when you do "foo
4605 = Value()". the first of the changes are fallout from this.
4607 2007-07-20 Miguel de Icaza <miguel@novell.com>
4609 * Fix a memory leak.
4611 2007-07-19 Chris Toshok <toshok@ximian.com>
4613 * plugin-class.h, plugin-class.cpp: factor out the
4614 EventListenerProxy stuff into a separate class.
4616 2007-07-19 Chris Toshok <toshok@ximian.com>
4618 * plugin-class.cpp (moonlight_control_get_property): Retain the
4619 settings/content objects before returning them. fixes crash in
4622 2007-07-19 Chris Toshok <toshok@ximian.com>
4624 * plugin.h, plugin.cpp: add getBrowserInformation call, useful for
4625 populating the managed BrowserInformation object. need to flesh
4626 out how to get the other info. userAgent is easy.
4628 also, in plugin.cpp, only invoke is onLoad handler if
4629 vm_loader_try doesn't return a missing file. This fixes the
4630 ordering problem in the silverlight chess demo (where we were
4631 accessing JScriptPlayer before it was created).
4633 2007-07-19 Chris Toshok <toshok@ximian.com>
4635 * plugin-class.h: add some scriptable object event stuff.
4637 * plugin-class.cpp: a couple of things.
4639 1) fix the _invalidate and _deallocate methods. _invalidate
4640 shouldn't release objects. and _deallocate can now call delete
4641 again, so we don't leak all our wrapper objects.
4643 2) add some initial scriptable object event methods (add/remove),
4644 but they don't actually do much yet.
4646 * plugin.cpp: fix the refcounting of the rootobject, and remove
4647 some RUNTIME ifdefs.
4649 * plugin-glue.cpp (NPP_Initialize): remove the RUNTIME ifdefs.
4651 * moonlight.h: remove some of the unused ifdefs. also, we're not
4652 going to ever build this with RUNTIME or SCRIPTING not defined, so
4655 2007-07-18 Jackson Harper <jackson@ximian.com>
4657 * plugin-class.cpp: Build fix.
4659 2007-07-17 Chris Toshok <toshok@ximian.com>
4661 * plugin-class.cpp (moonlight_scriptable_object_invoke): deal with
4664 * plugin-class.h: change the type of InvokeDelegate - we pass an
4665 array, not an array of pointers.
4667 * plugin.cpp (JsRunOnload): remove redundant call to
4668 surface->GetToplevel().
4670 2007-07-16 Chris Toshok <toshok@ximian.com>
4672 * moonlight.cs: AppDomain.SetData the plugin instance so
4673 WebApplication can get at it.
4675 * plugin-class.cpp (variant_to_value): pseudo-inverse of
4676 value_to_variant. used by the scriptable object stuff.
4678 Also, add the first pass at the scriptable object code. it's
4679 really, really rough at this point.
4681 * plugin.cpp (PluginInstance::GetValue): switch this to calling
4683 (PluginInstance::getRootObject): put the old GetValue (create or
4686 2007-07-12 Chris Toshok <toshok@ximian.com>
4688 * plugin-class.cpp: implement support for using a string as the
4689 second arg in addEventListener. now you can register callbacks
4692 object.addEventListener ("EventName", method);
4696 object.addEventListener ("EventName", "methodName");
4698 fixes SilverlightChess crashing (since we were trying to
4699 InvokeDefault a string. oops. :)
4701 2007-07-12 Chris Toshok <toshok@ximian.com>
4703 * plugin-class.cpp (moonlight_dependency_object_invoke): implement
4704 captureMouse/releaseMouseCapture. going to move these to a
4705 UIElement specific wrapper next.
4707 2007-07-12 Chris Toshok <toshok@ximian.com>
4709 * plugin-class.cpp, plugin-class.h: a few things:
4711 refactor the listener proxying stuff to share code. when creating
4712 a proxy you create the event arg wrapper function, which at
4713 present only the mouse event stuff uses.
4715 wrap Downloader. events are properly emitted, we should move the
4716 Downloader to using EventHandler's instead of its custom list of
4719 when looking up an attached property both (or one, or neither!) of
4720 the names can be capitalized. like: foo['canvas.top'],
4721 foo['Canvas.Top'], and foo['canvas.Top']. handle all of them.
4723 in value_to_variant, when setting a property to an object value,
4724 we assume (perhaps incorrectly) that it will be a
4725 MoonlightDependencyObjectObject, and handle it that way. it seems
4726 to work for the demos at least. Also in that same method, stop
4727 allocating a 20 byte buffer in the hope that it's enough. just
4728 use g_strdup/g_strdup_printf.
4730 add control.createObject support for creating wrapped
4731 downloaders. also, start on the implementation for
4732 control.onResize, but we need to shift the surface's resize
4733 callback to use an EventHandler.
4735 2007-07-11 Chris Toshok <toshok@ximian.com>
4737 * plugin-class.cpp, plugin-class.h: fix up the point and rect
4738 wrappings, and implement mouse event proxying.
4740 2007-07-11 Chris Toshok <toshok@ximian.com>
4742 * plugin-class.cpp, plugin-class.h: wrap the MediaElement enough
4743 to provide the start/stop/pause methods.
4745 2007-07-11 Chris Toshok <toshok@ximian.com>
4747 * plugin-class.cpp, plugin-class.h, plugin-glue.cpp, plugin.h,
4748 plugin.cpp: I know this looks like a scary change, but 90% of the
4749 code is the same. I just took advantage of the fact that we
4750 already have structs with all the function pointers in them.
4751 there's no reason to proxy from a function pointer in the struct
4752 to an instance method on a singleton class - just use the function
4755 Also, add a binding for Points, which we'll need to wrap mouse
4758 2007-07-11 Chris Toshok <toshok@ximian.com>
4760 * moonlight.h (DEBUG_WARN_NOTIMPLEMENTED): add this macro so we
4761 can get spew to the console when we hit unimplemented bits.
4763 * plugin-class.cpp: a couple of changes:
4765 1. the case of property names is lax too, it seems. 'Children'
4766 can be used in the js, as well as 'Children'. so we need to allow
4769 2. Fix a memory corruption issue with value_to_variant - we need
4770 to duplicate the string we give to mozilla, since it'll free it in
4771 NPN_ReleaseVariantValue.
4773 3. Implement proxies between our event handlers and JS event
4774 listeners. We leak like a sieve here, btw. need to figure out
4775 the best way to free up these proxies. This works for any event
4776 that has been Register'ed by an EventObject and which is Emit'ed
4779 4. Implement collection.getItem().
4781 2007-07-11 Chris Toshok <toshok@ximian.com>
4783 * plugin.h, plugin.cpp: add getRootObject to return the
4784 MoonlightControlObject.
4786 * plugin-class.cpp (MoonlightDependencyObjectClass::Invoke):
4787 implement "getHost" by returning PluginInstance->getRootObject().
4789 2007-07-11 Chris Toshok <toshok@ximian.com>
4791 * plugin-class.h, plugin-class.cpp: substantially rework this
4792 stuff. Rename everything Moonlight*Class and Moonlight*Object
4793 instead of Plugin*Class/Object, to make it a little clearer that
4794 these are (almost entirely) wrappers for moonlight objects.
4796 Also clean up the distinction between "Class" and "Object". for
4797 instance, MoonlightDependencyObjectClass shouldn't have the
4798 DependencyObject*, that should live in the instance -
4799 MoonlightDependencyObjectObject (bad name i know..)
4801 our Objects also need a little bit more inheritance action.
4802 MoonlightObject isn't enough for all cases. Augment this with
4803 other classes, and override AllocateObject to allocate the right
4804 kind per class. Also, we need to override InvalidateObject to
4805 clear fields in the MoonlightObject subclasses before it's
4808 Also make all the Class's singletons. We never need more than one
4811 * plugin.h, plugin.cpp: we don't need a generate JsExecute method.
4812 besides, it's dangerous to NPN_Evaluate strings we get from the
4813 HTML anyway. Replace JsExecute with JsRunOnload, which uses
4814 NPN_Invoke to call the specified method. we also need to pass the
4815 surface's toplevel control as an argument to it.
4817 2007-07-11 Miguel de Icaza <miguel@novell.com>
4819 * moonlight.cs: Add support for downloading assembly
4822 2007-07-10 Chris Toshok <toshok@ximian.com>
4824 * moonlight.cs: add some helpful debug spew.
4826 * plugin.cpp (StreamAsFile): the mapping needs to point to the
4827 filename on disk, not the full uri. or else we try loading
4828 "http://" off the filesystem, which doesn't really work. Just to
4829 be thorough, add a mapping from the stream's url to the fname as
4832 2007-07-09 Miguel de Icaza <miguel@novell.com>
4834 * Makefile.am: install debugging symbols.
4836 * moonlight.cs: try/catch wrappers to prevent exceptions to be
4837 propagated to native code.
4839 2007-07-09 Chris Toshok <toshok@ximian.com>
4841 * moonlight.cs: copy over the System.Reflection implementation of
4842 set_attribute from XamlReader. also, track the change to the
4843 xaml_* apis - don't pass the callbacks to the individual methods.
4844 instead register them in a static ctor.
4846 2007-07-09 Miguel de Icaza <miguel@novell.com>
4848 * moonligh.cs: Invoke the Lookup(Kind, IntPtr) overload, just like
4849 we do in XamlReader.
4851 2007-07-06 Miguel de Icaza <miguel@novell.com>
4853 * downloader.cpp: Update to the get-response-text downloader API.
4855 2007-07-03 Miguel de Icaza <miguel@novell.com>
4857 * plugin.cpp (NewStream): Request that DOWNLOADER downloads be
4858 downloaded as NP_ASFILE, this means: notify us of the progres and
4859 the resulting filename.
4861 2007-06-26 Marek Habersack <mhabersack@novell.com>
4863 * moonlight.h (GDK_NATIVE_WINDOW_POINTER): define this macro if
4864 we're on a 64-bit platform. Otherwise plugin.cpp will fail to
4865 compile (attempting to convert guint32 to 64-bit pointer).
4867 2007-06-24 Larry Ewing <lewing@novell.com>
4869 * moonlight.h: include xaml.h so that things build.
4871 2007-06-24 Atsushi Enomoto <atsushi@ximian.com>
4873 * Makefile.am : we need libmoonplugin.so installed too.
4875 2007-06-23 Miguel de Icaza <miguel@novell.com>
4877 * plugin-proxy.cpp: This is the new entry point for the plugin
4878 which can be loaded and unloaded as many times as desired, and
4879 will keep the real plugin in $pkgdir/libmoonplugin.so loaded as
4882 This prevents the bugs where the code is unloaded, but we still
4883 have a few places where we are triggering screen updates when the
4884 objects have gone, those must be tracked down.
4886 2007-06-23 Chris Toshok <toshok@ximian.com>
4888 * Makefile.am: distcheck work.
4890 2007-06-22 Chris Toshok <toshok@ximian.com>
4892 * README: barebones README to tell people what to do with the
4895 2007-06-21 Jackson Harper <jackson@ximian.com>
4897 * moonlight.cs: Do what I was trying to do with the last commit.
4898 Attach the surface so that events are registed.
4900 2007-06-21 Jackson Harper <jackson@ximian.com>
4902 * moonlight.cs: Init the surface so that the mouse events are
4905 2007-06-20 Jeffrey Stedfast <fejj@gnome.org>
4907 * plugin.cpp (plugin_show_menu): Free the menu name after setting
4910 * mono.cpp (vm_init): Don't need top prefix with "/".
4912 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4914 * plugin.cpp: Add new params to xaml_create_from_file and
4915 xaml_create_from_str calls to fix compilations problems.
4917 2007-06-20 Chris Toshok <toshok@ximian.com>
4919 * plugin.cpp (StreamAsFile): don't try to execute onLoad if there
4922 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4924 * plugin.cpp, plugin.h: Implement JsExecute method and use it to call onload
4925 event specified in control creation. onLoad and onError field is also
4928 2007-06-20 Jackson Harper <jackson@ximian.com>
4930 * moonlight.cs: Tie into events.
4932 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4934 * plugin-class.cpp: Update DependencyObject setter to work with strings
4935 and some other data types, using xaml_set_property_from_str. Also remove
4936 some debug messages, we have too much.
4938 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4940 * plugin.cpp: Uncomment container detroy lines in Finalize method.
4942 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
4944 * plugin-class.cpp: Alloc one byte to set it to NULL so we don't
4945 write to unallocated memory.
4947 2007-06-20 Chris Toshok <toshok@ximian.com>
4949 * plugin.cpp (PluginInstance::Write): it turns out the "offset"
4950 parameter that is passed to us is the offset without the *stream*,
4951 not the buffer. Always pass 0 for the offset to downloader_write.
4952 This fixes image downloads for images larger than the mozilla
4953 buffer size (those requiring more than 1 write) of 16384.
4955 2007-06-19 Chris Toshok <toshok@ximian.com>
4957 * plugin-glue.cpp (NPP_Initialize): if we're going to Shutdown()
4958 the TimeManager in NPP_Shutdown, we need to restart it in
4961 2007-06-19 Chris Toshok <toshok@ximian.com>
4963 * plugin-class.cpp: check in the variant_to_value/value_to_variant
4964 methods, and make GetProperty/SetProperty use them.
4966 * plugin.cpp (UpdateSourceByReference): use g_strlcpy/g_strlcat
4967 instead of strcpy/strcat (which was actually walking off the end
4968 of the string). also, create the char array of the right size.
4970 2007-06-19 Atsushi Enomoto <atsushi@ximian.com>
4972 * Makefile.am : we need uninstall-plugin to avoid
4973 possible browser shutdown on browsing sl-enabled sites.
4975 2007-06-19 Everaldo Canuto <ecanuto@novell.com>
4977 * plugin-class.cpp, plugin-class.h: Implement DependencyObject properties
4980 2007-06-19 Everaldo Canuto <ecanuto@novell.com>
4982 * plugin.cpp: Eliminate remaining canvas field.
4984 2007-06-19 Miguel de Icaza <miguel@novell.com>
4986 * plugin.h: Eliminate the field canvas, as the managed code can
4987 replace the toplevel and we wont be able to track it. Access the
4988 field directly from the surface instead.
4990 2007-06-18 Miguel de Icaza <miguel@novell.com>
4992 * moonlight.cs: Create appdomains to keep applications separate
4993 and to keep the IntPtr to the plugin.
4995 The handle to the plugin is stored in agclr in the BrowserHost
4998 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
5000 * plugin-class.cpp: Implement maxFrameRate property.
5002 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
5004 * moonlight.h: Just a high value for MAX_STREAM_SIZE.
5006 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
5008 * plugin.cpp, plugin.h: Implement Write and WriteReady to interact with
5009 Downloader functions. It looks to be right but image still dont appears,
5010 mayeb something in download manager functions. STREAM_NOTIFY macro added to
5013 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
5015 * downloader.cpp: Fix stream notify data, must be Downloader not
5018 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
5020 * plugin-glue.cpp: Remove stream destruction from Write and WriteReady, it
5021 was preventing browser to call our write function.
5023 * moonlight.h: MAX_STREAM_SIZE constant added.
5025 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5027 * plugin.cpp, plugin.h: Add a new StreamNotifyFlags REQUEST, it is used by
5028 files requested by Mono runtime, the use of notify bring us a more clean
5029 code to controls requested files.
5031 * downloader.cpp: Use StreamNotify and check for existense of instance.
5033 007-06-17 Jackson Harper <jackson@ximian.com>
5035 * moonlight.cs: Parse type names out of xmns strings. x:Class uses
5036 this slightly different format.
5038 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5040 * plugin.cpp, plugin.h: Add support for "#" (references) in source urls, it
5041 make possible use embedded xaml files. Also every source updates go to the
5042 UpdateSource and UpdateSourceByReference methods.
5044 * moonlight.cs: Xaml file loader splited in two methods CreateXamlFileLoader
5045 and CreateXamlStrLoader to support embedded files.
5047 * mono.cpp: Wrapper funtions also splited in file loader and str loader.
5049 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5051 * plugin.cpp: Use setSource to define source in Initialize, it give us only
5052 one place to check set source code. Also prevent setSource to segfault when
5053 source field is null.
5055 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5057 Fixes browser segfaults related to timemanager when goto another page or
5060 * plugin-glue.cpp: Call runtime_init every time that browser initialize
5061 plugin, when plugin shutdown just shutdown timemanager since we have
5062 problems to runtime_shutdown. Some comment added to this implementation
5063 and we must back here when runtime_shutdown is fixed.
5065 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5067 * plugin.cpp, plugin.h: Create StreamNotify class to use as notifydata
5068 parameter in NPN_GetURLNotify function, it gives us better control about
5069 what is downloading. Fixes errors when you try change control source
5072 2007-06-17 Miguel de Icaza <miguel@novell.com>
5074 * downloader.cpp (p_downloader_send): Some tidbits for the plugin
5075 download, not complete.
5077 2007-06-16 Jackson Harper <jackson@ximian.com>
5079 * moonlight.cs: Set custom attributes on xaml elements.
5081 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5083 * moonlight.h: Include config.h since moonlight.h is included by all files.
5084 Fixes compilation problems.
5086 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5088 * plugin.cpp, plugin.h: Remove sourceUrl and use NPN_GetURLNotify notifyData
5089 param to inform when download is source.
5091 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5093 * mono.cpp: Remove debug message cr.
5095 * plugin.cpp, plugin.h, plugin-class.cpp: Windowless property added.
5097 2007-06-16 Jackson Harper <jackson@ximian.com>
5099 * moonlight.cs: Quick implementation of miguels beautiful new xaml
5100 loading mechanism. We now properly download the assembly and
5101 create the element. The custom.xaml test does work, however you
5102 need to invalidate the canvas to see the red canvas background
5105 2007-06-16 Miguel de Icaza <miguel@novell.com>
5107 New mechanism for loading XAML files.
5109 Since XAML files can contain references to external assemblies and
5110 these have to be downloaded using the browser, we have now changed
5111 our previous setup that just called the xaml parser with a setup
5112 that is able to download dependencies.
5114 The system works by attempting repeatedly to parse the XAML file.
5115 The XAML parser needs to return an error condition that includes
5116 the missing dependency.
5118 For all missing dependencies, we request the file from the
5119 browser, and we re-try the parsing until it works (or it fails due
5122 * moonlight.cs: Instead of exposing a CreateFromXaml method, we
5123 now expose a Loader object.
5125 The Loader object can keep track of downloaded assembly
5126 dependencies and calls the parser.
5128 * plugin.cpp (NewStream): Use a primitive state machine
5129 (vm_missing_url == vm_missing_file) to detect when we have just
5130 requested that a file be downloaded. This probably is too
5133 (TryLoad): New method.
5135 Tries to load the XAML file, the parsing might fail because a
5136 required dependency is not available, so we need to queue the
5137 request to fetch the data.
5139 (LoadFromXaml): Use vm_xaml_loader_new and TryLoad now.
5141 * mono.cpp (vm_init): We now use a handful of more methods from
5144 (vm_loader_try, vm_insert_mapping): helper functions to call into
5145 the managed wrapper for XAML file loading.
5147 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5151 * plugin-class.cpp: Implement enableFramerateCounter, enableRedrawRegions
5152 and enableHtmlAccess properties.
5154 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5156 * plugin.cpp, plugin.h, plugin-class.cpp: Background property added.
5158 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5160 * plugin.cpp: Let LoadFromXaml just call load xaml routines.
5162 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5164 * moonlight.cs: Fix surface attachment.
5166 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5168 * plugin-glue.cpp: Prevent multiple runtime and mono vm initialization.
5170 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5172 * plugin.cpp, plugin.h: LoadFromXaml added to host canvas creation.
5174 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5176 * moonlight.h: Turns mono runtime enabled by default.
5178 * mono.cpp: Use of DEBUGMSG macro for debug message.
5180 * moonlight.cs: Fix Canvas kind number.
5182 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5184 * plugin.cpp, plugin.h, plugin-class.cpp: Fix setter for source property.
5186 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5188 * plugin.cpp, plugin.h: Add sourceUrl to get information about base source
5189 url. New Stream also check if request is for source file, if not return
5190 NP_NORMAL to be used later by downloader functions.
5192 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5194 * plugin-class.cpp, plugin-class.h: Remove macro STRING_TO_NPVARIANT, create
5195 method StringToNPVariant and change all reverences from macro to method.
5196 StringToNPVariant also take care about NULL strings.
5198 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5200 * plugin.cpp, plugin.h, plugin-class.cpp: Implement initParams property.
5202 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5204 * plugin-class.cpp: Implement setters for enableFramerateCounter,
5205 enableHtmlAccess and windowless. This fields cant be set after
5206 initialization so just do nothing and return true.
5208 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5210 * plugin-glue.cpp: After PluginObject changes we can back to release objects
5211 and it fix segfault when browser closes.
5213 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5217 * plugin-class.h: Remove unneeded instance fields, and contructor, after
5218 implementation of PluginObject we have a better way to get instance
5221 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5223 * plugin-class.cpp: Change all PluginRootClass properties to use new object
5226 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5229 * plugin-class.h: Rename NPObject references to PluginObject, PluginObject
5230 class theres more useful information like instance and plugin.
5232 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5236 * Makefile.am: Downloader functions added.
5238 * plugin-glue.cpp: On NPP_Initialize call downloader_initialize.
5240 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5242 * plugin-class.cpp: In PluginDependencyObject:: ClassGetProperty return
5243 false instead of null because funtion is of type boolean. It fix message
5246 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5248 * plugin.cpp: Move rootclass declaration to plugin-class.
5250 * plugin.h: Remove inclusion of plugin-class.h.
5252 * plugin-class.h: Introduces PluginObject class inherited from NPObject and
5253 add rootclass declaration.
5255 * plugin-class.cpp: Uses PluginObject instead of NPObject, also make use of
5256 object in 'source' property getter.
5258 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5260 * plugin.cpp, plugin.h: Add a new member finalize that must be calling
5261 instead of delete, we must later found a way to fix reload problems.
5263 * plugin-glue.cpp: Call finalize instead of delete.
5265 * TODO: Some notes about this bad implementation.
5267 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5269 * plugin-class.cpp: Add setter for control.source property.
5271 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5273 * plugin.cpp, plugin.h: isLoaded property added.
5275 * plugin-class.cpp: Implement control.isLoaded wrapper.
5277 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5280 - Take some notes on properties that cant be set after initialization.
5281 - Create macho STRING_TO_NPVARIANT to standardize the way how strings are
5282 returned to jscript calls.
5285 - Implement control.source using STRING_TO_NPVARIANT macro.
5286 - Uses STRING_TO_NPVARIANT macho in control.settings.version.
5288 * plugin.h: Add source property.
5290 * plugin.cpp: Set source on initialization.
5292 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5294 * plugin.cpp, plugin.h:
5295 - Move static rootobject to class field to get working pages with more than
5296 one moonlight control.
5297 - Implement param source for html object elements, this is default way to
5298 tell plugin which xaml it must load.
5300 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5302 * plugin-class.cpp, plugin-class.h:
5303 - Move instance field from PluginRootClass to PluginClass because most
5304 classes can make use of this field, class constructor is also changed to
5305 receive instance as parameter.
5306 - Remove host field from PluginDependencyObject, host can be accessed using
5309 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5311 * plugin-class.cpp: Implement "control.content" proeprties.
5313 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5315 * TODO: Added to include information about features that we know that is
5316 not current supported. Can be use for now to take some notes to be read
5319 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5321 * plugin-class.h: Add comments about read write/read only on properties.
5323 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5325 * plugin-class.cpp, plugin-class.h: Add SetProperty to PLUGIN_PROPERTIES
5326 and implement it for all classes.
5328 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5330 * plugin-class.cpp, plugin-class.h:
5331 - Fix IndexOf method.
5332 - Create and uses macros PLUGIN_PROPERTIES and PLUGIN_METHODS to define
5333 properties and methods.
5334 - Uses arrays to define properties and methods.
5335 - Use NPID macro to get string identifier.
5337 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5339 * plugin-class.cpp: Fix dependency of PLUGINROOTCLASS_PCOUNT in property
5340 array initialization.
5342 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5344 * plugin-class.cpp, plugin-class.h:
5345 - Implement IndexOf method that uses and array.
5346 - implement properties array.
5347 - ClassHasProperty now uses IndexOf.
5349 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5351 * Makefile.am: Fix LIBADD to include MOON_LIBS instead of two times
5354 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5356 * plugin-class.cpp, plugin-class.h: Get content and settings as a plugin
5359 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5361 * plugin.cpp, plugin.h: PluginContent class added.
5363 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5365 * plugin.cpp, plugin.h: Remove unused CreateDemoControls method.
5367 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5369 * plugin.cpp: Remove unused code and fix function names.
5371 * moonlight.h: Remove ";" on end of PLUGIN_DESCRIPTION define.
5373 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
5375 * Makefile.am : build fix. without -f rm fails.
5377 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5379 * plugin-class.cpp, plugin-class.h: Remove unused method ClassAllocate
5380 and fix all debug messages.
5382 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5384 * plugin.cpp: Fix object creation using NPN_RetainObject to increment
5385 reference count as described in Mozilla documentation.
5387 * plugin-class.cpp: On ClassDeallocate uses NPN_ReleaseObject that
5388 checks for references and release object when reference count is equal
5389 zero. It see to be solve all remaining segfault when browser closes.
5391 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5393 [Refactory jscript runtime code]
5395 * plugin-class.cpp, plugin-class.h: Create new class PluginRootClass,
5396 to be a proxy for javascript runtime calls, old code on plugin instance
5397 was moved here and all segfault related to script stuff was gone.
5399 * plugin.cpp, plugin.h: Remove jscript runtime related code and use
5402 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5406 * plugin.h: Fix remaining config.h -> moonlight.h.
5408 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5410 * moonlight.h: Define RUNTIME to enable/disable mono runtime
5411 integration. Its because right now it fails when open a page with
5412 script so we can comment /#define RUNTIME to get plugin working in
5415 * plugin.cpp: Dont call vm_load_xaml when RUNTIME is not defined.
5417 * plugin-glue.cpp: Dont call vm_init when RUNTIME is not defined.
5419 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5421 * moon-plugin.cpp: Renamed to plugin.cpp.
5422 * moon-plugin.h: Renaned to plugin.h.
5423 * config.h: Renaned to moonlight.h.
5425 * plugin-class.h, plugin-glue.cpp: Update includes.
5427 2007-06-11 Miguel de Icaza <miguel@novell.com>
5429 * Makefile.am: Delete the ~/.mozilla/plugins/libmoon.so in case it
5430 was around, that was the painful bug.
5432 * moon-plugin.cpp (CreateWindow): Do not create a canvas, nor
5433 attach it, let Mono do that.
5434 (StreamAsFile): Request that the VM loads the file, this will
5435 change to something else later when we use the Silverlight object
5438 * moonlight.cs: Implement some bits, it currently only loads the
5439 XAML file, it needs to create a new appdomain.
5441 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5445 * mono.cpp: Rename moon.cpp to moon-mono.cpp.
5447 * moon-mono.h: Add header information.
5450 * config.h: Add constant MOON_1_0 and MOON_1_1, when 1.1 is define
5451 compile also mono runtime, it is disabled by default since mono runtime
5452 give us some crashes right now.
5454 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5456 * Makefile.am: config.h added.
5464 * moon-plugin.h: Include config.h and remove unneeded includes.
5466 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5468 * moon-plugin.cpp: Remove DEMO mode and set SCRIPTING mode by default.
5470 2007-06-10 Miguel de Icaza <miguel@novell.com>
5472 * moonlight.cs: the startup code, will contain the helper classes
5473 to create new AppDomains for each instance create.
5475 * mono.cpp: New file, embeds the Mono VM.
5477 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5479 * plugin-glue.cpp: Call plugin instance destructor, now it dont causes
5480 error when you reload page.
5482 * moon-plugin.cpp: Only destroy container widget, if you dont destroy it
5483 when you start with page plugin, go to another page and close browser,
5484 a segfault is emited before browser exits. Now navigating for some time in
5485 silverlight pages looks to dont emit segfault if scripting is disabled.
5487 * plugin-class.cpp: Remove debug message from class constructor.
5489 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5494 - Read xaml file from src tag and display contents.
5495 - Disable demo box, now we have a better demo under xaml file.
5497 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5499 * Makefile.am: test added to subdirs.
5501 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5505 * moon-plugin.h: Rename DEBUG to DEBUGMSG.
5507 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5510 * moon-plugin.cpp: Change demo code to class method CreateDemoControls.
5512 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5514 * moon-plugin.cpp: Add canvas, connect it to surface and get demo working
5517 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5520 * moon-plugin.cpp: Rename CreateControls to CreateWindow.
5522 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5524 * Makefile.am: Add $(MOON_LIBS) to linker options.
5526 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5528 * plugin-glue.cpp: Dont delete plugin object since right now it causes some
5529 segfault when change to another page.
5531 * moon-plugin.cpp: Got scripting mode enabled by default.
5533 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5535 * plugin-glue.cpp: Fix plugin destruction.
5536 * moon-plugin.cpp: Change button to gtk label with plugin name and version.
5538 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5540 * plugin-glue.cpp: Set instance data to NULL to prevent error when browser
5544 - Disabled demo mode.
5545 - Enabled Scripting mode.
5546 - Fix runtime object creation, dont user NPN_RetainObject anymore.
5547 - Fix also object properties creation (settings).
5548 - Release object on class destructor.
5550 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5552 * moon-plugin.cpp: Simplify controls creation and add a button when you are
5553 not in demo mode. It is just for now to made some tests.
5555 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5557 * moon-plugin.cpp: Remove runtime initialization because it is wrong place.
5558 * plugin-glue.cpp: Add gtk and runtime initialization to NPP_Initialize.
5560 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5562 * moon-plugin.cpp: Add some initialization code to prevent some segmentation
5565 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5567 * moon-plugin.cpp: Add SCRIPTING and DEMO macros to make available only
5568 tested features, it mean that developers must uncomment this MACRO lines
5569 before work on scripting and libmoon stuff.
5571 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5573 * moon-plugin.cpp: Fix gtkplug creation fro 64bit systems.
5575 * Makefile.am: Add -lavformat to link options.
5577 Thanks Grendel for this patches.
5579 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5581 * moon-plugin.h: Change version number 0.99.0, SilverLight scripts searchs
5582 for version > 0.95.1.
5584 * test/index.html: Small fixes in test page.
5586 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5588 * test/index.html: Add javascript settings test.
5591 * moon-plugin.h: Implementing Settings class.
5593 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5596 * moon-plugin.h: Implement runtime properties structure and 'version'
5599 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5601 [PluginClass added to handle script objects]
5605 * Makefile.am: PluginClass added.
5608 * moon-plugin.h: PluginInstance now inherit from PluginClass, also
5609 scriptclass was removed and "this" is used in NPN_CreateObject. For
5610 NPN_CreateObject we can now always use classes inherited by PluginClass.
5612 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5614 * Makefile.am: Remove idl related code, new object system dont need idl or
5616 * nsIScriptableMoonPlugin.h: deleted.
5617 * nsIScriptableMoonPlugin.idl: deleted.
5619 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5621 * plugin-glue.cpp: Fix the instance initialization problems, the object
5622 instance was empty after creation.
5624 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5628 * plugin-glue.cpp: Fix SetValue declaration.
5630 * plugin-entry.cpp: Fix a lot of declarations, support for win and mac,
5631 support for runtime version checking and some other minor fixes.
5633 2007-06-06 Everaldo Canuto <ecanuto@novell.com>
5635 * moon-plugin.cpp: Comment container destructor to prevent segfault.
5637 2007-06-06 Everaldo Canuto <ecanuto@novell.com>
5639 * moon-plugin.cpp: Fix API change for Canvas.
5641 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
5643 * moon-plugin.cpp: Fix API change for SolidColorBrush.
5645 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5647 * moon-plugin.h: Add PLUGIN_OURNAME and PLUGIN_OURVERSION constants to
5648 specify our internal name and version that differs from plugin version
5649 detected by browser. SilverLight javascripts checks for WPF plugin and
5652 * moon-plugin.cpp: Change runtime initialization to CreateControls, before
5655 * plugin-glue.cpp: Fix memory allocation problems in NPP_New.
5657 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5661 * moon-plugin.h: Add initialization and remove demo transformation.
5663 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5665 [Remove ScriptablePeer code]
5667 * nsScriptablePeer.h, nsScriptablePeer.cpp: Removed.
5669 * plugin-glue.cpp: Fix debugger messages.
5673 * moon-plugin.h: Remove ScriptablePeer code since now Mozilla use
5676 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
5678 * moon-plugin.cpp: Fix API change for Rectangle.
5680 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5682 * moon-plugin-glue.cpp: Splited in plugin-glue.cpp and plugin-entry.cpp.
5683 * plugin-glue.cpp: Fix 'undefined symbol' creating NPP_SetValueX.
5685 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5687 * Makefile.am: Add some linker flags, it prevents crash on Epiphany.
5689 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5691 * test/index.html: Add script to demo html page.
5693 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5695 * moon-plugin.cpp: Add runtime init to demo code.
5697 2007-06-04 Everaldo Canuto <ecanuto@novell.com>
5699 * plugin/Makefile.am: Generate and install .xpt for install-plugin target.
5701 2007-06-04 Everaldo Canuto <ecanuto@novell.com>
5703 [Implement scriptable to plugin]
5705 * plugin/test/index.html: Sample jscript included.
5707 * plugin/Makefile.am: Generates .h from idl file use xpidl.
5709 * plugin/moon-plugin.h,
5710 * plugin/moon-plugin.cpp,
5711 * plugin/moon-plugin-glue.cpp: Implement scriptable and some clean up.
5713 * plugin/nsIScriptableMoonPlugin.h,
5714 * plugin/nsIScriptableMoonPlugin.idl,
5715 * plugin/nsScriptablePeer.cpp,
5716 * plugin/nsScriptablePeer.h: New scriptable classes.
5718 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5720 * moon-plugin-glue.cpp,
5722 * moon-plugin.cpp: Fix GetValue and implement SetValue.
5724 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5726 * moon-plugin.h: Change plugin name, version and description to mimic
5727 SilverLight and can be recognize as a valid plugin.
5729 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5731 * moon-plugin.c: Destroy objects on class destructor to prevent browser
5734 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5736 [Clean up demo and make some class fields private ]
5738 * moon-plugin-glue.c,
5740 * moon-plugin.c: Now just a surface control is added to plugn container,
5741 some field is now private demo was refactored.
5743 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5745 * Makefile.am: Compile if needed for install-plugin target.
5747 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5749 [Move to c++ based classes ]
5751 * moon-plugin-glue.c: Fix getvalue to return error when no instance
5755 * moon-plugin.c: Change all function to class methods, also move wrapper
5756 functions to moon-plugin-glue.
5758 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5762 * moon-plugin-glue.c: Remove moon_plugin_initialize and moon_plugin_shutdown
5763 since whe alread have NP_Initialize and NP_Shutdown. Also change
5764 PluginInstance structure to class (complete class suppont comming soon).
5766 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5768 * moon-plugin-glue.c: Some comments and stetic changes.
5770 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5772 * moon-plugin.h: Mime type description chage to 'WPFe Plug-In' to handle
5773 SilverLight objects.
5775 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5778 * moon-plugin.h: Remove unused members to provide a clean code.
5780 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5782 * Makefile.am: Fix link options.
5784 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5786 * moon-plugin-glue.c:
5788 * moon-plugin.h: Rename initialise to initialize.
5790 * Makefile.am: Add libmoon to link and install it on plugin dir.
5792 2007-06-02 Everaldo Canuto <ecanuto@novell.com>
5794 * moon-plugin-glue.c: Renamed to moon-plugin-glue.cpp.
5795 * moon-plugin.c: Renamed to moon-plugin.cpp.
5796 * Changelog: Create a separated change log for plugin.
5797 * Makefile.am: Renamed to moon-plugin.cpp.
5798 * moon-plugin.h: Renamed to moon-plugin.cpp.
5800 [Also add a sample to show libmoon features in browser]