1 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3 * cbinding.h: Regenerated.
5 * plugin-class.h.in: Add changes to the .in file too so that the
6 changes survive the generator.
8 2009-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
10 * plugin-class.cpp|h: Name change from MarkerReachedEventArgs ->
11 TimelineMarkerRoutedEventArgs (to better match managed code).
13 * cbinding.h: Regenerated.
15 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
17 * cbinding.h: Regenerated.
19 2009-11-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
21 * plugin.cpp: When requesting a codec download, indicate that the user
22 initiated the download.
24 2009-11-12 Jeffrey Stedfast <fejj@novell.com>
26 * plugin.cpp (UrlNotify): Don't spam the console with printf's if
27 the download was successful.
29 2009-11-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
33 * plugin-class.cpp: Update according to Type / Value API changes.
35 2009-11-06 Chris Toshok <toshok@ximian.com>
37 * plugin.cpp (PluginInstance::FlushSplash): WalkTreeForLoaded ->
38 WalkTreeForLoadedHandlers, and explicitly emit Loaded
41 2009-11-05 Alan McGovern <amcgovern@novell.com>
43 * cbinding.h: regen. r: toshok
45 2009-11-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
47 * plugin-class.cpp: Don't try to throw js exceptions when returning
50 * plugin-class.h: Remove THROW_JS_EXCEPTION2, not used anymore.
54 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
56 * plugin.cpp|h: Don't create the window if the splash failed to load -
57 this fixes a crash with MS DRT #352 where the splash error handler
58 shuts down the browser, causing us to crash later on when we try to
63 2009-11-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
65 * plugin.cpp|h: Remove all code which handles downloading of assemblies
66 which aren't in the xap, since that can't happen. Some of this code was
67 already commented out.
71 2009-11-02 Alan McGovern <amcgovern@novell.com>
73 * cbinding.h: regen. r: rolf
75 2009-10-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
77 * plugin.cpp: Add missing Deployment::SetCurrent.
81 2009-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
83 * plugin.cpp: Always show the codec download entry in the right click
84 menu - this allows easy redownload for whatever reason, instead of
85 requiring the user to manually locate and delete the codecs if they're
90 2009-10-20 Jeffrey Stedfast <fejj@novell.com>
92 * plugin.cpp (same_site_of_origin): If either of the urls is null,
93 return true. Fixes drt #329.
97 2009-10-20 Chris Toshok <toshok@ximian.com>
99 * plugin-class.cpp (MoonlightObject::ClearEventProxies): fix
100 ancient sles-10 build.
104 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
106 * plugin-glue.cpp: We might need the current plugin (NPP->pdata) during
107 plugin shutdown (to report errors to js in case of any errors).
109 * plugin-class.cpp|h|in.h:
110 Added MoonlightScriptControlObject::[Pre|Post]SwitchPlugin methods: stores
111 the data (event handlers) we need to copy over from one plugin instance to
112 the next when the source changes. Also make sure to delete all current
113 event handlers / proxies, since the root npobjects are not recreated.
114 EventListenerProxy: added GetCallback and IsFunc accessors.
115 MoonlightObject: Add a SetPlugin method that allows moving MoonlightObjects
116 from one PluginInstance to another.
119 Added a PluginInstance::Recreate method that recreates the PluginInstance
120 when the source changes. Remove unused parameter to PluginInstance ctor.
121 Keep track whether the window has been created or not (used to not recreate
122 the window, since it moves from one PluginInstance to another).
126 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
128 * plugin-class.h.in: Update with recent changes to plugin-class.h.
132 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
134 * plugin-class.[g.]cpp|h: Store a reference to the PluginInstance on
135 all MoonlightObjects instead of the NPP instance, since we'll soon
136 have more than one PluginInstance per NPP instance.
140 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
143 * plugin-class.h: Use the proper type for the content and settings
148 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
150 * windowless.cpp: Don't access the deployment field, use the
151 new SetCurrentDeployment method.
155 2009-10-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
157 * plugin.cpp|h: Move all managed code handling to Deployment.
161 2009-10-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
163 * plugin-downloader.cpp: We should never allow downloading with another
164 plugin than the correct one.
168 2009-10-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
170 * plugin.cpp|h: Remove two obsolete and unused methods.
174 2009-10-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
176 * cbinding.h: Regenerated.
180 2009-10-08 Chris Toshok <toshok@ximian.com>
182 * plugin.cpp (PluginInstance::StreamAsFile): Add another cross
183 domain check after loading the splash (and emitting loaded
185 (PluginInstance::LoadSplash): substantially bulk up this code to
186 check for all the XDomain splash possibilities defined in drt
189 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
190 comment out a line of spew that's really really spewing in xdomain
195 2009-10-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
197 * plugin.cpp|h: Make PluginInstance work with async shutdown by using
198 refcounting to only delete the PluginInstance when nobody needs it
199 anymore. Add two flags, HasShutdown and IsShuttingDown informing about
200 the current shutdown status. Destructor: rename to Shutdown and make
201 sure we zero/null out all the fields. Finalize: removed, not used.
202 Also ensure that the PluginInstance is not deleted until the managed
203 appdomain has been unloaded, since managed code has references to it.
204 Maintain a counter of the number of instances alive so that we can detect
205 when they are all deleted.
207 * plugin-class.cpp: Make html_release_object thread-safe by marshalling
208 any calls to the main thread. Also detect if the plugin has shut down
209 when trying to retain or release a npobject, in which case do nothing
210 at all, since firefox has already freed it.
212 * plugin-glue.cpp: Don't delete the plugin instance, call Shutdown
213 instead and unref it. Only shutdown moonlight if all the plugin instances
214 and all the deployments have been destroyed.
218 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
220 * plugin.cpp: Remove unused variable (fixes compiler warning).
224 2009-09-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
226 * cbinding.h: Regenerated.
230 2009-09-25 Sebastien Pouliot <sebastien@ximian.com>
232 * plugin-class.cpp|h|h.in: Change html_object_invoke[_self] to
233 return the boolean representing the invokation result.
237 2009-09-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
239 * plugin-debug.cpp: Remove unused variable (fixes compiler warning).
243 2009-09-23 Chris Toshok <toshok@ximian.com>
245 * plugin-class.cpp (EventObjectCreateWrapper): return
246 dependency_object_classes [MOUSE_EVENT_ARGS_CLASS]; for both
247 MOUSEBUTTONEVENTARGS and MOUSEWHEELEVENTARGS.
249 fixes DRT #50 regression.
253 2009-09-23 Chris Toshok <toshok@ximian.com>
259 2009-09-23 Chris Toshok <toshok@ximian.com>
261 * plugin-accessibility.h (class Accessibility):
262 @ManagedEvents=Manual
268 2009-09-18 Jackson Harper <jackson@ximian.com>
271 * plugin.cpp: Remove the import_default_xmlns stuff, this is
272 handled by flags now.
275 2009-09-16 Jeffrey Stedfast <fejj@novell.com>
277 * plugin.cpp (Properties): Display the RuntimeVersion attribute.
281 2009-09-14 Chris Toshok <toshok@ximian.com>
283 * plugin-class.cpp (MoonlightErrorEventArgs::GetProperty): use
284 ErrorEventArgs accessors.
286 * plugin.cpp (PluginInstance::network_error_tickcall): pass a
287 MoonError to the ErrorEventArgs ctor.
288 (PluginInstance::splashscreen_error_tickcall): same.
289 (PluginXamlLoader::TryLoad): same, use accessor.
290 (PluginInstance::ManagedExceptionToErrorEventArgs): same.
292 2009-09-14 Jackson Harper <jackson@ximian.com>
294 * plugin-debug.cpp: Use foreach instead of gtkiter
296 2009-09-11 Sebastien Pouliot <sebastien@ximian.com>
298 * plugin.cpp: Fix regression/crash on DRT455 since
299 splashscreensource is now freed. Add missing g_free on
304 2009-09-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
306 * cbinding.h: Regenerated.
310 2009-09-10 Jackson Harper <jackson@ximian.com>
312 * plugin.cpp: Add some namescope info to the debugging tree
316 2009-09-10 Jackson Harper <jackson@ximian.com>
318 * plugin.cpp|h: Update signature on SetProperty
320 2009-09-09 Chris Toshok <toshok@ximian.com>
322 * plugin.cpp (PluginInstance::PluginInstance): init
323 culture/uiculture to null.
324 (PluginInstance::~PluginInstance): free culture/uiculture, and
325 also plug a leak by freeing onSourceDownloadProgressChanged,
326 onSourceDownloadComplete, and splashscreensource.
327 (PluginInstance::Initialize): parse culture/uiculture <param>
329 (PluginInstance::InitializePluginAppDomain): track change to
330 InitializeDeployment argcount
331 (PluginInstance::ManagedInitializeDeployment): add
332 culture/uiculture args when calling the managed methods.
336 2009-09-03 Stephane Delcroix <sdelcroix@novell.com>
338 * plugin-class.cpp|.g.cpp.in|.h.in: no longer auto generate bindings
339 for MSI, copy paste the autogenerated from .g.cpp to .cpp. add a
340 SetProperty method and use to set the UriSource of the DZITS instead
341 of creating a new DZITS everytime.
343 * plugin-class.h|g.cpp: regen
345 2009-09-03 Alan McGovern <amcgovern@novell.com>
347 * plugin.cpp: It's possible that window will be null, so check
348 it exists before using it. r: toshok
350 2009-08-27 Chris Toshok <toshok@ximian.com>
352 * plugin.cpp (PluginInstance::NewStream): set the current deployment here.
356 2009-08-26 Jackson Harper <jackson@ximian.com>
358 * plugin.cpp: check for the zip file magic instead of using file
361 2009-08-26 Alan McGovern <amcgovern@novell.com>
363 * cbinding.h: regen r: shana
365 2009-08-26 Jackson Harper <jackson@ximian.com>
367 * plugin.cpp: Use the xaml function for parsing bools so things
368 like enablehtmlaccess=1 are handled properly.
372 2009-08-24 Sebastien Pouliot <sebastien@ximian.com>
374 * plugin-class.cpp: Free NPVariant array leaks
378 2009-08-16 Chris Toshok <toshok@ximian.com>
380 * plugin.cpp (plugin_menu_about): we aren't doing previews
381 anymore, we're doing betas.
385 2009-08-12 Alan McGovern <amcgovern@novell.com>
387 * cbinding.h: regen r: toshok
389 2009-07-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
391 * plugin.mdp: Connect the Build command in
392 MonoDevelop with 'make install'.
394 2009-07-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
396 * plugin.mdp: Use Makefile integration.
398 2009-07-23 Sebastien Pouliot <sebastien at ximian.com>
400 * plugin.cpp: Make sure 'source_original' is set even when scripting
401 is used to initialize source. Remove xdomain warnings from mstv.cz
403 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
406 * plugin-class.h.in: Added html_object_retain.
408 * plugin-class.h: Regenerated.
410 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
412 * plugin.mdp: Updated.
414 2009-07-22 Sebastien Pouliot <sebastien at ximian.com>
416 * plugin-class.cpp: Fix DEBUG_WARN_NOTIMPLEMENTED macro to output
417 all related information on the same line. Use NULL_TO_NPVARIANT
418 with MoonId_MethodName (since this is a string).
419 * windowless.cpp: Initialize GdkEventKey correctly (valgrind) and
420 provide a Window pointer so we avoid a SEGSIGV when TextBox calls
421 gtk_im_context_xim_filter_keypress (webide)
423 2009-07-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
425 * plugin-class.cpp: Incorporate significant advances in debugging
428 2009-07-20 Chris Toshok <toshok@ximian.com>
430 * plugin-class.cpp (MoonlightContentObject::Invoke): pass null for
432 (MoonlightContentObject::Invoke): same.
434 * plugin.h|cpp: add resource base parameters to all the XamlLoader
435 calls, and pass stream->url for that value when we have it.
439 2009-07-20 Chris Toshok <toshok@ximian.com>
441 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): add
442 the fallback findName lookup here, since we removed it from
443 DependencyObject::FindName.
445 2009-07-18 Jackson Harper <jackson@ximian.com>
448 * plugin.h|cpp: Add a flag to import the default xmlns. Basically
449 nothing sets this to true except for the JS CreateFromXaml
452 2009-07-17 Larry Ewing <lewing@novell.com>
454 * plugin.cpp: get agressive about flushing loaded events to the
455 plugin from splash elements. Fixes 285,445.
457 2009-07-16 Larry Ewing <lewing@novell.com>
459 * plugin.cpp, plugin.h: rework the splash logic to handle document
460 fragment references and get closer to emitting the correct events
461 in the correct order.
463 * plugin-class.cpp: use PluginInstance::IsLoaded instead of poking
466 2009-07-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
468 * cbinding.h: Regenerated.
470 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
472 * plugin.cpp: PluginInstance::UpdateSourceByReference: add a
473 Deployment::SetCurrent.
475 2009-07-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
477 * plugin-entry.cpp: Push/Pop the current deployment on every
478 transition to the browser. Makes MS DRT #2003 not spew a lot
479 of deployment mismatch warnings.
481 2009-07-15 Larry Ewing <lewing@novell.com>
483 * plugin.cpp: reconnect onload in LoadXAML and LoadXAP so that
484 source changes reset the oneshot call. Fixes DRT#21.
486 2009-07-13 Sebastien Pouliot <sebastien at ximian.com>
488 * plugin.cpp: Check for NULL *and* Empty inside UpdateSource.
489 Gives a bit of progress for DRT#354
491 2009-07-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
493 * cbinding.h: Regenerated.
495 2009-07-13 Alan McGovern <amcgovern@novell.com>
497 * plugin-class.h.in: Var should be named
498 'OnSourceDownloadComplete' not 'OnSourceDownloadCompleted'
500 2009-07-13 Alan McGovern <amcgovern@novell.com>
502 * cbinding.h: Commit the initial implementation of the
503 TabNavigationWalker. Supports the three tabbing modes and
504 also forward/backward tabbing. Passes drt 323 except for a
505 default focusing issue.
507 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
509 * plugin.cpp: Only call EmitSourceDownloadComplete is we needed
510 to download the splashscreen (versus embedded using #)
512 2009-07-10 Sebastien Pouliot <sebastien at ximian.com>
514 * plugin.cpp|h, plugin-class.cpp|h: Rename
515 SourceDownloadCompletedEvent to SourceDownloadCompleteEvent
517 2009-07-09 Sebastien Pouliot <sebastien at ximian.com>
519 * plugin.cpp: Check for redirection each time a new stream
520 is created (i.e. before downloading) using the current URI (not
521 the original one) so we can detect redirection correctly.
523 2009-07-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
525 * plugin-class.cpp: EventObjectCreateWrapper: return null as the
526 wrapper for a null object.
528 2009-07-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
530 * plugin-downloader.h: Add response getter.
532 * plugin-downloader.cpp: Regenerated.
534 * cbinding.h: Regenerated.
536 2009-07-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
538 * plugin-downloader.cpp: When calling Send, reset the finished
539 field, so that we abort it properly upon destruction if the
540 PluginDownloader has been reused.
542 2009-07-01 Chris Toshok <toshok@ximian.com>
544 * plugin-proxy.cpp (load): check the return value of
545 dlopen(libmono.so) before we make use of mono_config_parse_memory.
547 * plugin-entry.cpp: remove the moz-sdk includes, since they get
548 pulled in from moonlight.h
550 * plugin-class.h|cpp (MoonlightContentObject::GetProperty): add
551 Accessibility support.
552 (MoonlightContentObject::SetProperty): same.
553 (MoonlightContentObject::~MoonlightContentObject): unref the
554 accessibility object.
556 * moonlight.h: add the moz-sdk/ prefix for the np* headers here.
558 * Makefile.am (libmoonplugin_la_SOURCES): add
559 plugin-accessibility.
560 (INCLUDES): remove the moz-sdk include, and add it the #includes
561 so things work when files are included from the src/ directory.
563 * plugin-accessibility.h|cpp: new DependencyObject subclass to
564 represent the plugin's content.accessibility object.
566 * cbinding.h, plugin-class.h: regen.
568 2009-06-30 Jackson Harper <jackson@ximian.com>
570 * plugin-class.cpp: Update function signature, add the validate
574 2009-06-30 Alan McGovern <amcgovern@novell.com>
576 * plugin-class.cpp: Use SetValueWithError instead of SetValue
577 and propagate the exception back to javascript. Fixes drt
580 2009-06-29 Sebastien Pouliot <sebastien@ximian.com>
582 * plugin.cpp: Initialize enable_html_access to true since the value
583 can be queried before anything is loaded (e.g. scripting). Remove
584 failure message from DRT #21 bitmap.
586 2009-06-26 Chris Toshok <toshok@ximian.com>
588 * plugin-class.h.in|cpp: add support for GridLengths.
590 * plugin-class.h: regen.
592 2009-06-26 Larry Ewing <lewing@novell.com>
594 * plugin-class.h.in: add MoonlightCornerRadius and MoonIds.
596 * plugin-class.cpp: implement cornerradius foo.
598 2009-06-25 Chris Toshok <toshok@ximian.com>
600 * plugin-class.cpp (thickness_mapping): fix the mapping of "top"
601 to MoonId_Top, not MoonId_Right. Fixes drt test 421.
603 2009-06-25 Chris Toshok <toshok@ximian.com>
605 * plugin.cpp (PluginXamlLoader::SetProperty): track change to
606 xaml_is_valid_event_name.
608 2009-06-25 Chris Toshok <toshok@ximian.com>
610 * plugin-class.cpp (_set_dependency_property_value): add a
611 MoonError parameter so we can communicate it back to our callers.
612 (MoonlightTextBoxObject::Invoke): use textbox->SelectWithError and
613 throw the exception if it failed.
614 (MoonlightPasswordBoxObject::Invoke): same.
616 2009-06-25 Chris Toshok <toshok@ximian.com>
618 * plugin-class.cpp (MoonlightCollectionObject::Invoke): add
619 "remove(string)" support for resource dictionaries.
620 2009-06-25 Chris Toshok <toshok@ximian.com>
622 * plugin-class.cpp (value_to_variant): add support for
623 FontWeight/Style/Stretch here. Fixes DRT test 94.
625 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
627 * cbinding.h: Regenerated.
629 2009-06-25 Sebastien Pouliot <sebastien@ximian.com>
631 * plugin-class.cpp: Return "" not NULL for empty files (DRT #180)
633 2009-06-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
635 * plugin-class.cpp: proxy_listener_to_javascript: we need to restore
636 the current deployment after returning from javascript, if the
637 javascript did anything which caused firefox to process events,
638 we may have entered any other deployment while processing those
641 2009-06-24 Chris Toshok <toshok@ximian.com>
645 2009-06-22 Chris Toshok <toshok@ximian.com>
647 * plugin-class.h.in|cpp: MediaElements and Images need to subclass
648 from UIElement here instead of DependencyObject, or else we can't
649 call UIElement methods on them. gets fixture #282 further than
650 the stupid .js error.
652 * plugin-class.h: regen
654 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
656 * plugin-class.cpp: Add support for MultiScaleImage methods.
658 * plugin-class.g.cpp.in: Added required header.
660 * plugin-class.g.cpp:
662 * cbinding.h: Regenerated.
664 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
666 * plugin.mdp: Updated with new files.
668 2009-06-18 Jeffrey Stedfast <fejj@novell.com>
670 * plugin-class.cpp (value_to_variant): Handle Type::CHAR by
671 converting to an NPVariant string.
673 2009-06-18 Sebastien Pouliot <sebastien@ximian.com>
675 * cbinding.cpp|h: regen
676 * plugin.cpp|h: Keep the original location and source (before any
677 redirection can happen) and use them in the check for cross-domain
678 applications. Fixing DRT 955-958
680 2009-06-17 Chris Toshok <toshok@ximian.com>
682 * plugin-class.h.in, plugin-class.cpp: add textbox and passwordbox
683 types (select and selectAll methods.)
685 * plugin-class.g.*, cbinding.h: regen.
687 2009-06-17 Alan McGovern <amcgovern@novell.com>
689 * plugin-class.g.cpp.in: We need to include textbox.h
691 2009-06-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
693 * plugin.cpp: SetXapLocation must be set before
694 ManagedInitializeDeployment is called, since
695 ManagedInitializeDeployment ends up executing managed code, which
696 may need SetXapLocation to be set (for downloading files).
697 MS DRT #483 is an example.
699 2009-06-16 Sebastien Pouliot <sebastien@ximian.com>
701 * plugin.cpp: Set default cross_domain_app to false since using
702 embedded XAML is valid (and not cross domain) and won't trigger
703 a load (to update the value). Should fix XAML #401 test
705 2009-06-15 Sebastien Pouliot <sebastien@ximian.com>
707 * plugin.cpp|h: Move cross-domain application check to it's own
708 method. Call it once we download the source (it could be later
709 than anticipated). This fix sites using custom scripts like
710 ASP.NET <asp:Silverlight>
711 * plugin-class.cpp: Don't emit javascript events for cross
714 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
716 * plugin.cpp: same_site_of_origin: add nre protection. Makes
717 moonlight test #408 not crash.
719 2009-06-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
721 * plugin-class.cpp: Update after MediaElementState -> MediaState
724 2009-06-13 Sebastien Pouliot <sebastien@ximian.com>
726 * plugin.cpp|h: Move cross-domain application check earlier to
727 not register the events (e.g. onLoad, onError...) for cross-domain
728 applications. Complete fix for DRT 361, 362, 364, 365 and 370
730 2009-06-12 Sebastien Pouliot <sebastien@ximian.com>
732 * plugin.cpp|h: Fix 'enableHtmlAccess' to have a different
733 default value when used for the same 'site of origin' (true)
734 wrt to be used for 'cross-domain' applications (false).
735 * plugin-class.cpp: Add restrictions on cross-domain applications
736 based on the manifest ExternalCallersFromCrossDomain value.
738 2009-06-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
740 * plugin.cpp: Disable the spinner for now, it's breaking a lot of
743 2009-06-10 Larry Ewing <lewing@novell.com>
745 * plugin.cpp (CreateWindow): add a simple spinner if nothing is
748 * plugin-spinner.h: new simple spinner.
750 2009-06-08 Chris Toshok <toshok@ximian.com>
752 * plugin.cpp (class PluginClosure): new class to wrap
754 (PluginInstance::network_error_tickcall): use PluginClosure.
755 (PluginInstance::splashscreen_error_tickcall): use PluginClosure,
756 also don't UpdateSource if the surface is zombified (since the
757 plugin is likely already gone.)
758 (PluginInstance::UrlNotify): use PluginClosure's and add the tick
759 calls directly via the timemanager so we can specify both method
762 * plugin.h (class PluginInstance): make network_error_tickcall and
763 splashscreen_error_tickcall static methods on PluginInstance.
765 2009-06-08 Jackson Harper <jackson@ximian.com>
767 * plugin.cpp|h: Update signature for SetProperty
769 2009-06-05 Chris Toshok <toshok@ximian.com>
771 * plugin.cpp (PluginInstance::UrlNotify): only emit the 2104 error
772 if the network failure was on the XAP itself. move the
773 Deployment::SetCurrent call a little earlier, and make the splash
774 screen download error async as well.
776 2009-06-04 Chris Toshok <toshok@ximian.com>
778 * plugin.cpp (PluginInstance::MonoGetPropertyFromName): new
779 method, look up the property on a type and print a nice warning if
781 (surface_network_error_tickcall): we can't emit the network error
782 from inside UrlNotify, since the handler can remove the plugin at
783 that point, and firefox takes a shit all over itself in that case.
784 (PluginInstance::UrlNotify): if there was a network error
785 downloading the xap, add the tick call to emit the proper error.
786 (PluginInstance::InitializePluginAppDomain): look up the
787 MoonException type and some properties to use when accessing it.
788 (PluginInstance::ManagedExceptionToErrorEventArgs): convert from a
789 managed exception to an ErrorEventArgs which we'll then emit
790 through the surface's ErrorEvent.
791 (PluginInstance::ManagedCreateXamlLoader): check for an exception,
792 and if there was one, emit the error on the surface.
793 (PluginInstance::ManagedInitializeDeployment): same.
794 (PluginInstance::ManagedDestroyApplication): same.
796 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
797 set the current deployment earlier. definitely needs to be set
798 before we call the callback :)
800 2009-06-02 Geoff Norton <gnorton@novell.com>
802 * plugin.cpp: Ensure we dont start downloading the source until we have
803 the splash. If the splash 404's we need to emit a 2108.
805 2009-06-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
807 * cbinding.h: Regenerated
809 2009-06-01 Chris Toshok <toshok@ximian.com>
811 * plugin-class.cpp (MoonlightContentObject::Invoke): for
812 createFromXaml make sure we call LoadVM on the XamlLoader so we
813 can access managed types (like StackPanel).
815 2009-06-01 Chris Toshok <toshok@ximian.com>
817 * plugin-class.cpp|h: add MoonlightThickness* and add
818 Type::THICKNESS to value_to_variant. this fixes a few instances
819 in the tests where they're accessing margins from javascript.
821 2009-05-28 Jeffrey Stedfast <fejj@novell.com>
823 * plugin-utils.cpp: New source file which has utility functions
824 such as check_arg_list().
826 * plugin-class.h.in: Removed static impl of check_arg_list() -
827 this was causing compile warnings about unused functions and also
828 bloating up the binary ;-)
830 2009-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
832 * plugin.cpp: Sprinkle SetCurrentDeployment.
834 2009-05-27 Geoff Norton <gnorton@novell.com>
836 * plugin.cpp|h: Ensure we only emit the source progress/completed events
837 on the source, and not on the source splash ourself. Also, we need to make
838 sure we have a toplevel before emitting otherwise sender is null going to the
841 2009-05-27 Geoff Norton <gnorton@novell.com>
844 * plugin-class.cpp|h|h.in: Support the splash screen progress/completed events
847 2009-05-27 Geoff Norton <gnorton@novell.com>
849 * plugin.cpp: Avoid a double-delete of the splash xaml_loader
851 2009-05-27 Geoff Norton <gnorton@novell.com>
853 * plugin.cpp|h: Support splash screen.
855 2009-05-27 Geoff Norton <gnorton@novell.com>
857 * plugin.cpp|h: Ensure we spin up a default application for the xaml
858 case as well since <Canvas><StackPanel /></Canvas> works.
860 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
862 * plugin-downloader.h:
863 * plugin-downloader.cpp: Add support for retrieving response headers
866 * cbinding.h: Regenerated.
868 * browser-bridge.h: Updated according to downloader API changes.
870 * plugin.mdp: Updated.
872 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
874 * plugin-downloader.cpp: Don't hard code the verb.
876 2009-05-25 Chris Toshok <toshok@ximian.com>
878 * plugin-class.cpp (value_to_variant): robustify this and support
879 NULL Value*'s. Fixes crash in DRT #485.
881 2009-05-23 Chris Toshok <toshok@ximian.com>
883 * plugin-class.cpp, plugin-class.h: add a Control plugin class,
884 which exposes "focus". Should get DRT #250 a little further (and
885 keep it from timing out.)
887 2009-05-21 Rusty Howell <rhowell@novell.com>
889 * Makefile.am: Changed install dir to DIST_SUBDIRS for make dist
891 2009-05-21 Andreia Gaita <avidigal@novell.com>
893 * plugin-class.cpp: disable throwing js exceptions on html_object_invoke
894 and html_object_get_property, the exceptions get stuck on firefox and
895 any subsequent eval call will fail
897 2009-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
899 * npstream-request.cpp: Fix typo.
901 2009-05-20 Rusty Howell <rhowell@novell.com>
903 * Makefile.am: Added install dir to SUBDIRS for 'make dist'
905 2009-05-20 Larry Ewing <lewing@novell.com>
907 * plugin.cpp (TryLoad): update the error string for 2021 to match
910 2009-05-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
912 * cbinding.cpp|h: Regenerated.
914 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
916 * cbinding.cpp|h: Regenerated.
918 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
920 * cbinding.cpp|h: Regenerated.
922 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
924 * cbinding.cpp|h: Regenerated.
926 2009-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
928 * plugin.h: Add a GetBrowserHost which returns a void* to avoid
929 putting NPObject/mozilla headers in the c bindings.
931 * cbinding.cpp|cbinding.h: Regenerated.
933 2009-05-17 Andreia Gaita <avidigal@novell.com>
935 * plugin-class.cpp: If a managed method called from js returns
936 void, create a valid NPVariant_Void return object
938 2009-05-15 Chris Toshok <toshok@ximian.com>
940 * plugin-class.cpp (MoonlightCollectionObject::Invoke): for
941 getItem on a resource dictionary, a string parameter (the key)
944 2009-05-13 Jackson Harper <jackson@ximian.com>
946 * plugin.cpp|h: Update params for SetProperty.
948 2009-05-12 Larry Ewing <lewing@novell.com>
950 * plugin-debug.cpp (reflect_value): add output for point.
952 2009-05-11 Larry Ewing <lewing@novell.com>
954 * plugin-class.cpp: remove UpdateLayout now that it is
957 2009-05-09 Andreia Gaita <avidigal@novell.com>
959 * plugin-class.h.in, plugin-class.g.cpp.in: Added, used to
960 generate Moonlight* classes and MoonId types, for automatic
961 js binding with the GenerateJSBinding annotation.
962 plugin-class.cpp has the bulk of the code, plugin-class.g.cpp
963 has the autogenerated implementations.
965 * plugin-class.[h|g.cpp]: regen.
967 * plugin-class.cpp: moved some definitions to the header file,
968 so .g.cpp can use them too. Added uielement class support, which
969 is autogenerated on plugin-class.g.cpp. Removed CaptureMouse and
970 ReleaseMouseCapture, it's handled on uielement on .g.cpp now.
972 * Makefile.am: Added plugin-class.g.cpp
974 2009-05-03 Chris Toshok <toshok@ximian.com>
976 * plugin-class.h|.cpp (MoonlightDependencyObjectObject::Invoke):
977 add UpdateLayout() as a JS callable function. fixable a JS error
980 2009-05-02 Chris Toshok <toshok@ximian.com>
982 * plugin-proxy.cpp (load): add RTLD_GLOBAL to real_plugin,
983 otherwise we can't call mono_config_parse_memory from the plugin
984 loader (since it doesn't link to libmono directly).
986 2009-05-02 Rusty Howell <rhowell@novell.com>
988 * plugin-proxy.cpp: Detect which libmoonloader we are (xpi or sys)
989 and dlopen accordingly
990 * moonlight.h: Remove PLUGIN_INSTALL
991 * plugin-proxy-xpi.cpp: removed from svn
992 * Makefile.am: Added check in user-plugin target.
993 Changed source of libmoonloader back to plugin-proxy.cpp
995 2009-04-22 Chris Toshok <toshok@ximian.com>
997 * moonlight.h: moon the #include <glib.h> here from windowless so
998 we can guarantee glibconfig.h has been included before we check
1001 * windowless.h: drop the include glib.h from here.
1003 2009-04-22 Rusty Howell <rhowell@novell.com>
1005 * make builds separate binaries for xpi
1006 libmoonloaderxpi, libmoonpluginxpi
1008 2009-04-20 Chris Toshok <toshok@ximian.com>
1010 * plugin.cpp (plugin_menu_about): use a preview link for preview
1013 2009-04-18 Chris Toshok <toshok@ximian.com>
1015 * plugin-class.cpp (value_to_variant): add support for FontFamily.
1017 2009-04-18 Chris Toshok <toshok@ximian.com>
1019 * plugin-class.cpp (MoonlightStoryboardObject::Invoke): track
1022 2009-04-17 Chris Toshok <toshok@ximian.com>
1024 * plugin.h|.cpp: remove loaded_xap field, and use
1025 GetDeployment()->IsLoadedFromXap(). Also, switch from
1026 Surface::SetXapLocation to Deployment::SetXapLocation.
1028 2009-04-16 Jeffrey Stedfast <fejj@novell.com>
1030 * plugin-debug.cpp (reflect_value): Hush formatter warnings.
1032 2009-04-16 Geoff Norton <gnorton@novell.com>
1034 * plugin-debug.cpp: Avoid having a null deployment in remove_destroyed.
1036 2009-04-16 Geoff Norton <gnorton@novell.com>
1038 * plugin-debug.cpp: Avoid having a null deployment in selection_changed.
1040 2009-04-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1044 * plugin-class.cpp: Implement some missing js properties.
1045 Almost completely fixes MS DRT #21.
1047 2009-04-15 Stephane Delcroix <sdelcroix@novell.com>
1049 * plugin.cpp (PluginInstance::LoadXAP): set the surface xap_location
1051 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1055 * plugin-class.h: Added @GeneratePInvoke to all methods used
1056 in managed code. For C++ methods also generate the
1057 corresponding C method.
1060 * cbinding.cpp: Regenerated.
1062 2009-04-10 Jackson Harper <jackson@ximian.com>
1064 * plugin-class.cpp: Instead of unreffing just delete the value.
1066 2009-04-09 Jackson Harper <jackson@ximian.com>
1068 * plugin.cpp: Updated method names.
1069 * plugin-class.cpp: Update now that we are getting Value*s from
1072 2009-04-08 Geoff Norton <gnorton@novell.com>
1074 * plugin-debug.cpp: Ensure we set the Deployment here too to avoid
1075 crashes in the XAML window.
1077 2009-04-08 Jeffrey Stedfast <fejj@novell.com>
1079 * plugin*.cpp|h: Use glib integer types rather than stdint.h types
1080 especially see as how we aren't including stdint.h anywhere.
1082 * plugin-class.cpp: Updated for slight Downloader API changes.
1084 2009-04-07 Larry Ewing <lewing@novell.com>
1086 * plugin-debug.cpp (reflect_value): Fix the markup for GRIDLENGTH
1089 2009-04-06 Geoff Norton <gnorton@novell.com>
1091 * plugin-debug.cpp: Ensure we set our deployment before poking in
1094 2009-04-03 Sebastien Pouliot <sebastien@ximian.com>
1096 * plugin.cpp|h: Parse enablehtmlaccess and allowhtmlpopupwindow
1097 from the plugin properties. Add missing properties and C bindings.
1099 2009-04-01 Stephane Delcroix <sdelcroix@novell.com>
1101 * plugin-class.cpp: use Uri::ToString instead of originalstring.
1102 BitmapImage::GetUriSource never returns a NULL
1104 2009-04-01 Andreia Gaita <avidigal@novell.com>
1106 * plugin-class.[cpp|h]: move some declarations to the header
1107 so that the bridge code can use it too.
1109 2009-03-31 Jb Evain <jbevain@novell.com>
1111 * plugin-class.h: add key_code and char_code parameters
1112 to callback_dom_event.
1114 2009-03-30 Chris Toshok <toshok@ximian.com>
1116 * plugin.cpp: #include timemanager.h
1118 2009-03-29 Geoff Norton <gnorton@novell.com>
1120 * plugin-class.cpp: Ensure that the ImageSource we get is a BitmapImage
1121 before treating it as such.
1123 2009-03-29 Geoff Norton <gnorton@novell.com>
1125 * plugin-class.cpp: Image.Source is always a BitmapImage
1127 2009-03-28 Sebastien Pouliot <sebastien@ximian.com>
1129 * plugin.cpp|h: Export a new function (get_plugin_dir) that returns
1130 the location of the plugin.
1131 * plugin-glue.cpp: Initialize the runtime using the plugin location.
1133 2009-03-27 Andreia Gaita <avidigal@novell.com>
1135 * plugin.cpp: Don't release return from Eval if they're npobj,
1136 client code might reference it later
1138 2009-03-25 Chris Toshok <toshok@ximian.com>
1140 * plugin.cpp (PluginInstance::StreamAsFile): use uri accessors.
1142 * plugin-class.cpp (MoonlightImageBrushObject::GetProperty): same.
1143 (MoonlightImageObject::GetProperty): same.
1145 * plugin-debug.cpp (get_common_prefix_len): same.
1146 (save_callback): same.
1148 2009-03-25 Jeffrey Stedfast <fejj@novell.com>
1150 * plugin-class.cpp (MoonlightObjectType::LookupName): No longer
1151 takes an include_sl2 argument.
1153 * plugin.cpp (PluginInstance::StreamAsFile): We no longer have
1154 IsSilverlight2() so check the filename extension (fixed to not be
1155 a gross hack). Also got rid of #if PLUGIN_2_0 confusion, we are no
1156 longer supporting a 1.0-only build.
1157 (PluginInstance::CreateWindow): Surface.ctor() no longer takes a
1158 silverlight2 argument.
1160 * plugin-debug.cpp (reflect_value): Don't crash when the
1161 DependencyObject is null.
1163 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1165 * plugin-class.cpp: Move IsVersionSupported implementation to
1168 2009-03-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1173 * cbinding.cpp: Include generated files in the build.
1175 2009-03-23 Chris Toshok <toshok@ximian.com>
1177 * plugin-class.cpp (value_to_variant): getting a Uri in the plugin
1180 2009-03-21 Andreia Gaita <avidigal@novell.com>
1182 * plugin-class.[h|cpp]: Add html_object_invoke_self
1183 (same as _invoke but with no name arg), that uses
1184 NPN_InvokeDefault instead.
1186 2009-03-21 Chris Toshok <toshok@ximian.com>
1188 * plugin-class.cpp (MoonlightImageObject::GetProperty):
1189 source->GetUriSource() returns a Uri, not a string.
1190 (MoonlightImageBrushObject::GetProperty): same.
1192 2009-03-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1194 * plugin-downloader.h:
1195 * plugin-downloader.cpp: PluginDownloader: follow refcounting
1196 laws and ref/unref the response.This fixes a crash where
1197 firefox would unref FFxDownloaderResponse causing its
1198 destruction, and then PluginDownloader would attempt to use
1199 (abort) that response later on.
1201 2009-03-10 Chris Toshok <toshok@ximian.com>
1203 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): for
1204 DumpNameScope, s/LogicalParent/Parent.
1205 (MoonlightDependencyObjectObject::Invoke): for GetParent, make
1206 sure the dob is a frameworkelement subclass, and call
1207 GetLogicalParent on it.
1209 2009-03-10 Jackson Harper <jackson@ximian.com>
1211 * plugin-debug.cpp: COnsistentify method name.
1213 2009-03-03 Jackson Harper <jackson@ximian.com>
1215 * plugin.cpp|h: Update signature of SetProperty.
1217 2009-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
1219 * plugin.cpp: Add informational printf.
1221 2009-02-23 Chris Toshok <toshok@ximian.com>
1223 * plugin-class.cpp (MoonlightContentObject::Invoke): add better
1224 error messages on createFromXaml.
1226 2009-02-23 Andreia Gaita <avidigal@novell.com>
1228 * plugin-class.[cpp|h]: Add html_object_has_property so managed code
1229 can check for properties before trying to get them. Free scriptable
1232 2009-02-22 Larry Ewing <lewing@novell.com>
1235 * plugin.cpp, plugin.h: add extra padding to our NPBool values so
1236 that buggy browsers don't smash the stack.
1238 2009-02-19 Andreia Gaita <avidigal@novell.com>
1240 * plugin-class.[cpp|h]: On [Get|Set]Property for scriptable objects,
1241 use the property name instead of the handle to call back to the
1242 property. This way we can reuse the virtual functions on
1243 ScriptObject, and it's one less GCHandle walking around.
1244 Fix exception define to have a block.
1246 2009-02-19 Andreia Gaita <avidigal@novell.com>
1248 * plugin-class.cpp: Fix casing lookup
1250 2009-02-19 Andreia Gaita <avidigal@novell.com>
1252 * plugin.cpp: Implement returning values from Evaluate
1253 * plugin-class.[cpp|h]: Expose variant_to_value so Evaluate can
1254 use it to convert values from js
1256 2009-02-17 Jeffrey Stedfast <fejj@novell.com>
1258 * plugin-debug.cpp: Pass true as the only_changed argument to
1259 DO::GetProperties().
1261 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1263 * plugin-class.cpp: Remove case for MediaErrorEventArgs.
1265 2009-02-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1267 * plugin-class.cpp: EventListenerProxy: set our object type
1270 2009-02-16 Andreia Gaita <avidigal@novell.com>
1272 * plugin-class.cpp: Check return value on GetProperty and throw a js
1273 exception if it wasn't found. Don't lowercase names, scriptable objects
1276 2009-02-16 Geoff Norton <gnorton@novell.com>
1278 * plugin-class.cpp|h: Image(Brush).(Image)Source is the UriSource of the
1279 underlying ImageSource in the javascript API.
1281 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
1283 * plugin-debug.cpp (reflect_dependency_object_in_tree): Updated to
1284 use DO::GetProperties() instead so that we could get attached
1287 2009-02-14 Jeffrey Stedfast <fejj@novell.com>
1289 * plugin-debug.cpp (reflect_dependency_object_in_tree): Fixed up
1290 to use Type::GetProperties().
1292 2009-02-11 Andreia Gaita <avidigal@novell.com>
1294 * plugin-class.cpp: lowercase all method, property and event name
1295 references, they're all added in lowercase
1297 2009-02-11 Andreia Gaita <avidigal@novell.com>
1299 * plugin-class.cpp (html_object_invoke): Check method invoke return
1300 value and throw an exception if it fails. Add an alternate "static"
1301 version of the js exception throwing macro.
1303 2009-02-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1305 * plugin-class.cpp: Change our static DependencyProperty
1306 backing fields to store an integer id instead of an
1307 instance to a DependencyProperty. This way we can have true
1308 per-deployment dependency properties.
1310 2009-02-10 Jackson Harper <jackson@ximian.com>
1312 * plugin.cpp|h: Added a param to the SetProperty callback, plugin
1313 doesn't need to use it for anything.
1315 2009-02-05 Geoff Norton <gnorton@novell.com>
1317 * plugin.cpp: We cannot safely null the deployment here as NPN_GetURLNotify
1318 can sync invoke NPN_URLNotify in the same tick, and we might need the deployment
1321 2009-02-05 Jeffrey Stedfast <fejj@novell.com>
1323 * plugin-class.cpp (MoonlightDependencyObjectObject::GetProperty):
1324 Updated for ReadLocalValue method rename.
1326 * plugin-downloader.cpp (plugin_downloader_create_webrequest):
1327 Don't crash if we don't have a browser bridge.
1329 2009-02-04 Jackson Harper <jackson@ximian.com>
1331 * plugin.cpp|h: Updated xaml signatures.
1333 2009-02-04 Andreia Gaita <avidigal@novell.com>
1335 * plugin-class.[cpp|h]: Change Invoke call to take a name parameter,
1336 so that methods can be called by name as well.
1338 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1340 * plugin.cpp: PluginInstance::UrlNotify: We need to set the
1341 current deployment here.
1343 * plugin-glue.cpp: NPP_Destroy: We need to set the current
1346 2009-02-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1348 * plugin-class.cpp: Use Type::GetName () instead of accessing
1351 2009-02-03 Fernando Herrera <fherrera@novell.com>
1353 * plugin.cpp: moonlight_flags is 64bits now.
1355 2009-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
1357 * plugin-class.cpp: proxy_listener_to_javascript: we need to set the
1358 current deployment after emitting an event to javascript.
1360 2009-01-29 Geoff Norton <gnorton@novell.com>
1363 * plugin-class.cpp: Ensure that we set the correct context when dtoring our
1364 plugin and its js-object instances.
1366 2009-01-29 Geoff Norton <gnorton@novell.com>
1368 * plugin.cpp: When there are 2 plugins on a page, StreamAsFile can be called
1369 after the deployment has been changed away from this instance. Ensure we
1370 set our deployment properly in this case.
1372 2009-01-29 Geoff Norton <gnorton@novell.com>
1374 * windowless.cpp: Store our creation deployment so we can emit events
1375 in the right deployment.
1377 2009-01-29 Geoff Norton <gnorton@novell.com>
1379 * plugin.cpp: Register the surface with the Deployment. Start cleaning
1380 up all the places we pass this around too. (More to come)
1382 2009-01-29 Geoff Norton <gnorton@novell.com>
1384 * plugin.cpp: Ensure that we create our Surface and SystemTimeSource
1385 in the correct deployment.
1387 2009-01-29 Larry Ewing <lewing@novell.com>
1389 * plugin-debug.cpp (reflect_dependency_object_in_tree): restrict
1390 the VisualChild expansion away from Panel and border to keep from
1391 slowing down the tree that Badly.
1393 2009-01-29 Sebastien Pouliot <sebastien@ximian.com>
1395 * plugin-class.cpp: Only call NPN_ReleaseObject on callback
1396 if the object is *not* a string.
1399 2009-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
1401 * plugin.cpp: ~PluginInstance: Call Dispose on the deployment and the
1402 surface. PluginXamlLoader::TryLoad: ref any error arguments we emit
1405 2009-01-28 Larry Ewing <lewing@novell.com>
1407 * plugin-debug.cpp: show VisualChild on all FEs so that we can
1408 navigate into ContentPresenter.
1410 2009-01-28 Larry Ewing <lewing@novell.com>
1412 * plugin-debug.cpp (reflect_value): add more value types.
1414 2009-01-28 Sebastien Pouliot <sebastien@ximian.com>
1416 * plugin-class.cpp: MediaElementState is used as a string inside
1417 Javascript applications but it's an enum (in the managed world).
1419 2009-01-28 Chris Toshok <toshok@ximian.com>
1421 * plugin-debug.cpp (selection_changed): fix crash.
1422 (reflect_dependency_object_in_tree): add Control handling - put a
1423 "Visual Child" under it that gives the subtree.
1425 * plugin-class.cpp (value_to_variant): not sure what to do here
1426 for UINT32's, since NPVariants only have INT32...
1428 2009-01-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1430 * plugin.cpp: Call Deployment::Initialize in runtime_init.
1432 2009-01-27 Geoff Norton <gnorton@novell.com>
1434 * plugin.cpp: Use the static overload here.
1436 2009-01-26 Geoff Norton <gnorton@novell.com>
1438 * plugin.cpp: Ensure we're in the right deployment/domain before we
1439 start poking around in managed land.
1441 2009-01-26 Geoff Norton <gnorton@novell.com>
1443 * plugin.cpp|h: Clean this stuff up now that our book-keeper is
1444 Deployment* not internally on MonoDomain*.
1445 * plugin-class.cpp: Ensure that we set the tls slot in Deployment
1446 to the Deployment* this plugin owns before transitioning into libmoon
1448 2009-01-26 Jackson Harper <jackson@ximian.com>
1450 * plugin.cpp|h: SourceLocation for Sl2 xaps is the .xap url.
1452 2009-01-26 Geoff Norton <gnorton@novell.com>
1454 * plugin.cpp|h: We now go thru Deployment to warm up the application.
1456 2009-01-25 Geoff Norton <gnorton@novell.com>
1458 * plugin.cpp: We initialize a Deployment for every plugin regardless
1459 of wether its 1.0 or 2.0 context now.
1461 2009-01-25 Chris Toshok <toshok@ximian.com>
1463 * plugin.cpp (PluginInstance::CreatePluginAppDomain): create/set
1464 the deployment for this plugin before we return, so it's set
1465 before Application.CreateFromXap is called.
1467 2009-01-23 Geoff Norton <gnorton@novell.com>
1469 * plugin.cpp: Force keep-delegates on in SVN (only if a custom
1470 MONO_DEBUG doesn't already exist in the environment)
1472 2009-01-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1474 * plugin-debug.cpp: Integrate munxap into our debugging experience.
1476 2009-01-21 Jb Evain <jbevain@novell.com>
1478 * plugin.cpp|h: remove PluginInstance::GetBrowserInformation
1479 and ::EvaluateToVariant as well as
1480 plugin_instance_get_browser_information which is now implemented
1481 in the managed code.
1483 2009-01-21 Andreia Gaita <avidigal@novell.com>
1485 * plugin-class.[h|cpp]: Add support for registering objects as a
1486 tree. fix casing on lookups.
1488 2009-01-21 Sebastien Pouliot <sebastien@ximian.com>
1490 * plugin-class.cpp: Process the difference between SL1/2 default
1491 values on a case-by-case basis. Right now this (re-fix) UIElement::
1492 RenderTransformProperty (wrt null) and FrameworkElement::[Height|
1493 Width]Property (wrt NaN).
1495 2009-01-20 Geoff Norton <gnorton@novell.com>
1497 * plugin-class.cpp: Ensure that we convert doubles in the ASCII
1498 locale, as we attempt to parse in this locale.
1502 2009-01-20 Sebastien Pouliot <sebastien@ximian.com>
1504 * plugin-class.cpp: Call GetLocalValue on DO so we don't provide the
1505 default values used in SL2 to SL1 applications. This fix Fox
1506 http://www.silverlight.net/fox/ while allowing to use the (non-null)
1507 default value for UIElement::RenderTransformProperty
1509 2009-01-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1511 * plugin.mdp: Updated.
1513 2009-01-18 Geoff Norton <gnorton@novell.com>
1515 * plugin-downloader.cpp: Avoid crashing when the bridge isn't available
1517 2009-01-18 Larry Ewing <lewing@novell.com>
1519 * plugin-debug.cpp (reflect_foreach_current_value): don't crash if
1520 we can't lookup the owning type.
1522 2009-01-16 Jb Evain <jbevain@novell.com>
1524 * plugin-class.cpp: move STRDUP_FROM_VARIANT and
1525 STRLEN_FROM_VARIANT to plugin.h
1526 * plugin.h: also define PluginInstance::EvaluateToVariant
1527 * plugin.cpp: implement PluginInstance::GetBrowserInformation
1528 and PluginInstance::EvaluateToVariant.
1530 2009-01-16 Jb Evain <jbevain@novell.com>
1532 * plugin.cpp|h: remove PluginInstance::LoadUrl.
1534 2009-01-15 Jackson Harper <jackson@ximian.com>
1536 * plugin.cpp|h: Updated signature for the xaml callbacks.
1538 2009-01-13 Geoff Norton <gnorton@novell.com>
1540 * plugin.cpp: Fix our MonoDomain cleanup (hopefully) once and for all.
1542 2009-01-13 Geoff Norton <gnorton@novell.com>
1544 * plugin.cpp: Don't free domain's until we fix the problems on the
1545 mono side associated with that.
1547 2009-01-13 Geoff Norton <gnorton@novell.com>
1549 * plugin.cpp: Ensure we finalize the domain before freeing it.
1551 2009-01-13 Jackson Harper <jackson@ximian.com>
1553 * plugin.cpp|h: Updated xaml callback sig.
1555 2009-01-13 Jb Evain <jbevain@novell.com>
1557 * plugin.cpp: specify System.Windows's fullname when loading it,
1558 to avoid loading a different version, such as the desktop one.
1560 2009-01-13 Geoff Norton <gnorton@novell.com>
1562 * plugin.cpp: Update to build appdomains properly isolated for each
1563 PluginInstance. Also change the location resolution of System.Windows
1566 2009-01-13 Geoff Noton <gnorton@novell.com>
1568 * plugin.cpp: Find System.Windows.dll a slightly different way
1569 so that we can search in MONO_PATH for it and not just the installed
1570 prefix. Fixes test runs on the buildbots.
1572 2009-01-12 Jb Evain <jbevain@novell.com>
1574 * plugin.h, plugin.cpp: remove the need for a moonlight.exe
1575 launcher by calling directly methods in System.Windows. We're
1576 getting the System.Windows relative to the moonlight mscorlib.dll.
1577 * Makefile.am: remove references to moonlight.cs and moonlight.exe.
1578 * moonlight.cs: delete.
1580 2009-01-12 Geoff Norton <gnorton@novell.com>
1582 * plugin.cpp: Update to reflect changes in the mono embedding API.
1584 2009-01-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1586 * plugin.cpp: Unconfuse a bit: initParams is a char*, so use a boolean
1587 value to initialize it.
1589 2009-01-10 Jeffrey Stedfast <fejj@novell.com>
1591 * plugin.cpp (moonlight_authors): Updated.
1593 2009-01-08 Jeffrey Stedfast <fejj@novell.com>
1595 * plugin-class.cpp (MoonlightKeyEventArgsObject::GetProperty):
1596 Updated for method name changes.
1598 2008-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1600 * plugin.mdp: Updated.
1602 2008-12-18 Chris Toshok <toshok@ximian.com>
1604 * plugin.h, plugin.cpp: rework the app domain stuff slightly. we
1605 now only call mono_jit_init_version once (and don't attempt to
1606 unload that room AppDomain), and then call mono_domain_create from
1607 each plugin instance (and we *do* free that AppDomain).
1609 2008-12-17 Chris Toshok <toshok@ximian.com>
1611 * plugin.cpp (PluginInstance::MonoInit): turns out this wasn't the
1612 domain name, but the version. it needs to be "moonlight".
1614 * moonlight.cs: remove reference to Helper, as this was only used
1615 to print out the Mono.Moonlight.dll fully qualified name.
1617 * Makefile.am: remove references to Mono.Moonlight.dll.
1619 2008-12-17 Chris Toshok <toshok@ximian.com>
1621 * plugin.cpp (PluginInstance::MonoInit): supply a function pointer
1622 that actually exists to dladdr when PLUGIN_INSTALL is defined.
1623 Also, use a similar app domain name ("moonlight-%p" where %p is
1624 the PluginInstance*).
1626 2008-12-17 Geoff Norton <gnorton@novell.com>
1628 * plugin.cpp: gtk_plug_new takes a GdkNativeWindow which has
1629 differing precision on amd64 and i586.
1631 2008-12-16 Chris Toshok <toshok@ximian.com>
1633 * plugin.h, plugin.cpp: move all the stuff from mono.cpp (and
1634 moon-mono.h) here. Remove all global variables and make them
1635 instance variables on PluginInstance (of particular importance is
1636 the AppDomain). This means every PluginInstance gets their own
1637 app domain, their own boot assembly, etc, and we can drop all the
1638 AppDomain stuff from moonlight.cs.
1640 * mono.cpp, moon-mono.h: nuke.
1642 * plugin-glue.cpp: remove include of moon-mono.h
1644 * moonlight.cs: remove all the AppDomain specific stuff here - the
1645 unload handler is gone (replaced by a mono_domain_free call in
1646 plugin.cpp), the Helper calls to create instances and unwrap them
1647 has been replaced with type lookups + Activator.CreateInstance.
1649 2008-12-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1651 * plugin.cpp: SetSource: in case we already have a surface, detach
1652 downloaders from it right away, this should fix the random failures
1655 2008-12-03 Larry Ewing <lewing@novell.com>
1657 * plugin.cpp: clean up source setting so that the property is
1658 always set and we don't accidentally schedule more than one idle
1661 2008-12-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1663 * browser-bridge.h, plugin-class.cpp, plugin-class.h: Rework event
1664 attaching/detaching a bit: html_object_attach_event now takes a
1665 context argument, which is passed to the event callback.
1666 ff2/3-dom.cpp: After removing the event listener we delete the
1669 2008-12-02 Chris Toshok <toshok@ximian.com>
1671 * plugin-class.cpp (MoonlightScriptControlObject::Invoke): fix
1672 isVersionSupported - i don't like knocking off 2.0 except when
1673 PLUGIN_SL_2_0 is enabled, but it seems like if people are checking
1674 2.0, they'll assume managed code.
1676 2008-11-26 Jackson Harper <jackson@ximian.com>
1678 * plugin.cpp|h: The parser no longer requires assemblies to be
1679 downloaded, so the mapping stuff is commented out.
1680 - The parser now treats events as properties, so we use
1681 SetProperty instead of HookupEvent.
1683 2008-11-22 Geoff Norton <gnorton@novell.com>
1685 * windowless.cpp: Revert
1686 * windowless.h: Include glib.h and moonlight.h so that GDK_NATIVE_WINDOW_POINTER
1687 is defined and GdkNativeWindow gets its correct width of 8 bytes to prevent
1690 2008-11-21 Alp Toker <alp@nuanti.com>
1692 * plugin-class.cpp: Fix 'DownloadProgressCanged' typo in DOM event
1693 names leading to dropped events.
1695 2008-11-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1697 * plugin-class.cpp: Implement variant<->value conversion for NPObjects.
1698 * plugin.h, plugin.cpp: Added plugin_instance_get_id and
1699 plugin_instance_get_host.
1701 2008-11-10 Jeffrey Stedfast <fejj@novell.com>
1705 * plugin-debug.cpp (plugin_debug): Connect to surface
1706 DestroyedEvent to close the debug window so that it won't crash
1707 when trying to use it once the site has been navigated away from.
1709 2008-11-06 Stephane Delcroix <sdelcroix@novell.com>
1712 * plugin-downloader.h|cpp:
1713 * firefox/browser-http.inc: pass the uri with the finished handler
1714 for further validation. r:gnorton
1716 2008-10-31 Chris Toshok <toshok@ximian.com>
1718 * plugin.cpp (PluginInstance::CreateWindow): call SetTransparent
1719 on moon_window instead of the surface.
1721 * windowless.cpp (MoonWindowless::HandleEvent): pass
1722 GetTransparent() to Surface::PaintToDrawable here.
1724 2008-10-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1726 * plugin.cpp: Implement EnableRedrawRegions by linking them to
1727 RUNTIME_INIT_SHOW_EXPOSE.
1729 2008-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
1731 * plugin.cpp: Add a row to the Properties dialog informing about the
1734 2008-10-21 Chris Toshok <toshok@ximian.com>
1736 * plugin-class.cpp, plugin-class.h: event listener leak fix v3.0
1738 2008-10-21 Chris Toshok <toshok@ximian.com>
1740 * plugin-class.cpp, plugin-class.h: since I removed the value_dtor
1741 from xaml_proxies, we need to iterate over it and destroy the
1742 proxies manually now. Also, disavow ownership of proxies when we
1745 2008-10-20 Chris Toshok <toshok@ximian.com>
1747 * plugin-class.cpp (MoonlightObject::ClearXamlEventProxy): this
1748 method cannot call RemoveHandler on the proxy. instead, we return
1749 the proxy and our callers can do it
1750 (MoonlightScriptControlObject::SetProperty): here
1751 (MoonlightContentObject::SetProperty): here
1752 (MoonlightDependencyObjectObject::SetProperty): and here
1754 (EventListenerProxy::~EventListenerProxy): here we need to clear
1755 out the xaml/non-xaml proxy regardless of of whether or not it's a
1756 function. and make sure to call the right method depending on our
1759 2008-10-20 Chris Toshok <toshok@ximian.com>
1761 * plugin-class.cpp, plugin-class.h: Rather complicated lifecycle
1762 sorting out dealing with EventListenerProxies - there was a reason
1763 I was avoiding this :) - fixes bug 436060.
1765 1) if the target (the object on which the proxy calls AddHandler)
1766 is destroyed, the proxy should go away.
1768 2) if the owner (the MoonlightObject which created the proxy) is
1769 invalidated, the proxy should also be invalidated.
1771 3) if the owner is destroyed, the proxy should call RemoveHandler
1772 on the target. Note that we shouldn't destroy the proxy here -
1773 it'll be destroyed by virtue of the data_dtor stuff in
1776 * windowless.h, windowless.cpp: add support for experimental
1777 extension (see mozilla.org bug #430451) for windowless cursors.
1779 2008-10-20 Chris Toshok <toshok@ximian.com>
1781 * plugin-entry.cpp: get rid of all those CallNPP_* macro uses.
1782 just invoke the damn function.
1784 * plugin-proxy.cpp, moonlight.h: include npfunctions.h instead of npupp.h
1786 * plugin-glue.cpp, plugin.h: fix types.
1788 * moz-sdk/*: rev to a newer version of the moz-sdk files.
1790 2008-10-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
1792 * plugin-class.cpp: proxy_listener_to_javascript: if calldata is null,
1793 only pass 1 argument to javascript. Fixes #426440 partially (mp3s
1794 are now downloaded).
1796 2008-10-16 Jb Evain <jbevain@novell.com>
1798 * moonlight.h: update SL2 mime type and runtime version.
1800 2008-10-14 Chris Toshok <toshok@ximian.com>
1802 * windowless.cpp (MoonWindowless::GetGdkWindow): get the
1803 netscapeWindow from our plugin id and return a new GdkWindow for
1806 2008-10-14 Stephane Delcroix <sdelcroix@novell.com>
1808 * windowless.h|.cpp: implements GetGdkWindow ()
1810 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1812 * plugin-class.cpp: Fix statement order.
1814 2008-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
1816 * plugin.cpp, plugin-class.cpp: Add some null checks, found while using
1817 firebug during plugin initialization.
1819 2008-10-07 Larry Ewing <lewing@novell.com>
1821 * windowless.cpp (MoonWindowless::HandleEvent): set the crossing
1822 mode of our synthetic events to normal.
1824 Fixes missing mouse leave events for InputHitTst.html (143)
1826 2008-10-07 Larry Ewing <lewing@novell.com>
1828 * plugin.cpp: remove a redundant call to SetSurface after creating
1829 a surface, it is handled in the ctor.
1831 Fixes the double render_cb registration problem we were seeing
1832 that caused high framerates and starvation problems.
1834 2008-10-03 Stephane Delcroix <sdelcroix@novell.com>
1836 * plugin.cpp: call SetPageURL even for embedded xaml. Makes fixture
1837 145 break, as expected.
1839 2008-09-30 Chris Toshok <toshok@ximian.com>
1841 * plugin-debug.cpp: more debug window work - it's sorted by name
1842 now, and add support for colors, timespans, and a few other types.
1844 2008-09-30 Chris Toshok <toshok@ximian.com>
1846 * plugin-debug.cpp: rework the Debug window entirely. no we don't
1847 just show children, but all property values.
1849 2008-09-28 Chris Toshok <toshok@ximian.com>
1852 plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): add
1853 support for dumpNameScope.
1855 2008-09-26 Fernando Herrera <fherrera@novell.com>
1857 * mono.cpp: Fix compilation when configured with --with-debug=no
1859 2008-09-25 Jeffrey Stedfast <fejj@novell.com>
1861 * plugin.cpp (PluginInstance::PluginInstance): Initialize
1862 source_location to NULL - probably the source of the random
1863 crashes we were seeing on the buildbot earlier.
1865 2008-09-25 Stephane Delcroix <sdelcroix@novell.com>
1867 * plugin.cpp: update the Surface::source_location while setting
1868 the source_location.
1870 2008-09-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
1872 * plugin.cpp: Show a item in the right-click menu allowing the ms
1873 codecs to be installed manually.
1875 2008-09-23 Chris Toshok <toshok@ximian.com>
1877 * plugin.cpp (PluginInstance::CreateWindow): plug some memory
1880 2008-09-19 Jeffrey Stedfast <fejj@novell.com>
1882 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): For
1883 RemoveEventListener(), we don't need to look up the event_id more
1886 * plugin.cpp (PluginXamlLoader::HookupEvent): Call
1887 event_object_add_xaml_listener() instead of
1888 event_object_add_javascript_handler() since this is happening as a
1889 result of a listener being set in the XAML (which means it has to
1890 have a token value of 0).
1892 * plugin-class.cpp (EventListenerProxy::AddXamlHandler): New method.
1893 (event_object_add_xaml_listener): New.
1895 2008-09-19 Stephane Delcroix <sdelcroix@gnome.org>
1897 * plugin-class.cpp: use the nex dl->Open interface
1899 2008-09-16 Fernando Herrera <fherrera@novell.com>
1901 * Makefile.am: Add asf include dir
1903 2008-09-06 Chris Toshok <toshok@ximian.com>
1905 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke): look
1906 up the event here, the DO api is gone.
1907 (EventListenerProxy::~EventListenerProxy): use the DestroyedEvent
1908 id instead of "destroyed".
1910 2008-09-03 Larry Ewing <lewing@novell.com>
1912 * plugin-class.cpp, plugin-class.h: remove all the ControObject
1913 wrapper foo, Control has the properties we need and this looks
1916 2008-08-28 Chris Toshok <toshok@ximian.com>
1918 * plugin.cpp, plugin-class.cpp: track move from C-binding to C++
1919 for the xaml_create/hydrate_from* methods.
1921 2008-08-28 Larry Ewing <lewing@novell.com>
1923 Make a little progress in getting opera to load the plugin
1924 correctly in windowless mode. Opera is still only minimally
1925 functional but the plugin should come up now.
1927 * plugin.cpp, plugin.h: don't get the source url via GetProperty
1928 that causes operapluginwrapper to reenter and breaks everything.
1929 Handle a few other operapluginwrapper quirks and pass resizing
1930 through the window not the surface (so that UpdateWindowInfo will
1933 * plugin-glue.cpp: slightly rework the initialization, don't fixup
1934 errors just try to fail early.
1936 * windowless.cpp (MoonWindowless::UpdateWindowInfo): new function
1937 to copy the needed members of NPWindow that opera is prematurely
1940 2008-08-25 Chris Toshok <toshok@ximian.com>
1942 * plugin-class.cpp, windowless.cpp: track rect change.
1944 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1946 * plugin.cpp: Fix build.
1948 2008-08-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
1950 * plugin-downloader.cpp: Drastically enhance the debugging experience
1953 2008-08-18 Larry Ewing <lewing@novell.com>
1955 * plugin-class.cpp (MoonlightStrokeCollectionObject::Invoke):
1956 unref the collection we've created.
1958 2008-08-18 Geoff Norton <gnorton@novell.com>
1960 * plugin-class.cpp: Its possible that we dont have a surface in the
1961 OnError case at this point, guard against this.
1963 2008-08-18 Geoff Norton <gnorton@novell.com>
1965 * plugin.cpp: Ensure we dont set object.Source to a data mime-type value.
1967 2008-08-18 Geoff Norton <gnorton@novell.com>
1969 * windowless.cpp: Null the GdkEventKey.string value.
1970 * plugin-class.cpp|h: Rename KeyboardEventArgs->KeyEventArgs,
1971 but support returning "KeyboardEventArgs" to javacsript toString()
1974 2008-08-17 Geoff Norton <gnorton@novell.com>
1976 * plugin.cpp|h: Add a C binding for GetSourceLocation ()
1978 2008-08-17 Chris Toshok <toshok@ximian.com>
1980 * plugin.cpp, plugin-class.cpp, mono.cpp, plugin-proxy.cpp,
1981 plugin.h, moonlight.h, moon-mono.h: SL_2_0 -> SL_PLUGIN_2_0.
1983 2008-08-17 Chris Toshok <toshok@ximian.com>
1985 * Makefile.am: INCLUDE_MONO_RUNTIME ->
1986 INCLUDE_BROWSER_MANAGED_CODE.
1988 2008-08-15 Jeffrey Stedfast <fejj@novell.com>
1990 * plugin-class.cpp (MoonlightStylusInfoObject::GetProperty): Use
1991 the c++ property accessors for the stylus classes.
1993 2008-08-14 Jackson Harper <jackson@ximian.com>
1995 * plugin.cpp|h: We now get a 'dest' pointer for hooking up events,
1996 this is basically ignored by the javascript event hookup since
1997 everything is in a global space.
1999 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2001 * plugin.h: Don't use base_unref, call unref on the instance.
2003 2008-08-14 Geoff Norton <gnorton@novell.com>
2005 * plugin.cpp|h: The timeout C bindings are no longer used.
2007 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
2009 * plugin-class.cpp: Remove spew.
2010 * moonlight.cs: Don't initialize Helper.Agclr here, it's not in the
2013 2008-08-13 Geoff Norton <gnorton@novell.com>
2015 * plugin.cpp|h: Reuse the old html_timer infrastructure for the
2016 intial DispatcherTimer implementation.
2018 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2020 * moonlight.cs: Set Helper.Agclr upon startup.
2022 2008-08-11 Larry Ewing <lewing@novell.com>
2024 * plugin.cpp (PluginInstance::StreamAsFile): horrible but
2025 temporary hack to load application/x-silverlight objects as sl2
2026 files when .xap is present in the filename.
2028 2008-08-11 Geoff Norton <gnorton@novell.com>
2030 * moonlight.h: Some sites are doing an exact string comparison
2031 in Javascript of this value. Unfortunately we need to drop
2032 out compatability string.
2034 2008-08-08 Chris Toshok <toshok@ximian.com>
2036 * plugin-class.cpp: add sl2 arguments to the various parser/enum
2037 functions that need them.
2039 2008-08-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2041 * plugin.mdp: Make src and plugin projects build.
2043 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2045 * plugin-debug.cpp: Deleted Visual (moved content into UIElement), and
2046 renamed VisualCollection to UIElementCollection.
2048 2008-08-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
2050 * plugin-class.cpp: Use C++ bindings instead of C bindings.
2052 2008-08-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
2054 * plugin.cpp, plugin.h: Implement PluginInstance::Evaluate.
2056 2008-07-26 Chris Toshok <toshok@ximian.com>
2058 * plugin-class.h, plugin-class.cpp: add MoonlightRoutedEventArgs
2059 stuff between EventArgs and KeyboardEventArgs/MouseEventArgs.
2060 RoutedEventArgs exposes a 2.0-only property ("source"), and both
2061 Keyboard/MouseEventArgs expose a 2.0-only property as
2064 2008-07-25 Chris Toshok <toshok@ximian.com>
2066 * plugin-class.h, plugin-class.cpp: add a flags field to the
2067 mapping, so we can start to differentiate the 1.0 and 2.0 JS apis.
2069 * plugin.cpp (PluginInstance::CreateWindow): pass silverlight2 to
2072 2008-07-24 Jeffrey Stedfast <fejj@novell.com>
2074 * plugin-class.cpp (MoonlightCollectionObject::GetProperty): Use
2075 collection->GetCount() instead of poking at the internal
2076 representation of the data.
2077 (MoonlightCollectionObject::Invoke): Need to add/remove/insert/etc
2078 items as Values now.
2080 2008-07-23 Chris Toshok <toshok@ximian.com>
2082 * plugin-class.cpp: track DependencyProperty changes.
2084 2008-07-18 Chris Toshok <toshok@ximian.com>
2086 * windowless.h, windowless.cpp: switch this from being a surface
2087 subclass to being a MoonWindow subclass, which fixes the need for
2088 us to worry about whether we have a widget (for fullscreen) in
2091 2008-07-18 Jb Evain <jbevain@novell.com>
2093 * moonlight.cs (UnloadDomain): actually call the plugin unload callback.
2095 2008-07-18 Jackson Harper <jackson@ximian.com>
2097 * plugin-debug.cpp: Use new method for getting content element.
2099 2008-07-17 Jackson Harper <jackson@ximian.com>
2101 * plugin-debug.cpp: Add the contents of UserControls to the tree too.
2103 2008-07-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
2105 * npstream-request.cpp, plugin-entry.cpp: Add missing #include
2108 2008-07-10 Andrew Jorgensen <ajorgensen@novell.com>
2110 * plugin-proxy.cpp: Include config.h (which got un-included
2113 2008-07-10 Chris Toshok <toshok@ximian.com>
2115 * plugin.cpp (PluginInstance::UpdateSourceByReference): rework
2116 this so that it uses the NPN api instead of the bridge-requiring
2117 html_get_element_text.
2119 2008-07-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
2121 * plugin.mdp: Updated.
2123 2008-07-09 Geoff Norton <gnorton@novell.com>
2125 * plugin.cpp: UrlNotify now calls dl->NotifyFinished() and
2126 StreamAsFile calls SetFilename
2127 * plugin-downloader.cpp: Update for the Downloader changes
2128 to NotifyFinished / SetFilename
2130 2008-07-09 Larry Ewing <lewing@novell.com>
2132 * windowless.cpp: make sure we proxy events to the fullscreen
2133 widget when we are in fullscreen mode.
2135 Fixes silverlight.net/fox in fullscreen mode.
2137 2008-07-08 Sebastien Pouliot <sebastien@ximian.com>
2139 * plugin-class.cpp: Make sure we free (or nullify) before calling
2142 2008-07-07 Jeffrey Stedfast <fejj@novell.com>
2144 * mono.cpp: Fixed includes.
2146 2008-07-06 Chris Toshok <toshok@ximian.com>
2148 * windowless.cpp (WindowlessSurface::HandleEvent):
2149 plugin_button_press_callback takes the plugin for user_data, not
2152 2008-07-06 Chris Toshok <toshok@ximian.com>
2154 * plugin.cpp (PluginInstance::Initialize): add a way to override
2155 the windowless setting. set the MOONLIGHT_NO_WINDOWLESS
2156 environment variable, and plugins will be created windowed,
2157 regardless of the JS.
2159 2008-07-02 Chris Toshok <toshok@ximian.com>
2161 * Makefile.am (INCLUDES): add src/zip
2163 * plugin.cpp (PluginInstance::StreamAsFile): in the case where the
2164 1.0 version of the plugin is fed a .xap file, show something to
2165 the user saying it's not going to be able to render it.
2167 2008-07-02 Chris Toshok <toshok@ximian.com>
2169 * plugin.h, plugin.cpp: more clean up in the class decl.
2171 * plugin-class.cpp, plugin-debug.cpp, plugin-glue.cpp: fallout
2172 from the above change.
2174 2008-07-02 Jeffrey Stedfast <fejj@novell.com>
2176 * plugin.cpp (PluginInstance::Properties): Added a "Show text
2179 2008-07-02 Chris Toshok <toshok@ximian.com>
2181 * plugin.h, plugin.cpp: reorder PluginInstance's class decl so
2182 that public: comes before private:, and make "timers" private,
2183 forcing the addition of TimeoutAdd and TimeoutStop instance
2184 methods so that the C binding can call them. put comments all
2185 over them saying they're obsolete in b2.
2187 2008-07-02 Chris Toshok <toshok@ximian.com>
2189 * plugin-class.h, plugin-class.cpp (string_to_npvariant): make
2192 2008-07-02 Chris Toshok <toshok@ximian.com>
2194 * windowless.h, windowless.cpp (WindowlessSurface::HandleEvent):
2195 move the windowless event handling here so it's not cluttering up
2198 * plugin.h, plugin.cpp: add GetWindow() to return the NPWindow,
2199 make plugin_button_press_callback a public static method so
2200 WindowlessSurface can call it, and remove the entire EventHandle
2201 method body (so it can be moved to WindowlessSurface).
2203 2008-07-02 Chris Toshok <toshok@ximian.com>
2205 * plugin.h, plugin.cpp: remove the old static methods for doing
2206 windowless things, and instead just instantiate a
2207 WindowlessSurface in CreateWindow when windowless == true.
2209 * Makefile.am (libmoonplugin_la_SOURCES): add windowless.{cpp,h}
2211 * windowless.h, windowless.cpp: new WindowlessSurface subclass
2212 which proxies things over to mozilla.
2214 2008-07-02 Chris Toshok <toshok@ximian.com>
2216 * plugin.cpp (NPN_strdup): just set 1 byte to 0 instead of all of
2218 (PluginInstance::SetSurfaceCursor): ifdefed out implementation of
2219 a proposed method for setting the cursor in windowless plugins.
2220 (PluginInstance::CreateWindow): hook up SetSurfaceCursor.
2222 2008-06-28 Geoff Norton <gnorton@novell.com>
2224 * plugin-downloader.(ccp|h): The finished event raises a success condition now
2225 so that we can notify failure on unsuccessful downloads.
2227 2008-06-27 Stephane Delcroix <sdelcroix@novell.com>
2230 * firefox/browser-http.inc:
2231 * firefox/ff2/ff2-bridge.h:
2232 * firefox/ff2/ff2-http.cpp:
2233 * firefox/ff3/ff3-bridge.h:
2234 * firefox/ff3/ff3-http.cpp:
2235 * npstream-request.cpp:
2236 * npstream-request.h:
2237 * plugin-downloader.cpp:
2238 * plugin-downloader.h: move browserrequest/response from the plugin
2239 as downloaderrequest/response.
2241 2008-06-26 Michael Dominic K. <mdk@mdk.am>
2244 * plugin-class.h: Adding ways/wrapper to access the KeyTime property of
2245 the KeyFrame. Fixes #402370 and #402035.
2247 2008-06-19 Chris Toshok <toshok@ximian.com>
2249 * plugin.h: add GetHost(), and rename all the "get"/"set" methods
2250 to "Get"/"Set" to match everything else.
2252 * plugin.cpp: fix up the renaming, and abstract out the code used
2253 in a couple of places (getting the NPNVPluginElementNPObject) into
2256 * npstream-request.cpp (NPStreamRequest::GetResponse): track
2259 * plugin-class.cpp: track renaming.
2260 (MoonlightDependencyObjectObject::Invoke): use GetHost().
2262 2008-06-19 Chris Toshok <toshok@ximian.com>
2264 * plugin-class.cpp (MoonlightScriptControlObject::Invoke): comment
2265 out the version requested spew.
2267 * plugin.cpp (PluginInstance::Initialize): comment some bridge
2268 spew, and make sure to use "else if" for the useragent tests so we
2269 don't end up possibly loading 2 bridges.
2271 2008-06-17 Geoff Norton <gnorton@novell.com>
2273 * plugin-downloader.cpp: When we are Aborted NULL our request
2274 and response objects so that we dont do a double abort from our
2275 dtor. Fully fixes the Downloader::Write issue (i hope).
2277 2008-06-17 Geoff Norton <gnorton@novell.com>
2279 * plugin-downloader.cpp: Set the finished state regardless of
2280 wether we have a downloader or not.
2282 2008-06-17 Geoff Norton <gnorton@novell.com>
2284 * plugin-downloader.cpp: If we destroy ourselves, ensure that we
2285 abort our request/response so that firefox doesn't call back
2286 into a destroyed object.
2288 2008-06-17 Geoff Norton <gnorton@novell.com>
2290 * plugin-downloader.cpp, plugin-downloader.h: Ensure that we dont
2291 attempt to abort a finished stream, as it may have dissappeared from
2294 2008-06-16 Jeffrey Stedfast <fejj@novell.com>
2296 * plugin-class.cpp (_set_dependency_property_value): Don't
2297 g_assert() here, it's not necessary plus we want to get rid of
2298 them anyway for bug #335413.
2300 2008-06-10 Chris Toshok <toshok@ximian.com>
2302 * plugin.cpp, plugin.h: wrap everything 2.0 related with
2303 INCLUDE_MONO_RUNTIME.
2305 2008-06-10 Geoff Norton <gnorton@novell.com>
2307 * plugin-downloader.cpp, plugin-downloader.h: Aborted guarding
2308 is handled in the bridge now, as plugin-downloader's might be
2309 reused. Also add a null check for Downloader in the Read callback
2311 2008-06-10 Geoff Norton <gnorton@novell.com>
2313 * npstream-request.cpp: Return the status of GetResponse.
2315 2008-06-11 Geoff Norton <gnorton@novell.com>
2317 * plugin-downloader.cpp: Only call into the downloader to Write
2318 if we have a downloader set. Fixes a crash when navigating away from
2321 2008-06-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
2323 * plugin-class.h: Replace g_assert with g_warning.
2325 2008-06-09 Geoff Norton <gnorton@novell.com>
2327 * npstream-request.cpp: Change the g_asserts to g_warning.
2329 2008-06-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2331 * plugin.mdp: Updated.
2333 2008-06-05 Jeffrey Stedfast <fejj@novell.com>
2335 * plugin-debug.cpp (save_callback): Modified to save mirror in the
2336 same directory layout as the website.
2338 2008-06-05 Geoff Norton <gnorton@novell.com>
2340 * plugin-class.cpp: Update to reflect API changes on the downloader
2343 2008-06-05 Geoff Norton <gnorton@novell.com>
2345 * plugin-downloader.cpp: Update the debugging outputs.
2347 2008-06-05 Geoff Norton <gnorton@novell.com>
2349 * http-downloader.cpp, http-downloader.h, mms-downloader.cpp,
2350 mms-downloader.h: Drop from the build in preparation to move
2351 mms logic into libmoon.
2352 * plugin-downloader.cpp, plugin-downloader.h,
2353 browser-bridge.h: Remove the browser downloader and encapsulate
2354 all the logic in a BrowserRequest.
2355 * npstream-request.cpp, npstream-request.h: New BrowserRequest
2356 based NPStream implementation.
2357 * plugin-downloader.cpp: Fix some debugging output. Add a few
2359 * plugin.cpp: Utilize the new npstream-request class.
2361 2008-06-04 Geoff Norton <gnorton@novell.com>
2363 * plugin-class.cpp: Fix the argument check for MouseEventArgs
2364 GetPosition regression introduced with check_arg_list changes.
2366 2008-06-04 Geoff Norton <gnorton@novell.com>
2368 * plugin-class.cpp: Fix the argument check for hitTest
2369 regression introduced with check_arg_list changes.
2371 2008-06-04 Geoff Norton <gnorton@novell.com>
2373 * plugin-class.cpp: Fix the argument check for setFontSource
2374 regression introduced with check_arg_list changes.
2376 2008-06-04 Jeffrey Stedfast <fejj@novell.com>
2378 * plugin-class.cpp: Added argument sanity checking in all the
2379 Invoke() methods I could find (may have missed some).
2380 (check_arg_list): New function to sanity-check an NPVariant
2381 argument vector for the correct types and the correct number of
2382 arguments (supports optional args as well).
2384 2008-06-04 Jeffrey Stedfast <fejj@novell.com>
2386 * plugin-class.cpp (MoonlightDownloaderObject::Invoke): Check the
2387 arg-types for ::Open(). Fixes bug #394943.
2389 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2391 * plugin-downloader.cpp: Don't delete BrowserDownloaders, it causes
2392 crashes for the moment.
2394 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2396 * mms-downloader.cpp: MmsDownloader::Read: only delete the ASFParser
2397 after we've finished with the data it contains.
2398 MmsDownloader::ProcessMetadataPacket: fix parsing quoted strings.
2399 * mms-downloader.h, npstream-downloader.h: Make dtor virtual.
2400 * plugin-downloader.cpp, plugin-downloader.h: Move ctors and dtors into
2401 cpp file, and delete the BrowserDownloader in PluginDownloader's
2404 2008-05-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
2406 * plugin.mdp: Updated.
2408 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2410 * mms-downloader.cpp: Call Downloader::NotifyFailed when we encounter
2411 an invalid mms source. Parse metadata packets, and set
2412 HttpStreamingFeatures correctly on the downloader.
2413 * plugin-downloader.cpp: Handle rtsp urls.
2415 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2417 * plugin.cpp: Add some debugging foo.
2419 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2421 * npstream-downloader.cpp: If NPN_GetURLNotify fails, notify the
2424 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2426 * mms-downloader.cpp, mms-downloader.h: For the broadcast case keep a
2427 count of the number of packets received, and write new packets at
2428 the end of the previous packet. Don't print warnings for MMS_END
2429 and MMS_STREAM_C packets.
2431 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2433 * plugin-downloader.cpp: Return something from
2434 PluginDownloader::GetPlugin.
2436 2008-05-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
2438 * plugin-downloader.cpp: Spaces->Tabs.
2440 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2442 * mms-downloader.h, mms-downloader.cpp: Move ctor/dtor into cpp file,
2443 add some logging and null out response in Finished, otherwise we
2444 might crash if Abort is called later on.
2446 2008-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
2448 * http-downloader.cpp: Return something from HttpDownloader::Read.
2450 2008-05-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2452 * plugin.mdp: Updated.
2454 2008-05-23 Geoff Norton <gnorton@novell.com>
2456 * browser-bridge.h: Get/SetUri is no longer needed on the BrowserResponse
2459 2008-05-23 Geoff Norton <gnorton@novell.com>
2461 * *-downlodaer.cpp: Add the files to SVN
2463 2008-05-23 Geoff Norton <gnorton@novell.com>
2465 * browser-bridge.cpp: Refactor to move all the stream processing logic outside
2466 the bridge into the plugin in a generic way.
2467 * plugin.cpp: Cache the source_location. Needed for http-downlodaer to resolve
2469 * mmsh-state.*: Merged into mms-downlodaer.cpp
2470 * mms-downloader.cpp: Rewritten to not leak all memory when streaming from a mms
2471 server, plus a lot of readability fixes.
2472 * npstream-downloader.cpp: Hide NPStream related specifics here instead of in
2473 * plugin-downloader.cpp: Direct requests to the BrowserDownloader implementation
2476 2008-05-21 Chris Toshok <toshok@ximian.com>
2478 * plugin.cpp (plugin_button_press_callback): rename
2479 plugin_event_callback to this, and remove all the non-button event
2481 (PluginInstance::CreateWindow): connect to just
2482 "button-press-event", not the more generic "event". track
2484 (PluginInstance::EventHandle): track renaming.
2486 2008-05-19 Larry Ewing <lewing@novell.com>
2488 * plugin.cpp (PluginInstance::SetPageURL): drop the reference we
2489 were holding to NPNVWindowNPObject.
2491 2008-05-19 Larry Ewing <lewing@novell.com>
2493 * plugin.cpp (PluginInstance::EventHandle): discard any events
2494 that happen before SetWindow has been called.
2496 Fix for a crash in Silverlight Pad.
2498 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2500 * plugin-class.cpp: Throw an exception if the downloader doesn't have a
2501 surface when we call Downloader::Send.
2503 2008-05-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2505 * mmsh-state.h: Surround file with ifdefs, and forward declare
2507 * plugin-downloader.h: Include mmsh-state.h and properly declare
2508 PluginDownloader::state as MmshState.
2510 2008-05-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
2512 * plugin.mdp: Updated.
2514 2008-05-15 Larry Ewing <lewing@novell.com>
2516 * plugin.cpp (PluginInstance::EventHandle): send focus in/out to
2519 * plugin-class.cpp, plugin.cpp, plugin.h: capture id parameter and
2522 2008-05-14 Sebastien Pouliot <sebastien@ximian.com>
2524 * moonlight.h: Start plugin description with Silverlight plugin
2525 version. The new detection script for sharethelove requires this.
2527 2008-05-13 Larry Ewing <lewing@novell.com>
2529 * plugin.cpp, plugin-class.cpp: copy all npvariant strings so that
2530 we can null terminate them. WebKit and Opera don't null terminate
2533 2008-05-13 Larry Ewing <lewing@novell.com>
2535 * plugin-glue.cpp (NPP_Initialize): opera needs to have threads
2536 initialized even in the gtk2 case.
2538 * plugin.cpp (PluginInstance::SetWindow): disable this check since
2539 it currently fails on opera 9.5b2.
2541 These changes get the plugin loading in opera 9.5b2 we need to
2542 discuss some of this with them more.
2544 2008-05-13 Chris Toshok <toshok@ximian.com>
2546 * plugin.cpp (PluginInstance::Initialize): add an opera case (just
2547 like the webkit case) which references a (for now) nonexistant
2550 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2552 * plugin.cpp: TryLoad: Before parsing any xaml, we need to clear the
2553 current surface, otherwise the xaml we'll be parsing might add tick
2554 callbacks to the timemanager of the previous surface.
2556 2008-05-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
2558 * plugin.mdp: Updated.
2560 2008-05-12 Andrew Jorgensen <ajorgensen@novell.com>
2562 * Makefile.am: Moved the plugin installer code to a subdir (install)
2563 because the firefox bridges must build after the plugin but before the
2566 2008-05-09 Geoff Norton <gnorton@novell.com>
2568 * Makefile.am: Add mmsh-state.* to the build.
2569 * plugin-downloader.*: When connecting to a mms server we cannot
2570 immediately start streaming. We must first query its capabilities
2571 with a Describe request, then select the appropriate streams we
2572 wish to have available.
2574 2008-05-09 Geoff Norton <gnorton@novell.com>
2576 * mmsh-state.cpp, mmsh-state.h: New class to keep stream state
2577 for selecting which streams to fetch from a mms:// server.
2579 2008-05-09 Chris Toshok <toshok@ximian.com>
2581 * ff3/Makefile.am (libmoonplugin_ff3bridge_la_LIBADD): add
2584 2008-05-09 Chris Toshok <toshok@ximian.com>
2586 * ff2/Makefile.am (EXTRA_DIST): dist firefox-browsermmsh.inc
2588 2008-05-08 Chris Toshok <toshok@ximian.com>
2590 * install.rdf.in: track MINVERSION/MAXVERSION ->
2591 MIN_FIREFOX_VERSION/MAX_FIREFOX_VERSION change.
2593 * plugin.cpp (NPN_strdup): make the arg const char* to quiet gcc.
2594 (PluginInstance::PluginInstance): initialize bridge to NULL.
2595 (PluginInstance): delete the bridge.
2596 (PluginInstance::Initialize): try loading a browser specific
2597 bridge using the useragent string (gross, fragile, i know...)
2598 (PluginInstance::TryLoadBridge): new method, dlopen the bridge.
2600 * browser-http.h, browser-http.cpp: nuke. the C implementation
2601 lives in browser-bridge.cpp, and browser-bridge.h defines
2602 the (purely abstract) base classes that the bridge implementations
2603 subclass from for browser-specific functionality.
2605 * plugin-proxy.cpp: clean up more XP_UNIX stuff - it's always
2606 defined (in moonlight.h) so we don't need ifdefs for it. Also, it
2607 needs to be defined *before* including npapi/npupp so that
2608 structures we need are defined.
2610 * plugin-class.cpp: remove all HtmlObject implementation code from
2611 here. it lives in the browser bridge now. Also, remove all
2612 internal mozilla #includes.
2614 * moonlight.h (XP_UNIX): always define it if it isn't already
2617 * browser-bridge.h: add NPNetscapeFuncs* arg to
2618 CreateBrowserBridge.
2620 * plugin-entry.cpp (NPN_PostURLNotify): correct arg type.
2621 (NPN_MemAlloc): same.
2622 (NPN_MemFlush): same.
2623 (NPN_PostURL): same.
2624 (NP_Initialize): remove the stupid #if XP_UNIX stuff from here.
2625 we're only building on unix, so let's simplify things. Also,
2626 don't use PR_TRUE/PR_FALSE. NPBool uses TRUE/FALSE.
2628 * plugin-glue.cpp (NPP_WriteReady): change type to int32 instead
2629 of int32_t so that it matches the prototype.
2632 * moz-sdk/npapi.h, moz-sdk/npupp.h: unfuck our npapi headers so
2633 they can be used for either ff2 and ff3 (and without pulling in
2636 2008-05-08 Larry Ewing <lewing@novell.com>
2638 * plugin.cpp (PluginInstance::SetWindow): don't crash if we
2639 weren't able to create a surface.
2641 2008-05-08 Chris Toshok <toshok@ximian.com>
2643 * ff2/ff2-bridge.cpp: in order to keep from needing to load
2644 libmoonplugin.so with RTLD_GLOBAL (which breaks other plugins), we
2645 need to pass the NPNetscapeFuncs vtable to the bridge, and provide
2646 implementations of all the NPN_ methods here. That was making
2647 this file a bit busy, so break out the dom and http stuff to
2650 * ff2/ff2-dom.cpp: move the dom stuff here.
2652 * ff2/ff2-http.cpp: move the browserhttp stuff herre.
2654 * ff2/Makefile.am (EXTRA_DIST): make sure we dist
2655 firefox-browserhttp.inc
2657 * ff3/ff3-http.cpp, ff3/ff3-dom.cpp, ff3/ff3-bridge.cpp: same
2658 changes to the ff3 bridge.
2660 2008-05-07 Geoff Norton <gnorton@novell.com>
2662 * plugin.cpp, plugin.h: Add NPN_strdup
2663 * plugin-class.cpp: Use NPN_strdup
2664 * plugin-entry.cpp: Dont abort if XEmbed/Gtkv2 aren't found as
2665 some browsers wont lets us NPN_GetValue on a NULL instance.
2667 2008-05-07 Andrew Jorgensen <ajorgensen@novell.com>
2669 * Makefile.am: Move mono_*dir stuff into Makefile
2671 2008-05-07 Larry Ewing <lewing@novell.com>
2673 * plugin.cpp (PluginInstance::SetWindow): if SetWindow is called
2674 with the same window this is due to a resize, propogate that
2675 resize to the surface code.
2677 Fixes the plugin side of windowless resizing. See
2678 http://my.liveatedu.com/ for test case.
2680 2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
2682 * moonlight.h: Could not find (nor google) the real meaning for SCR,
2683 I suspect "script", nor does it affect any apps I've seen but having
2684 xaml in it's place is probably not a good idea.
2687 2008-05-06 Jeffrey Stedfast <fejj@novell.com>
2689 * plugin.h (PluginInstance::getNPP): Removed, this just duplicated
2690 the getInstance() method.
2692 2008-05-06 Andrew Jorgensen <ajorgensen@novell.com>
2694 * install.rdf.in: Use values from configure for min and max versions
2696 2008-05-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
2698 * plugin-glue.cpp: shutdown_moonlight: we have to check again if there
2699 are plugins alive, this method is called async, and it's possible
2700 that another plugin has been initialized between adding the timeout
2703 2008-05-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
2705 * plugin-class.cpp: Add a missing initialization.
2707 2008-05-04 Miguel de Icaza <miguel@novell.com>
2709 * moonlight.cs: Add support for XAP file loading.
2711 * mono.cpp: New methods to create applications based on XAP files,
2714 * plugin.cpp (PluginInstance::StreamAsFile): If Silverlight2 the
2715 request was for a XAP file, load a XAP file. This could break
2716 if people embed a Silverlight2 plugin, but pass a XAML file, must
2719 * plugin.cpp: Some refactoring to keep the Mono-depending features
2720 together, without having ifdefs inside of functions.
2722 XAP maintenance: Keep track of whether a XAP application has been
2723 loaded, destroy XAP applications on shutdown.
2726 2008-05-04 Chris Toshok <toshok@ximian.com>
2728 * plugin.h, plugin.cpp, plugin-class.cpp, plugin-class.h: revert
2729 most of r102288 to move back to the separate Loaded/Load events.
2730 Leave the OneShot behavior for EventListenerProxy's, though, as
2731 that still is useful.
2733 2008-05-01 Larry Ewing <lewing@novell.com>
2735 * plugin.cpp (plugin_event_callback): fix windowless button
2736 presses so that only button 3 is swallowed by the menu logic.
2739 http://www.designwithsilverlight.com/tutorials/photoGallery/gallery.html
2740 2008-05-02 Andrew Jorgensen <ajorgensen@novell.com>
2742 * Makefile.am: strip all .sos in XPI (not just ffmpeg)
2743 If we need un un-stripped XPI we'll build one.
2745 2008-05-02 Geoff Norton <gnorton@novell.com>
2747 * plugin.cpp: reinterpret_cast doesn't work on 64-bit as it
2750 2008-05-01 Chris Toshok <toshok@ximian.com>
2752 * plugin-class.h, plugin-class.cpp: make EventListenerProxy's
2753 one-shottable (if they're one-shot, they remove themselves
2754 automatically after being invoked.) Use this with the plugin
2755 onLoad proxy. The script control object adds it to the surface's
2756 toplevel object's LoadedEvent.
2758 * plugin.h, plugin.cpp: when we create the surface, add a handler
2759 for AttachingEvent so we can notify our
2760 MoonlightScriptControlObject that it should add the onLoad handler
2761 to the toplevel element's LoadedEvent.
2763 2008-04-30 Fernando Herrera <fherrera@novell.com>
2765 * browser-mmsh.cpp: Abort and NotifyFailed on invalid mms streams,
2766 probably they are plain http file downloads.
2768 2008-04-30 Fernando Herrera <fherrera@novell.com>
2770 * plugin-debug.cpp: Added utils.h and uri.h.
2772 2008-04-30 Jeffrey Stedfast <fejj@novell.com>
2774 * moonlight.h: Don't need to include glib.h and gtk.h, gtk.h will
2777 2008-04-29 Jeffrey Stedfast <fejj@novell.com>
2779 * plugin-debug.cpp (foreach_func): Save the files with their
2780 original filenames using the URI's path.
2782 2008-04-28 Sebastien Pouliot <sebastien@ximian.com>
2784 * moonlight.h: Fix [Moon|Silver]'L'ight capitalization. Add
2785 Moonlight URL (as HTML) in about:plugins. This enables "Visit
2786 Home Page" in Firefox 3 "Tools | Add-ons | Plugins".
2788 2008-04-25 Chris Toshok <toshok@ximian.com>
2790 * plugin-class.cpp (enum PluginPropertyId): add MoonId_OnLoad.
2791 (map_moon_id_to_event_name): handle MoonId_OnLoad.
2792 (MoonlightObjectType::MoonlightObjectType): zero out construct,
2794 (scriptable_control_mapping): move onerror here, and add onload.
2795 (MoonlightScriptControlObject): null out both settings and content
2797 (MoonlightScriptControlObject::GetProperty): fix IsLoaded to check
2798 the surface, and add support for OnError/OnLoad here.
2799 (MoonlightScriptControlObject::SetProperty): add support for
2800 OnError/OnLoad here.
2801 (moonlight_content_mapping): remove onerror.
2802 (MoonlightContentObject::GetProperty): remove support for OnError.
2803 (MoonlightContentObject::SetProperty): same.
2805 * plugin.cpp (PluginInstance::CreateWindow): initialize the
2806 onResize/onLoad events in the same way as onError.
2807 (PluginInstance::Initialize): parse the onResize arg.
2808 (PluginInstance::JsRunOnload): nuke. rejoice.
2809 (PluginInstance::TryLoad): remove the call to JsRunOnload. The
2810 surface's LoadEvent is responsible for this now.
2812 2008-04-25 Sebastien Pouliot <sebastien@ximian.com>
2814 * plugin-debug.cpp: Better fix against my previous crash fix (as
2815 we can get an invalid pointer to the plugin).
2817 2008-04-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
2819 * plugin-downloader.cpp: Added logging.
2821 2008-04-25 Fernando Herrera <fherrera@novell.com>
2823 * browser-mmsh.cpp: Conditional logging.
2824 * plugin-downloader.cpp: proper error handling at
2825 p_downloader_mmsh_send.
2827 2008-04-24 Andrew Jorgensen <ajorgensen@novell.com>
2829 * Makefile.am: Add the locally built assemblies to the XPI
2831 2008-04-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
2833 * plugin-debug.cpp: Don't crash if we don't have any sources.
2835 2008-04-24 Fernando Herrera <fherrera@novell.com>
2837 * Makefile.am: Fix "make -jN" build.
2839 2008-04-23 Sebastien Pouliot <sebastien@ximian.com>
2841 * plugin-debug.cpp: Don't crash if try to save stuff after changing
2844 2008-04-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
2846 * browser-mmsh.cpp: Parse http streaming metadata/features.
2847 * browser-mmsh.h: AsyncBrowserMmshResponse: Type the context as a
2848 PluginDownloader instead of a generic gpointer.
2850 2008-04-22 Larry Ewing <lewing@novell.com>
2852 * moonlight.h: use HAVE_LIBXUL_UNSTABLE to determine which symbols
2855 * browser-http.h, browser-mmsh.h: use HAVE_LIBXUL_UNSTABLE to
2856 determine the include path.
2859 2008-04-22 Chris Toshok <toshok@ximian.com>
2861 * plugin.h, plugin.cpp: Add the notion of "cleanup pointers".
2862 It's a horrible name for the following hack. You register a local
2863 variable pointer with the plugin before making a call during which
2864 you might be destroyed. If the plugin instance is destroyed, all
2865 cleanup pointers are nulled.. When the all returns, you can't
2866 rely on "this" being valid, but you can rely on your local stack
2867 frame, so you look at the registered pointer. if it's null,
2870 * plugin.cpp (PluginInstance::PluginInstance): pass the pluginType
2871 instead of the boolean flag. C apis should be thin wrappers
2873 (PluginInstance::~PluginInstance): zombify the surface and then
2874 unref_delayed it, to allow everything to unwind before actually
2875 freeing that memory.
2876 (PluginInstance::Initialize): use "else" and remove all those damn
2878 (PluginInstance::TryLoad): use the cleanup pointer hack to check
2879 if we're still alive after the xaml_loader->TryLoad method.
2881 * plugin-class.cpp (EventListenerProxy::proxy_listener_to_javascript):
2882 use cleanup pointers to make sure we don't try to free plugin
2883 objects that have been destroyed by virtue of the plugin going
2884 away while we were in JS.
2886 * plugin-glue.cpp: since we're only destroying surfaces from the
2887 idle loop, we need to delay the shutting down of the moonlight
2888 engine until all surfaces have been destroyed. Also, take care
2889 not to do it from the DestroyEvent handler, as that is invoked
2890 *before* the object is destroyed (and destruction requires the
2891 engine to be initialized).
2893 2008-04-22 Michael Dominic K. <mdk@mdk.am>
2895 * plugin-class.cpp: Throw js exception if Storyboard failed to start
2898 2008-04-21 Jeffrey Stedfast <fejj@novell.com>
2900 * mono.cpp (vm_init): Don't leak memory in the plugin case. Also
2901 use d() around debug printfs.
2903 * plugin.cpp: Wrap debug printfs with d()
2905 2008-04-20 Miguel de Icaza <miguel@roxanne.site>
2907 * plugin.h: Add methods to flag Silverlight2, add field Xap that
2908 if not-NULL contains a pointer to the XAP file downloaded.
2910 * plugin-instance.c: If we are dealing with a Silverlight 2
2911 application, use Xap to unpack it. Does not load the result yet.
2913 * moonlight.h: Add support for SL2 mime type, clear up VERSION
2915 * plugin-glue.cpp: Tell PluginInstance whether this is an SL1 or
2918 2008-04-16 Chris Toshok <toshok@ximian.com>
2920 * plugin.cpp (PluginInstance::StreamAsFile): use "else if" here,
2921 otherwise the notifydata might be gone.
2923 2008-04-16 Jeffrey Stedfast <fejj@novell.com>
2925 * plugin-class.cpp (MoonlightDependencyObjectObject::GetProperty):
2926 Just because enums_int_to_str() returns NULL does not mean that
2927 the value was invalid, it could also mean that the property is
2928 simply an Int32 type.
2930 2008-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
2932 * plugin-class.cpp, plugin-class.h: Comparing a Kind value to another to
2933 determine type hierarchy isn't supported anymore, use Value::Is or
2934 Type::IsSubclassOf, which are doing the right thing.
2936 2008-04-15 Larry Ewing <lewing@novell.com>
2938 * plugin.cpp (PluginXamlLoader::TryLoad): emit an error if the
2939 root visual type is incorrect. Fixes one more of the ParserError
2940 tests until we can unfiy js exceptions and parser errors.
2942 2008-04-15 Larry Ewing <lewing@novell.com>
2944 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
2945 based on RuntimeErrors and
2946 http://msdn2.microsoft.com/en-us/library/bb979718.aspx getParent
2947 only applies to uielement subclasses.
2949 Fixes test that was failing in RuntimeErrors.htm.
2951 2008-04-15 Larry Ewing <lewing@novell.com>
2953 * plugin-class.cpp: throw an exception for invalid string values.
2955 2008-04-14 Jeffrey Stedfast <fejj@novell.com>
2957 * plugin.cpp: Got rid of unnecessary uses of keyword 'this'.
2958 (PluginInstance::CreateWindow): Fixed setting of background color.
2960 2008-04-13 Jb Evain <jbevain@novell.com>
2962 * moonlight.cs: use reflection to initialize the XamlLoader
2963 until we get moonlight.exe to be friend with Mono.Moonlight.
2964 Merged from the Moonlight 2 branch.
2966 2008-04-11 Larry Ewing <lewing@novell.com>
2968 * plugin.h (class PluginInstance): make setBackground return a
2969 boolean success value.
2971 * plugin-class.cpp (MoonlightSettingsObject::SetProperty): check
2972 the return value of setBackground and throw an exception if it
2975 * plugin.cpp (PluginInstance::CreateWindow): handle NULL return
2976 values from color_from_string.
2978 Handle the new case where color_from_string might return null.
2980 2008-04-11 Jeffrey Stedfast <fejj@novell.com>
2982 * plugin-class.cpp (MoonlightTextBlockObject::Invoke):
2983 SetFontSource() now takes a Downloader argument rather than a DOB.
2985 2008-04-11 Andrew Jorgensen <ajorgensen@novell.com>
2987 * plugin-proxy.cpp: Allow the user to override the location of
2988 libmoonplugin by setting MOON_PLUGIN_DIR so that the test harness
2989 can run without installing first.
2991 2008-04-11 Larry Ewing <lewing@novell.com>
2993 * plugin.cpp (PluginXamlLoader::TryLoad): Allow controls to be
2994 toplevel elments, drop all surface contents on errors.
2996 Allows Kit 3d to start rendering something in the texture map
2999 2008-04-11 Michael Dominic K. <mdk@mdk.am>
3001 * plugin-class.cpp: Small debug hint also here when enums invalid.
3003 2008-04-10 Chris Toshok <toshok@ximian.com>
3005 * plugin-class.cpp (npvariant_is_dependency_object): no reason to
3006 duplicate the logic here - call npobject_is_dependency_object.
3008 2008-04-10 Jeffrey Stedfast <fejj@novell.com>
3010 * plugin-class.cpp: Cast DOB's to Downloaders when passing to
3013 2008-04-10 Chris Toshok <toshok@ximian.com>
3015 * plugin-class.cpp, plugin-class.h: use the same "Invalidate
3016 NULL's things out, while the dtor checks for NULL before calling
3017 NPN_ReleaseObject" pattern with event listener proxies.
3019 2008-04-09 Chris Toshok <toshok@ximian.com>
3021 * plugin.cpp, plugin.h: make PluginInstance::SetSource behave
3022 asynchronously for both #ref and normal url cases. Fixes bug
3025 2008-04-08 Jeffrey Stedfast <fejj@novell.com>
3027 * plugin.cpp (PluginXamlLoader::TryLoad): Print a little more
3028 useful info on error.
3030 2008-04-04 Jeffrey Stedfast <fejj@novell.com>
3032 * plugin-class.h (EventListenerProxy.dtor): Made virtual... not
3033 sure if this matters or not, but might as well be consistent.
3034 (MoonlightTimeSpan.dtor): Same.
3036 2008-04-04 Chris Toshok <toshok@ximian.com>
3038 * plugin-class.cpp, plugin-class.h: change our use of
3039 NPType->invalidate. Firefox docs say this is *only* called when
3040 the browser is shutting down the plugin instance. So, we
3041 shouldn't access fields that point to other NPObjects here. Just
3042 break links. All freeing should be done in the dtor instead,
3043 which most of the various ::Dispose methods have been renamed to.
3044 Also, don't call Dispose in the MoonlightObject dtor. Lastly,
3045 rename Dispose to Invalidate so we don't again mistake what it
3048 2008-04-03 Larry Ewing <lewing@novell.com>
3050 (PluginXamlLoader::TryLoad): if the parser has an unknown error
3051 code try the managed loader.
3053 2008-04-03 Larry Ewing <lewing@novell.com>
3055 * plugin.cpp (PluginXamlLoader::TryLoad): if we get a parser while
3056 loading set attach to a NULL toplevel.
3058 2008-04-02 Larry Ewing <lewing@novell.com>
3060 * plugin-class.cpp: check number of arguments on getHost throw the
3061 appropriate exception if there are arguments.
3063 2008-04-02 Larry Ewing <lewing@novell.com>
3065 * plugin-class.cpp: make sure the event name is valid when adding
3066 or removing, throw an exception if not.
3068 2008-04-02 Larry Ewing <lewing@novell.com>
3070 * plugin-class.cpp: start making the exceptions match the ms
3071 exceptions. Work around the id string until more is known about
3072 how we should deal with it.
3074 2008-04-02 Jeffrey Stedfast <fejj@novell.com>
3076 Fixes bug #375277 and maybe other crashers.
3078 * plugin-class.h (MoonlightScriptControlObject::.ctor): Initialize
3079 settings->control and content->control to 'this'.
3080 (MoonlightSettingsObject): Now has a pointer to its owning
3081 MoonlightScriptControlObject so we can protect against Firefox's
3082 aggressive destruction of still-referenced objects when you
3083 navigate away from a Moonlight page and/or close the browser when
3084 a scriptable object is still referenced. Yay Firefox!
3085 (MoonlightContentObject): Same.
3087 * plugin-class.cpp (MoonlightScriptControlObject::Dispose): Set
3088 settings->control to NULL before unreffing the settings
3089 NPObject. Same with content->control.
3090 (MoonlightContentObject::Dispose): If we have a pointer to our
3091 parent control, set control->content to NULL here.
3092 (MoonlightSettingsObject::Dispose): Same as
3093 MoonlightContentObject::Dispose().
3094 (MoonlightEventObjectObject::SetEventObject): Removed, just to be
3095 sure we never reuse these objects.
3096 (EventObjectCreateWrapper): Implement the equivalent of
3097 SetEventObject() here instead, since this is the only place that
3098 should EVER be calling it. Also makes it a lot simpler.
3100 2008-04-02 Larry Ewing <lewing@novell.com>
3102 * plugin-class.cpp: charposition not charnumber.
3104 2008-04-01 Chris Toshok <toshok@ximian.com>
3106 * plugin-class.cpp (MoonlightContentObject::Invoke): back out my
3107 SetSurface() stuff from here.
3109 2008-04-01 Jeffrey Stedfast <fejj@novell.com>
3111 * plugin-class.cpp: Implemented better type-checking. Fixes the
3112 crash mentioned in bug #375921.
3114 2008-04-01 Chris Toshok <toshok@ximian.com>
3116 * plugin-class.cpp (MoonlightContentObject::Invoke): in
3117 createFromXaml/createFromXamlDownloader, call dep->SetSurface()
3118 after we parse to make sure the thing knows what surface it
3121 2008-04-01 Jeffrey Stedfast <fejj@novell.com>
3123 * plugin-class.cpp (MoonlightContentObject::Invoke): Properly
3124 nul-terminate the text value.
3125 (MoonlightDownloaderObject::Invoke): Properly nul-terminate the
3126 text value returned here too.
3128 2008-04-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3130 * plugin-class.cpp: Remove Type::NPOBJ, it's not needed.
3132 2008-03-31 Jeffrey Stedfast <fejj@novell.com>
3134 * plugin-class.cpp (moonlight_downloader_mapping): Got rid of
3135 second ResponseText item.
3136 (MoonlightDownloaderObject::GetProperty): nul-terminate the value
3137 gotten from downloader->GetResponseText() as javascript will use
3138 this string expecting that it is nul-terminated.
3140 2008-04-01 Fernando Herrera <fherrera@novell.com>
3143 * plugin-downloader.h: Support for live streams (not seekable).
3145 2008-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3147 * browser-mmsh.cpp: asf_header_parse: Use ASFParser::GetPacketSize instead
3148 of looking in internal fields. Delete parser and unref the source when
3151 2008-03-28 Fernando Herrera <fherrera@novell.com>
3155 * plugin-downloader.cpp:
3156 * plugin-downloader.h: Implement server seeking on the mms://
3159 2008-03-26 Andrew Jorgensen <ajorgensen@novell.com>
3161 * mono.cpp: Get correct path for moonlight.exe as well when
3162 enable-user-plugin=yes
3164 2008-03-26 Chris Toshok <toshok@ximian.com>
3166 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
3167 implement removeEventListener for named callbacks using the new
3168 EventObject::RemoveMatchingHandlers method, and a helper
3169 class (NamedProxyPredicate).
3171 * plugin-class.h: we need to make
3172 EventListenerProxy::proxy_listener_to_javascript public so
3173 NamedProxyPredicate can access it.
3175 2008-03-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3177 * browser-mmsh.cpp: Updated according to API changes.
3179 2008-03-25 Andrew Jorgensen <ajorgensen@novell.com>
3181 * plugin-proxy.cpp: Load libraries relative to the location of
3182 libmoonloader.so if enable-user-plugin=yes
3183 * install.rdf.in: Basic install.rdf for plugin installation
3184 * Makefile.am: Create directory structure for RDF install method
3185 rather than XPInstall JS method
3187 2008-03-20 Jeffrey Stedfast <fejj@novell.com>
3189 * plugin-class.cpp (MoonlightContentObject::Invoke): Same.
3191 * plugin-downloader.cpp (p_downloader_mmsh_finished): Updated for
3192 Downloader API changes.
3194 2008-03-18 Andrew Jorgensen <ajorgensen@novell.com>
3196 * plugin-proxy.cpp: Push conditional swscale into user plugin code
3197 and remove avformat dependency
3198 * Makefile.am: Conditionally include swscale and don't include avformat
3199 in user plugin installer
3201 2008-03-17 Larry Ewing <lewing@novell.com>
3203 * plugin-class.cpp: more rough argument sanity checks.
3205 2008-03-17 Larry Ewing <lewing@novell.com>
3207 * plugin.cpp (PluginXamlLoader::TryLoad): add a quick check to
3208 avoid a crash. Better error handling on the way.
3210 * plugin-class.cpp (MoonlightCollectionObject::Invoke): do some
3211 very basic argument type checking.
3213 2008-03-16 Larry Ewing <lewing@novell.com>
3215 * plugin-class.cpp: make objects chain up to their parent class
3216 rather than simply returning false directly to make the logic
3217 clearer and to allow toplevel handling of tostring.
3219 2008-03-14 Larry Ewing <lewing@novell.com>
3221 * plugin-class.h, plugin-class.cpp: wrap all EventArg subclasses
3222 as dependencyobjects.
3224 * plugin.cpp: connect to the plugin onerror event.
3226 2008-03-14 Chris Toshok <toshok@ximian.com>
3228 * plugin-class.h, plugin-class.cpp: wrapped TimeSpan and Duration
3229 objects aren't actually values. they're references to the
3230 particular DependencyObject/Property we got them from, so doing
3233 var foo = storyboard.Duration; foo.seconds=5;
3235 updates the original storyboard's Duration property, not just the
3236 duration contained in the "foo" variable.
3238 2008-03-13 Chris Toshok <toshok@ximian.com>
3240 * plugin-class.cpp, plugin-class.h: fix up our toString support.
3242 Thu Mar 13 23:13:59 CET 2008 Paolo Molaro <lupus@ximian.com>
3244 * Makefile.am: don't overwrite binary files when installing the
3245 plugin (avoids crashes in the running browser).
3247 2008-03-13 Chris Toshok <toshok@ximian.com>
3249 * plugin-entry.cpp: fix backward compatibility of the plugin api.
3250 also, use the NPVERS_ defines for feature tests instead of our own
3251 set. Also, add NPN_Enumerate.
3253 2008-03-13 Andrew Jorgensen <ajorgensen@novell.com>
3255 * install.js.in: Change the install path so that the plugin
3256 should work in debian (iceweasel)
3258 2008-03-13 Chris Toshok <toshok@ximian.com>
3260 * moz-sdk/*: import the trunk firefox plugin headers.
3262 * plugin.cpp (PluginInstance::Initialize): fix the hack I needed
3263 due to xulrunner-1.8.10 headers not having NPNVSupportsWindowless.
3265 * plugin-class.h, plugin-class.cpp (MoonlightObjectType): add
3266 Enumerate, which just iterates over the mapping filling in the
3269 * Makefile.am: add dist-hook to copy the moz-sdk headers.
3271 * mono.cpp (vm_init): missed this STACK_DEBUG -> DEBUG change.
3273 2008-03-12 Sebastien Pouliot <sebastien@ximian.com>
3275 * plugin-downloader.cpp: Fix duplicate g_strdup on pd->uri.
3277 2008-03-12 Michael Dominic K. <mdk@mdk.am>
3279 * plugin-downloader.cpp: Adding an extra NULL check. Fixes the
3280 flowers-for-you.com.my website.
3282 2008-03-12 Miguel de Icaza <miguel@novell.com>
3284 * browser-mmsh.cpp (AsyncBrowserMmshResponse::MmsMetadataParse):
3285 Rewrote this routine to have a regular parser instead of splitting
3286 strings with g_strsplit, copes with commas inside metadata.
3288 Fernando mentioned that most of this code is no longer useful,
3289 except for a few flags.
3291 2008-03-11 Fernando Herrera <fherrera@novell.com>
3295 * plugin-downloader.cpp: Parse MMS Metadata packet. Get file size and
3296 asf_packet_size from the ASF header.
3298 2008-03-10 Michael Dominic K. <mdk@mdk.am>
3300 * plugin-class.cpp: Don't scream about the unsupported type when
3301 setting a property to NULL. Instead, pass NULL and let the
3302 SetValue do it's thing (ie. nullable handling). This fixes the
3303 Animation_CornerCases.htm.
3305 2008-03-08 Geoff Norton <gnorton@novell.com>
3307 * plugin.cpp: I suppose I'm one of these for real now.
3309 2008-03-08 Fernando Herrera <fherrera@novell.com>
3313 * plugin-downloader.cpp: Stop properly the mms download.
3315 2008-03-06 Chris Toshok <toshok@ximian.com>
3317 * plugin.cpp (PluginInstance::Initialize): make sure we look for
3318 the right framerate property name. the JS is specified using
3319 "framerate", but the plugin has to recognize "maxFramerate"
3321 (PluginInstance::CreateWindow): use the surface's timemanager.
3322 (PluginInstance::setMaxFrameRate): same.
3324 2008-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
3326 * plugin-class.cpp, plugin-class.h: Make our Moonlight*EventArgs mirror the
3327 runtime *EventArgs Updated runtime event handling to receive an
3328 EventArgs* calldata instead of a gpointer. This allows us to create the
3329 correct Moonlight*EventArgs based on the actual type of the runtime
3330 *EventArgs, instead of making a decision based on the event name,
3331 obsoleting all the *_event_wrapper functions.
3332 * plugin-glue.cpp: Set the pdata field of the instance to NULL before
3333 deleting the plugin, this allows us to detect plugin usage during plugin
3334 destruction (we might cause destruction of EventObjects -> events are
3335 raised -> plugin tries to send those events to js -> crash)
3337 2008-03-05 Michael Dominic K. <mdk@mdk.am>
3339 * plugin-class.cpp: Making the plugin class use the new enum<->str code
3342 2008-03-03 Chris Toshok <toshok@ximian.com>
3344 * plugin.cpp (PluginInstance::EventHandle): add
3345 KeyPress/KeyRelease handling. there are some XXX's involing the
3346 call to gdk_keymap_translate_keyboard_state, but I have no test
3347 case at present to test this stuff against. Use at your own risk.
3349 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3351 * plugin-downloader.cpp: Don't call dl->NotifySize with the partial size of
3352 the file, should only be called with the final size of the file.
3354 2008-02-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
3356 * plugin.mdp: Updated.
3358 2008-02-28 Jeffrey Stedfast <fejj@novell.com>
3360 * browser-mmsh.cpp (AsyncBrowserMmshResponse::OnDataAvailable):
3361 'size' needs to be a uint32 so that the comparison is between 2
3362 uint32's rather than a uint32 and an int32.
3364 * browser-mmsh.h (class AsyncBrowserMmshResponse): Fixed a
3367 2008-02-28 Michael Dominic K. <mdk@mdk.am>
3369 * plugin/plugin-class.cpp: When getting property value try to resolve it
3370 to string if it's an enum. This way from js we ie. get:
3372 Arc.SweepDirection == "Counterclockwise"
3376 Arc.SweepDirection == 0 (enum int value).
3378 Fixes finally the OM_RemoveClearRemoveAt.htm test (with other collection
3381 2008-02-28 Fernando Herrera <fherrera@novell.com>
3386 * plugin-downloader.cpp:
3387 * plugin-downloader.h: Add initial mms over http support.
3389 2008-02-26 Chris Toshok <toshok@ximian.com>
3391 * plugin.cpp (PluginInstance::EventHandle): fix some x64 build
3393 (PluginInstance::InvalidateSurface): same.
3395 2008-02-26 Chris Toshok <toshok@ximian.com>
3397 * plugin-proxy.cpp: use RTLD_LAZY, not RTLD_NOW.
3399 * moonlight.h: more #include hackery to get the right members to
3400 be there for NPSetWindowCallbackStruct on X.
3402 * plugin.h (class PluginInstance): add our
3403 RenderSurface/InvalidateSurface methods.
3405 * plugin.cpp (PluginInstance::Initialize): initialize the
3406 windowless stuff if we need it and the browser supports it.
3407 (PluginInstance::RenderSurface): our render method - call
3409 (PluginInstance::InvalidateSurface): our invalidate method - call
3411 (PluginInstance::CreateWindow): set our invalidate/render funcs
3412 accordingly, and SetTrans on the surface (err, why?) if we're
3413 windowless, and only do the widget stuff if we aren't windowless.
3414 (PluginInstance::EventHandle): kind of gross, but fill in enough
3415 of the gdk events to fool the surface machinery. Currently
3416 missing are all key events, GdkDevice support for mouse events,
3417 and Expose event aggregation.
3419 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3421 * plugin/plugin-class.cpp: Throw js exception when object passed to
3422 Collection.Remove is NULL (instead of returning false). Fixes mostly
3423 OM_RemoveClearRemoveAt but still fails because of ArcSweep problem.
3425 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3427 * plugin/plugin-class.cpp: Throw js exception when Collection.Insert
3430 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3432 * plugin/plugin-class.cpp: Throw js exception when Collection.Add returns
3435 2008-02-26 Michael Dominic K. <mdk@mdk.am>
3437 * plugin/plugin-class.cpp: Properly return int instead of void for
3440 2008-02-25 Chris Toshok <toshok@ximian.com>
3442 * plugin.cpp (PluginInstance::CreateWindow): use GetWidget instead
3445 2008-02-25 Chris Toshok <toshok@ximian.com>
3447 * plugin.cpp: add windowless creation stuff. move some code
3448 around, and put some in (!windowless) blocks.
3450 * plugin-entry.cpp (NP_Initialize): set handleEvent.
3452 * plugin-glue.cpp (NPP_GetValue): don't handle NeedsXEmbed here -
3453 let PluginInstance::GetValue do it.
3455 2008-02-22 Jackson Harper <jackson@ximian.com>
3457 * plugin-debug.cpp: mkdir and friends needs sys/stat.h on some
3460 2008-02-22 Michael Dominic K. <mdk@mdk.am>
3462 * plugin/plugin.cpp:
3463 * plugin/plugin.h: Add support for the cache-size reporting interface. The
3464 UI now reports cache size when running with
3465 MOONLIGHT_OVERRIDES="cache=show".
3467 2008-02-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3469 * plugin-class.cpp: Add a null check.
3470 * plugin-debug.cpp: Add a Save button to the Sources list, which will save
3471 every source file to a directory in /tmp.
3473 2008-02-21 Michael Dominic K. <mdk@mdk.am>
3475 * plugin/plugin.cpp: Small fix for table ("Properties") formatting so that
3476 it doesn't expand like crazy because of long URL's in sources.
3478 2008-02-20 Jeffrey Stedfast <fejj@novell.com>
3480 * plugin-class.cpp (MoonlightTextBlockObject::Invoke): The
3481 downloader argument is allowed to be null.
3483 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3485 * plugin.cpp, plugin.h, plugin-debug.cpp, plugin-debug.h: Add a 'Sources'
3486 entry to the plugin context menu, shows a list of all the files the
3487 plugin has loaded, with the ability to open the files.
3489 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3491 * plugin.mdp: Updated.
3493 2008-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
3495 * plugin-class.cpp: Fix IsVersionSupported according to tests.
3497 2008-02-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
3499 * plugin.cpp, plugin-class.cpp, plugin.h: Add MaxFrameRate to the properties
3500 page, and parse windowless and framerate properties during
3501 initialization and store the values on the plugin instance, so that the
3502 property page can show the correct values.
3504 2008-02-15 Chris Toshok <toshok@ximian.com>
3506 * plugin-class.cpp (MoonlightStoryboardObject::Invoke): the seek
3507 method can take either an integer or a string representing a
3508 timespan. Fixes the JS errors I mentioned in bug #362380.
3510 2008-02-06 Jackson Harper <jackson@ximian.com>
3512 * plugin-class.cpp|h: Store all MoonlightDependencyObject classes
3513 in an array so that we can easily check if a type passed in from
3514 JS is actually a DO.
3515 - Add one check to verify that an object is a DO, I am sure we
3516 will need many more.
3518 2008-02-06 Fernando Herrera <fherrera@novell.com>
3520 * plugin-debug.cpp: set default size and scroll bars policy in the
3523 2008-02-05 Chris Toshok <toshok@ximian.com>
3525 * plugin.h, plugin.cpp: add a label to the properties dialog that
3526 shows the fps message.
3528 * plugin-debug.cpp (selection_changed): invalidate a large enough
3529 rectangle so that the selection disappears.
3531 2008-02-05 Chris Toshok <toshok@ximian.com>
3533 * Makefile.am (libmoonplugin_la_SOURCES): add plugin-debug.h/cpp
3535 * plugin-debug.h, plugin.cpp: for now, just a gtk treeview with a
3536 snapshot of the xaml hierarchy. selecting an item in the tree
3537 puts a rectangle around the element in the plugin.
3539 * plugin.cpp (plugin_show_menu): if debug is enabled, add the
3542 2008-02-05 Chris Toshok <toshok@ximian.com>
3544 * moonlight.h: don't #define DEBUG here. it's a config.h deal.
3546 2008-02-04 Jackson Harper <jackson@ximian.com>
3548 * plugin-class.cpp: Fix some of the parameter checking to match
3551 2008-01-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
3553 * plugin-class.cpp, plugin-class.h: Implement toString method on
3554 MarkerReachedEventArgsObject.
3556 2008-01-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
3558 * plugin-class.cpp: Handle the case where js sets Timespan seconds using an
3561 2008-01-28 Andrew Jorgensen <ajorgensen@novell.com>
3563 * Makefile.am: added plugin-downloader.h to dist
3565 2008-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
3567 * downloader.cpp, plugin-downloader.cpp, plugin-downloader.h: Renamed
3568 downloader.cpp to plugin-downloader.cpp and added a header file for it.
3569 Set downloader_shutdown to false upon initialization, makes aborting
3570 actually work. Save the PluginDownloader in the stream, so that we can
3571 inform the PluginDownloader when the stream is destroyed.
3572 * plugin.mdp, Makefile.am: Updated.
3573 * plugin.cpp: Include plugin-downloader.h and remove unnecessary method
3574 declarations. Inform the PluginDownloader when a stream is destroyed.
3575 * plugin-glue.cpp: Include plugin-downloader.h and remove unnecessary method
3578 2008-01-23 Chris Toshok <toshok@ximian.com>
3580 * plugin-class.cpp (EventListenerProxy::AddHandler): use the event
3581 id instead of the name for the destroyed event, and also don't try
3582 to add an event that doesn't exist for a given type.
3584 2008-10-11 Andrew Jorgensen <ajorgensen@novell.com>
3586 * plugin-proxy.cpp: Add conditionals for ffmpeg inclusion
3587 * Makefile.am: Respect ffmpeg inclusion in xpi install
3589 2008-01-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
3591 * plugin.mdp: Added.
3593 2008-01-09 Chris Toshok <toshok@ximian.com>
3595 * plugin-class.h, plugin-class.cpp: add two new wrapper types -
3596 one for StrokeCollection and the other for Stroke, so that both of
3597 them can implement their GetBounds and HitTest methods.
3599 2008-01-09 Chris Toshok <toshok@ximian.com>
3601 * plugin-class.h, plugin-class.cpp: a few changes with the
3602 MoonlightMouseEventArgsObject. It now wraps a MouseEventArgs*.
3603 Translate all the property accesses and method calls into
3604 accesses/calls on the actual MouseEventArgs, instead of having the
3605 code live here. Also, add STYLUSINFO handling to the
3606 EventObjectWrapper method.
3608 2008-01-09 Jeffrey Stedfast <fejj@novell.com>
3610 * plugin.cpp (Initialize): Use g_ascii_strcasecmp() so that we are
3611 not locale dependent.
3613 2008-01-04 Jeffrey Stedfast <fejj@novell.com>
3617 * plugin-class.cpp (EventListenerProxy::AddHandler): Add a handler
3618 for the destroyed event too so that we can clear our target_object
3620 (EventListenerProxy::on_target_object_destroyed): New callback to
3621 clear the target_object pointer when it gets destroyed.
3622 (EventListenerProxy::get_wrapper_for_event_name): Use
3623 g_ascii_strcasecmp() instead of g_strcasecmp().
3624 (EventListenerProxy::~EventProxyListener): Disconnect from the
3625 destroyed event and the other event if still hooked up.
3627 2008-01-03 Jeffrey Stedfast <fejj@novell.com>
3629 * plugin-class.cpp (_set_dependency_property_value): For
3630 non-object variants, we can easily get away with using a static
3631 string buffer rather than using dynamically allocated strings to
3632 hold our temp values.
3634 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3636 * plugin.cpp: PluginInstance::SetSource: don't check if we're setting the
3637 same source. Fixes #349592.
3639 2007-12-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3641 * plugin-class.cpp: Don't crash if surface->GetTopLevel returns null. Fixes
3644 2007-12-20 Sebastien Pouliot <sebastien@ximian.com>
3646 * plugin-class.cpp|h: Add support for StylusPointCollection since
3647 it's a special case where a new method, AddStylusPoints, is
3648 introduced. Fix unit tests for StylusPointCollection but doesn't
3649 solve bugs #349596 and 349598 because we don't capture the mouse
3652 2007-12-20 Jb Evain <jbevain@novell.com>
3654 * plugin-class.cpp (MoonId_GetStylusPoints): return an
3655 empty StylusPointCollection instead of doing non-sense.
3657 2007-12-20 Jb Evain <jbevain@novell.com>
3659 * plugin-class.cpp: throw if createObject is called
3660 for something else than Downloader.
3662 2007-12-18 Sebastien Pouliot <sebastien@ximian.com>
3664 * plugin-class.cpp: The plugin handle Color as an integer (see js
3667 2007-12-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
3669 * plugin-class.cpp: The part parameter of MediaElement::SetSource is the
3670 second parameter, fixes a crash when js calls SetSource. Also removed
3673 2007-12-17 Jb Evain <jbevain@novell.com>
3675 * plugin-class.cpp: return null instead of undefined
3676 on GetValue is the value is NULL. Fixes a lot of tests
3679 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
3681 * plugin.cpp (PluginInstance::CreateWindow): Set the FPS report
3683 (PluginInstance::Properties): Added FPS enable/disable properties.
3684 (PluginInstance::ReportFPS): Report the FPS via the browser's
3687 2007-12-14 Jeffrey Stedfast <fejj@novell.com>
3689 * downloader.cpp (p_downloader_abort): Set pd->stream to NULL
3690 after destroying it.
3692 * plugin.cpp (PluginInstance::TryLoad): Added a comment that we
3693 should check for errors returned by NPN_GetURLNotify().
3694 (PluginInstance::UpdateSource): Same.
3695 (PluginInstance::UrlNotify): Removed a printf.
3697 2007-12-12 Jeffrey Stedfast <fejj@novell.com>
3699 Fixes toward bug #341853
3701 * downloader.cpp (p_downloader_send): Check the return code from
3702 NPN_GetURLNotify() as it will give us an error if the file doesn't
3705 * plugin.cpp (UrlNotify): Call Downloader::NotifyFailed() on
3708 2007-12-10 Chris Toshok <toshok@ximian.com>
3710 * plugin-class.h, plugin-class.cpp: more event changes. return
3711 the integer token for adding a handler, and change
3712 removeEventListener to accept either a string (unsupported at the
3713 moment) or integer second argument. This allows things like
3714 removeEventListener (..., 0) for removing the event handler that's
3717 Also, remove MoonlightEventListener{Type,Object} since we don't
3718 need to return a wrapped object from addEventListener any longer.
3720 2007-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
3722 * plugin-class.cpp: Plug more leaks.
3724 2007-12-06 Jeffrey Stedfast <fejj@novell.com>
3726 * plugin-class.cpp (MoonlightCollectionObject::Invoke):
3727 Implemented GetItemByName for MediaAttributeCollections.
3729 2007-12-06 Chris Toshok <toshok@ximian.com>
3731 * plugin-class.h, plugin-class.cpp: a few changes. abstract out
3732 all the event-as-property code, so we just add events to objects
3733 as additional properties in their mapping, and the MoonlightObject
3734 code handles it all for us.
3736 2007-12-05 Chris Toshok <toshok@ximian.com>
3738 * plugin-class.cpp (MoonlightDependencyObjectObject::Invoke):
3741 2007-12-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
3743 * plugin-class.cpp: Rename DependencyObject::parent/SetParent/GetParent
3745 to logical_parent/SetLogicalParent/GetLogicalParent.
3747 2007-12-04 Jb Evain <jbevain@novell.com>
3749 * plugin-class.h: add the definitions of MoonlightStylusInfoType
3750 and MoonlightStylusInfoObject.
3752 * plugin-class.cpp: implement MoonlightStylusInfoType and
3753 MoonlightStylusInfoObject. Add getStylusInfo() and getStylusPoints()
3754 methods on MouseEventArgs.
3756 2007-12-04 Jackson Harper <jackson@ximian.com>
3758 * plugin-class.cpp: Map in IsLoaded, so HasProperty will return
3761 2007-12-03 Jeffrey Stedfast <fejj@novell.com>
3763 * plugin.cpp (Properties): Added more runtime debug options.
3765 2007-11-29 Jeffrey Stedfast <fejj@novell.com>
3767 * plugin.cpp (PluginInstance::Properties): Added runtime ability
3768 to enable show-expose regions.
3770 2007-11-20 Jb Evain <jbevain@novell.com>
3772 * plugin-class.cpp: rename INVOKE_EXCEPTION to
3773 THROW_JS_EXCEPTION. Throw more exceptions where needed.
3775 2007-11-20 Jb Evain <jbevain@novell.com>
3777 * plugin-class.cpp: throw JS exceptions where SL does.
3779 2007-11-20 Jb Evain <jbevain@novell.com>
3781 * plugin-class.cpp( MoonlightContentObject::Invoke):
3782 return null instead of undefined, like SL 1.0 does.
3784 2007-11-20 Jb Evain <jbevain@novell.com>
3786 * plugin-class.h (html_get_element_text): add a function
3787 to get the `innerText` of an html element from its id.
3788 * plugin-class.cpp (html_get_element_text): implement it.
3789 * plugin.cpp (PluginInstance::UpdateSourceByReference):
3790 use html_get_element_text to get the inline xaml.
3793 2007-11-16 Chris Toshok <toshok@ximian.com>
3795 * plugin-class.cpp, plugin-class.h: switch
3796 hasProperty,getProperty,setProperty,hasMethod,invoke to object
3797 methods instead of vtable entries on the type. Also, put the
3798 name->id mapping in MoonlightObject's vtable entries, before the
3799 call to the virtual object methods (so now we only do name lookups
3800 there instead of all over the place) Also, aggregate mappings for
3801 all classes up to the root in the hierarchy when we initialize the
3802 type. This means only 1 bsearch per LookupName, instead of 1 per
3805 2007-11-15 Jeffrey Stedfast <fejj@novell.com>
3807 * plugin-class.cpp: Alphabetize all of the mapping tables so that
3808 bsearch works properly.
3810 2007-11-14 Chris Toshok <toshok@ximian.com>
3812 * plugin-class.h, plugin-class.cpp: substantially rework the way
3813 names are looked up. remove 90% of the has_method/has_property
3814 code, and move all the invoke/get_property/set_property to using
3815 id's for their work instead of string comparisons. also make the
3816 string lookups case insensitive. I don't much like the way
3817 chaining is done (check out MoonlightObjectType::SetBase and
3818 MoonlightObjectType::LookupName), but it's working for now, and
3819 should be substantially faster (and easier to maintain) this way
3820 than the naive conversion to case insensitivity.
3822 2007-11-14 Jeffrey Stedfast <fejj@novell.com>
3824 Fixes for the Matrix demo.
3826 * plugin-class.cpp (EventListenerProxy): Don't leak the NPObject.
3827 (proxy_listener_to_javascript): Updated printf debugging.
3828 (moonlight_content_invoke): Use the second argument
3829 (create_namescope) and pass that along to xaml_create_from_str().
3831 2007-11-14 Andrew Jorgensen <ajorgensen@novell.com>
3833 * Makefile.am: strip the ffmpeg libs for the user plugin but do not
3834 strip libmoon and libmono, will either add an option to strip those libs
3835 later or just make that part of the release process.
3836 * install.js.in: Cleaned up error handling and added a call to
3837 refreshPlugins(), should make it so nobody has to restart firefox
3839 2007-11-13 Andrew Jorgensen <ajorgensen@novell.com>
3841 * Makefile.am: Use the mono_ddldir rather than assuming /usr/lib and
3842 pick up any dlls in the gac that are for the 2.1 profile so that we
3843 don't miss any that should have been symlinked in /usr/lib/mono/2.1 but
3844 for some reason were not.
3846 2007-11-12 Andrew Jorgensen <ajorgensen@novell.com>
3848 * Makefile.am: Add moon.config to EXTRA_DIST
3850 2007-11-12 Andrew Jorgensen <ajorgensen@novell.com>
3852 * install.js.in: Just add moonlight directory, not individual files.
3853 * mono.cpp: Get moonlight.exe from home dir plugin path.
3854 * plugin-proxy.cpp: dlopen libmono and set it's dirs.
3855 * Makefile.am: Build out the full directory structure for the user
3856 plugin and zip that.
3857 * moon.config: Installed as $sysconfdir/mono/config to tell mono to
3858 use the already dlopened libmoon.so.
3860 2007-11-09 Sebastien Pouliot <sebastien@ximian.com>
3862 * plugin.cpp: Fix Moonlight URL (#339929) since it didn't work.
3864 2007-11-09 Jb Evain <jbevain@novell.com>
3866 * browser-http.cpp|h: make browser_http_request_get_async_response
3870 2007-11-08 Miguel de Icaza <miguel@novell.com>
3872 * plugin.cpp (PluginInstance::Properties): Spice this bad boy up.
3873 We now can get some info about a XAML surface.
3875 2007-11-08 Jeffrey Stedfast <fejj@novell.com>
3877 * plugin.cpp (plugin_instance_get_surface): New function needed by
3879 (TryLoad): Removed an unnecessary g_assert() (the code handles the
3880 error case properly).
3882 2007-11-07 Jb Evain <jbevain@novell.com>
3884 * browser-http.cpp|h: implement a GetStatus method for
3885 BrowserHttpResponse.
3887 2007-11-06 Miguel de Icaza <miguel@novell.com>
3889 * plugin.cpp (string_to_js): rename from escape_quotes, this helps
3890 because some error messages being thrown from managed code contain
3891 newlines (Sudoku, see #325336).
3893 2007-11-05 Chris Toshok <toshok@ximian.com>
3895 * plugin-class.cpp (moonlight_content_invoke): don't crash if the
3896 surface hasn't been attached (if we haven't finished loading the
3899 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3901 * plugin.cpp: Replace PLUGIN_OURVERSION with VERSION (from config.h)
3902 * moonlight.h: Put the version in the description string for the sake
3905 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3907 * install.js.in: Get the version and the target CPU from configure and
3908 do some error checking, including checking that the platform matches
3910 2007-11-01 Andrew Jorgensen <ajorgensen@novell.com>
3912 * Makefile.am: Apparently $(builddir) is a newer autotools feature not
3913 available on SuSE 10.1 so we'll just not use it.
3915 2007-11-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
3917 * downloader.cpp: Don't keep a ref to the Downloader, it causes a circular
3920 2007-10-31 Andrew Jorgensen <ajorgensen@novell.com>
3922 * Makefile.am: Don't link in cairo, pixman, or anything else that we
3923 don't need to libmoonplugin
3925 2007-10-29 Andrew Jorgensen <ajorgensen@novell.com>
3927 * install.js, plugin-proxy.cpp, Makefile.am: Changes to include ffmpeg
3928 libs in the XPI package
3930 2007-10-27 Jackson Harper <jackson@ximian.com>
3932 * plugin-class.cpp: Make onError work.
3934 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3936 * plugin-class.cpp, plugin-class.h: Implement emission of MarkerReached
3939 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3941 * mono.cpp: Enable vm stacktraces after mono has been loaded.
3943 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3945 * downloader.cpp: Ref/unref the downloader.
3947 2007-10-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
3949 * plugin-class.h: NULL-initialize a variable, fixing a crash.
3951 2007-10-25 Jackson Harper <jackson@ximian.com>
3954 * plugin-class.cpp: Add the onError event to the content object.
3956 2007-10-25 Jackson Harper <jackson@ximian.com>
3958 * plugin-class.cpp: Fix function name.
3960 2007-10-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
3962 * plugin-class.cpp: Unref the event object even though the plugin is
3965 2007-10-24 Jb Evain <jbevain@novell.com>
3967 * browser-http.cpp|h: work on asynchronous requests.
3969 2007-10-23 Andrew Jorgensen <ajorgensen@novell.com>
3971 * install.js: Install the libraries under ~/.mozilla/plugins/moonlight
3972 so that they are not loaded by mozilla
3973 * moonlight.h: Don't define PLUGIN_INSTALL unless it is not defined
3974 * plugin-proxy.cpp: dlopen libmoon.so from the user's
3975 plugins/moonlight directory if we are building the user plugin
3976 * Makefile.am: Use the PLUGIN_INSTALL flag to control building of the
3979 2007-10-23 Jb Evain <jbevain@novell.com>
3981 * browser-http.cpp|h: Add support for Abort and SetBody.
3983 2007-10-22 Jb Evain <jbevain@novell.com>
3985 * browser-http.cpp: add browser_http_response_destroy and
3986 browser_http_sync_response_read.
3988 2007-10-22 Jb Evain <jbevain@novell.com>
3990 * browser-http.cpp|h (SyncBrowserHttpRequest::Read):
3991 do read the entire input stream even if it's a buffered
3994 2007-10-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
3996 * plugin-class.cpp: If we're leaking NPObjects make sure we don't crash in
3997 invalidate, since FF will call invalidate long after shutting down
4000 2007-10-21 Jb Evain <jbevain@novell.com>
4002 * browser-http.cpp|h: add the files where the unmanaged
4003 implementation of BrowserHttpRequest will live.
4005 * Makefile.am: add them to the build.
4007 2007-10-18 Chris Toshok <toshok@ximian.com>
4009 * plugin-class.cpp (moonlight_dependency_object_invoke): make the
4010 debug "printf" method its own method, instead of a hack on
4012 (MoonlightEventObjectObject::Dispose): remove the wrapped object
4014 (MoonlightEventObjectObject::SetEventObject): update the cache.
4015 (EventObjectCreateWrapper): check the cache before creating a new
4018 * debug.js: convert from
4019 printf_proxy.setValue ("printf", message);
4021 printf_proxy.printf (message);
4023 * plugin.cpp, plugin.h: add {Add,Remove,Lookup}WrappedObject
4024 methods to cache the JS objects we use for a given EventObject*.
4026 2007-10-17 Chris Toshok <toshok@ximian.com>
4028 * plugin.cpp (PluginXamlLoader::TryLoad): use ->Attach instead of
4029 surface_attach, and add a comment about element->unref().
4031 2007-10-16 Jb Evain <jbevain@novell.com>
4033 * plugin.cpp: add plugin_instance_get_browser_runtime_settings.
4035 2007-10-16 Jb Evain <jbevain@novell.com>
4037 * moonlight.cs: Keep track of all plugin unload callbacks.
4038 Don't use Hashtable and refactor some code.
4040 2007-10-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
4042 * plugin.cpp, plugin-proxy.cpp: Remove some const char/char mismatch
4044 * plugin-glue.cpp: Fix some const char/char mismatch warnings.
4046 2007-10-10 Chris Toshok <toshok@ximian.com>
4048 * plugin-class.cpp (EventListenerProxy::~EventListenerProxy):
4049 don't NPN_ReleaseObject the callback. the browser does this for
4052 2007-10-10 Rolf Bjarne Kvinge <RKvinge@novell.com>
4054 * plugin.cpp: Fix e-mail.
4056 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4058 * Makefile.am: Can't use the -MM (fail if patterns not matched) because it
4061 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4063 * Makefile.am: Make zip fail if one of the files is not found
4065 2007-10-09 Andrew Jorgensen <ajorgensen@novell.com>
4067 * Makefile.am: Build the firefox xpi plugin installer (unsigned)
4068 * install.js: First draft install script for xpi
4070 2007-10-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
4072 * TODO: Update, fullScreen is now implemented.
4074 2007-10-08 Rolf Bjarne Kvinge <RKvinge@novell.com>
4076 * plugin.cpp: Set the downloader context of the surface.
4077 * downloader.cpp: Ref/unref the downloader we store. Get the context stored
4078 in the downloader if possible, and use it to get the plugin instance.
4079 * plugin-class.cpp: Use the brand new PluginInstance::CreateDownloader, and
4080 provide xaml loaders for the xaml_create_from* methods.
4081 * plugin.h: Add a CreateDownloader method.
4083 2007-10-04 Zoltan Varga <vargaz@gmail.com>
4085 * plugin.cpp (LoadUrl): New method to download stuff synchronously using the browser.
4086 (plugin_instance_load_url): C wrapper for the above.
4087 (ReportException): Fix a leak.
4089 2007-10-03 Chris Toshok <toshok@ximian.com>
4091 * moonlight.h: need to wrap the renamed symbols in an extern "C"
4094 2007-10-03 Chris Toshok <toshok@ximian.com>
4096 * moonlight.h, plugin-entry.cpp, plugin-proxy.cpp: if we're using
4097 libmoonloader.so, we need to rename the 4 symbols we proxy in
4098 plugin-entry.cpp, and load them up via our mangled names in
4099 plugin-proxy.cpp. This is so mozilla doesn't try to load
4100 libmoonplugin.so as a plugin itself. It should only load
4101 libmoonloader.so. Also, add code in plugin-proxy.cpp to handle
4102 the case where the .so lives in ~/.mozilla/plugins. This requires
4103 #define PLUGIN_INSTALL 1 to be used, so we should figure out how
4104 to build with that when building the XPI.
4106 2007-10-01 Rolf Bjarne Kvinge <RKvinge@novell.com>
4108 * plugin.cpp, plugin.h: Added SetPageURL, updates the Surface' source
4109 location to the url of the current page.
4111 2007-09-30 Zoltan Varga <vargaz@gmail.com>
4113 * plugin.cpp (ReportException): Handle multiple calls correctly.
4115 2007-09-28 Chris Toshok <toshok@ximian.com>
4117 * Makefile.am: wrap moonlight.exe stuff in "if
4118 INCLUDE_MONO_RUNTIME" where necessary.
4120 2007-09-28 Chris Toshok <toshok@ximian.com>
4122 * moonlight.h (INCLUDE_MONO_RUNTIME): remove #define from here.
4123 it's now a configure arg (and the define lives in config.h).
4125 2007-09-28 Zoltan Varga <vargaz@gmail.com>
4127 * plugin.cpp (UrlNotify): Add some debug messages here.
4129 * plugin.cpp (ReportException): New helper function to display exception details
4130 using dynamic html above the plugin frame.
4132 2007-09-27 Jeffrey Stedfast <fejj@novell.com>
4134 * plugin-glue.cpp (NPP_Initialize): Call runtime_init() with
4135 RUNTIME_INIT_BROWSER.
4137 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
4139 * plugin.cpp: Properly release a MoonlightObject.
4141 2007-09-26 Rolf Bjarne Kvinge <RKvinge@novell.com>
4143 * plugin.cpp: PluginInstance::UrlNotify: delete the StreamNotify when we're
4144 done with it. Added plugin_xaml_loader_from_str.
4145 * plugin-class.cpp: moonlight_scriptable_control_invoke: unref the
4146 Downloader we create once the object wrapper has it. Move implementation
4147 of MoonlightEventObjectObject::SetEventObject here.
4148 * plugin.h: StreamNotify: ref the DependencyObject we get, and unref on
4149 destruction. Added plugin_xaml_loader_from_str.
4150 * plugin-class.h: Move implementation of
4151 MoonlightEventObjectObject::SetEventObject to the cpp file.
4153 2007-09-23 Jb Evain <jbevain@novell.com>
4155 * plugin.cpp: Pride sin, add my name to the contributors.
4157 2007-09-22 Rolf Bjarne Kvinge <RKvinge@novell.com>
4159 * plugin.cpp, plugin.h: Add a plugin_unload_callback to PluginInstance, and
4160 call it in the dtor.
4161 * moonlight.cs: Added UnloadDomain: unloads the domain that was loaded for a
4162 specific plugin, and set the corresponding native callback. Keep a hash
4163 table of all created domains so that we know which domain to unload,
4164 Delete some dead code (DisposeXamlLoader, ~Loader, Dispose)
4166 2007-09-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
4168 * plugin.cpp: If an assembly already has been downloaded once, don't try to
4169 reload the xaml (otherwise might cause a loop if loading the xaml failed
4170 due to a reason other than that the assembly wasn't already downloaded).
4171 Added PluginXamlLoader::LoadVM. PluginXamlLoader::TryLoad: don't call
4172 into the vm here, since it might not be loaded yet. Move implementation
4173 of InsertMapping, CreateElement and SetAttribute to XamlLoader.
4174 InitializeLoader: don't create a managed loader if the vm hasn't been
4176 * plugin.h: Move implementation of InsertMapping, CreateElement and
4177 SetAttribute to XamlLoader.
4178 * plugin-class.h: Remove unused function declaration.
4179 * mono.cpp, moon-mono.h: Remove all managed methods except moon_load_xaml,
4180 which sets the methods as callbacks on the xaml loader with delegates
4181 now. Guard against loading the vm twice.
4182 * moonlight.cs: Moved code to agclr, just kept a simple stub here that
4183 creates the new AppDomain.
4184 * plugin-glue.cpp: Don't initialize the vm when the plugin is initialized,
4185 it's initialized on demand.
4187 2007-09-19 Zoltan Varga <vargaz@gmail.com>
4189 * plugin.cpp (plugin_menu_about): Make the close button work on some gtk versions.
4191 2007-09-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
4193 * plugin.cpp: Remove a printf.
4194 * plugin-class.cpp, plugin-class.h: Apparently invalidate isn't always
4195 called for our MoonlightObjects (though deallocate is). Create a Dispose
4196 method that does what invalidate did (and call it from Invalidate), and
4197 keep track if it has been called or not (allows deallocate to call it if
4198 invalidate wasn't called by mozilla). Make Dispose virtual so that the
4199 base deallocator can call it for all derived classes (which also means
4200 that we only need the base invalidate method), and add a virtual
4201 destructor so that the base deallocator can also delete the object (and
4202 remove all other *_deallocator methods). proxy_listener_to_javascript:
4203 release objects at the end of the method.
4205 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4207 * plugin.cpp, plugin.h, moonlight.cs: Move callbacks from PluginXamlLoader
4210 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4212 * downloader.cpp: Removed warning.
4213 * plugin.cpp: Delete the current xaml_loader if we create a new one.
4215 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4219 2007-09-17 Rolf Bjarne Kvinge <RKvinge@novell.com>
4221 [Removed mono dependency for 1.0 moonlight applications.
4222 We now have a native [Plugin]XamlLoader that is the native counterpart of the
4223 managed Loader object, the native loader handles xaml loading when the
4224 mono runtime isn't loaded.]
4226 * plugin.cpp, plugin.h: Added PluginXamlLoader that can forward calls into
4227 the managed loader if the mono runtime is loaded.
4228 * plugin-class.cpp: isVersionSupported: if built without mono runtime
4229 support, we only support 1.0 applications. Update according to API
4231 * moonlight.h, mono.cpp, moon-mono.h: Update according to API change.
4232 * moonlight.cs: Update according to API change. Added Hosting.base_unref and
4233 unref a few objects.
4234 * plugin-glue.cpp: Don't initialize the mono runtime for 1.0 applications.
4236 2007-09-09 Chris Toshok <toshok@ximian.com>
4238 * plugin-class.cpp (moonlight_content_invoke): implement
4239 content.createFromXamlDownloader.
4241 Thu Sep 6 16:19:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
4243 * mono.cpp, moon-mono.h, plugin.cpp, plugin.h: correct use of mono
4244 objects: they can't be stored in unmanaged memory.
4246 Thu Sep 6 15:22:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
4248 * mono.cpp, moon-mono.h: cleanup of some code and localized the mono
4251 2007-09-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
4253 * plugin-class.cpp: Added some special debug code, enabling basic printf
4254 functionality from javascript code. No need to synchronize console
4255 output with firebug output anymore.
4256 * debug.js: Added, a printf function for javascript, specially crafted for
4259 2007-08-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
4261 * plugin.cpp: Get the actual size from the surface.
4263 2007-08-31 Michael Hutchinson <m.j.hutchinson@gmail.com>
4265 * plugin.cpp: Fix pointer cast for 64-bit arch.
4267 2007-08-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
4269 * downloader.cpp: Added downloader_destroy.
4270 * plugin-class.cpp, plugin-class.h: Add plugin_destroy_classes, and remove a
4271 duplicate creation of MoonlightPointClass.
4272 * plugin-glue.cpp: Try shutting down everything correctly, if it can be
4273 shutdown, if not, don't initialize twice (vm and gtk).
4275 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4277 * plugin-class.cpp: Javascript expects the sender of a FullScreenChange
4278 event to be the toplevel canvas, so when the Surface emits this event,
4279 change the sender to the toplevel canvas.
4281 2007-08-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
4283 * plugin.cpp: Don't delete the surface, unref it.
4284 * plugin-class.cpp, plugin-class.h: Create a MoonlightEventObject* and make
4285 MoonlightDependencyObject* inherit from it. Change all event usage to
4286 the new class, enables events for objects that aren't DependencyObjects
4287 (but are EventObjects, such as Surface). Implement FullScreen support in
4288 the plugin. Remove the dob field from MoonlightDependencyObject, the
4289 MoonlightEventObject has an eo field that fits the purpose, and
4290 implement a MoonlightDependencyObject.GetDependencyObject () that does
4291 what dob did earlier (and change all usages).
4293 2007-08-24 Jackson Harper <jackson@ximian.com>
4295 * plugin-class.cpp|h: Add a new EventListenerObject that we can
4296 return from addEventListener.
4297 - Implement removeEventListener.
4299 2007-08-24 Jackson Harper <jackson@ximian.com>
4301 * plugin-class.cpp|h: Now that getPosition works as intended, we
4302 don't need to store the position as an NPObject on the
4304 - Eliminate the variant_to_value so that we don't need to do a
4305 bunch of extra casting.
4307 2007-08-24 Rolf Bjarne Kvinge <RKvinge@novell.com>
4309 * plugin-class.cpp: mouse_event_invoke (getPosition):
4310 use the argument to calculate the position if provided.
4312 2007-08-23 Jackson Harper <jackson@ximian.com>
4314 * plugin-class.cpp: We can now hookup to the resize event.
4316 2007-08-23 Jb Evain <jbevain@novell.com>
4318 * mono.cpp (vm_init): properly initialize the new debugging
4321 2007-08-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
4323 * plugin-class.cpp|h: Duration and TimeSpan's seconds property
4324 is a double, so treat is as such. Add moonlight type information
4325 to MoonlightObject (and derived classes), so that the marshalling
4326 knows how to treat them when they come back from js land.
4327 _set_dependency_property_value: handle values coming from js land
4328 correctly, according to their moonlight type.
4330 2007-08-23 Jb Evain <jbevain@novell.com>
4332 * mono.cpp (vm_init): use new method name to initialize
4335 2007-08-23 Jb Evain <jbevain@novell.com>
4337 * Makefile.am: use -pkg:agmonosilver to reference agmono.dll
4339 2007-08-17 Chris Toshok <toshok@ximian.com>
4341 * plugin-class.cpp|h: add a TimeSpan wrapper object.
4343 2007-08-17 Jb Evain <jbevain@novell.com>
4345 * mono.cpp (vm_init): small refactoring to get MonoMethods.
4347 2007-08-17 Chris Toshok <toshok@ximian.com>
4349 * plugin-class.cpp (moonlight_content_has/get/set_property): stub
4350 the onFullScreenChange property, to just warn us about the
4351 unimplemented functionality.
4353 2007-08-17 Jackson Harper <jackson@ximian.com>
4355 * plugin-class.cpp|h: Add a duration object that is exposed to the
4357 - Fix the value_to_variant to handle durations, rects and points.
4359 2007-08-17 Chris Toshok <toshok@ximian.com>
4361 * plugin-class.cpp (moonlight_dependency_object_invoke): add
4362 toString method for DependencyObjects, which just returns the type
4365 2007-08-17 Jackson Harper <jackson@ximian.com>
4367 * plugin-class.cpp: Properties are allowed to be null, so we still
4368 return true if the value is null.
4370 2007-08-17 Jackson Harper <jackson@ximian.com>
4372 * plugin-class.cpp: Add the Root property to the content
4373 object. This just returns the top element.
4375 2007-08-17 Jb Evain <jbevain@novell.com>
4377 * Makefile.am: use smcs to compile moonlight.exe
4378 * mono.cpp (vm_init): force the use of the moonlight profile
4381 2007-08-16 Jackson Harper <jackson@ximian.com>
4384 * downloader.cpp: Remove my downloader event code, these are
4385 raised elsewhere (they were hidden behind another bug yesterday).
4387 2007-08-16 Jackson Harper <jackson@ximian.com>
4389 * plugin-class.cpp: Fix cut&paste error that was preventing
4390 GetValue from working (get value only needs one arg).
4392 2007-08-16 Jackson Harper <jackson@ximian.com>
4394 * plugin-class.cpp: Add removeAt method to collections.
4396 2007-08-15 Jackson Harper <jackson@ximian.com>
4398 * plugin-class.cpp: Implement ctrl/shift for mouse and keyboard
4399 events. I didn't use a shared base class, because the
4400 duplicated code is significantly less than the boilerplate code
4403 2007-08-15 Jackson Harper <jackson@ximian.com>
4405 * plugin-class.h|cpp: Add support for keyboard arguments in the
4406 keyup/keydown events. TODO: Still need to implement shift and
4407 control, ideally, in a base class for mouse and keyboard events.
4409 2007-08-15 Jackson Harper <jackson@ximian.com>
4412 * downloader.cpp: Raise downloading events.
4414 2007-08-13 Jackson Harper <jackson@ximian.com>
4416 * plugin-class.cpp: findName should only look in the dependency
4419 2007-08-13 Jackson Harper <jackson@ximian.com>
4421 * plugin-class.cpp: For dependency object strings don't return
4422 null, just return an empty string.
4424 2007-08-11 Miguel de Icaza <miguel@novell.com>
4426 * moonlight.cs: Use the new Appdomain helper methods too.
4428 Use Ansi here because we only run on Linux not on
4429 Windows and the Auto API is gone from 2.1
4431 * moonligth.cs: Use the new helper method from agmono instead of
4432 duplicating code here.
4434 2007-08-07 Jackson Harper <jackson@ximian.com>
4436 * moonlight.cs: Add another system library to the do-not-download
4439 2007-08-06 Jackson Harper <jackson@ximian.com>
4441 * plugin-class.cpp: We don't need to explicitly free the value
4442 because the dtor will for us.
4444 2007-08-06 Jackson Harper <jackson@ximian.com>
4446 * plugin-class.cpp|h: Add functionality for detaching events and
4447 for releasing object references.
4448 - When looking up on the window object, do not release it. It
4449 doesn't need to be released because it is never retained.
4450 - Add a new function for creating a browser alert message.
4452 2007-08-03 Chris Toshok <toshok@ximian.com>
4454 * plugin-class.cpp (moonlight_downloader_*): add
4455 has_property/get_property methods, for the "responseText"
4456 property. not sure if getResponseText() is still around, but the
4457 property definitely is in use by silverlight pad.
4459 2007-08-03 Jackson Harper <jackson@ximian.com>
4461 * plugin-class.h|cpp: Add support for mouse events, pass all the
4462 info needed by HtmlEventArgs back in the callback.
4463 - Don't return null or void objects from invoke or get property.
4465 2007-08-03 Jackson Harper <jackson@ximian.com>
4467 * moonlight.cs: Dont download all the system libraries.
4469 2007-08-03 Jackson Harper <jackson@ximian.com>
4471 * plugin-class.h|cpp: Add support for attaching properties.
4473 2007-08-02 Chris Toshok <toshok@ximian.com>
4475 * plugin-class.cpp (moonlight_content_invoke): createFromXaml
4476 doesn't create a control object - it parses the xaml you pass in
4477 and returns the root element, so it can be used for any xaml
4480 * plugin.h, plugin.cpp: add plugin_instance_get_init_params for
4481 use in WebApplication.StartupArgs.
4483 2007-07-29 Chris Toshok <toshok@ximian.com>
4485 * moonlight.h: track the 1.1 refresh changes.
4487 2007-07-25 Chris Toshok <toshok@ximian.com>
4489 * plugin-class.cpp (moonlight_dependency_object_invoke): implement
4490 "getParent" correctly - it can return NULL.
4492 2007-07-25 Chris Toshok <toshok@ximian.com>
4494 * plugin-class.h: implement scriptable events (adding and emitting
4497 2007-07-24 Jackson Harper <jackson@ximian.com>
4499 * plugin-class.cpp|h: Add function to invoke methods on
4500 htmlobjects from unmanaged code.
4502 2007-07-24 Chris Toshok <toshok@ximian.com>
4504 * plugin.cpp (PluginInstance::setBackground): implement.
4505 (PluginInstance::CreateWindow): if our args contained a background
4506 color, set the surface's background.
4508 2007-07-24 Jackson Harper <jackson@ximian.com>
4510 * plugin-class.cpp: Move the window release up, prevents random
4511 crashing in firefox.
4513 2007-07-24 Chris Toshok <toshok@ximian.com>
4515 * plugin-class.h, plugin-class.cpp: add wrapper classes for
4516 TextBlocks and ImageBrushes.
4518 2007-07-24 Jackson Harper <jackson@ximian.com>
4520 * plugin-class.cpp: Implement variants to value on objects. TODO,
4521 add a method to release those objects.
4523 2007-07-24 Chris Toshok <toshok@ximian.com>
4525 * plugin-class.h, plugin-class.cpp: add a wrapper class for
4526 Images, which implements SetSource. also add SetSource handling
4527 for the MediaElement wrapper.
4529 * moonlight.cs: rework event hookup so that if we fail to hookup
4530 with C#, we assume it's a JS event. hook it up via the
4531 EventListenerProxy stuff.
4533 * plugin.h, plugin.cpp: MoonlightControl -> MoonlightScriptable
4535 * plugin-class.h, plugin-class.cpp:
4537 1. rename MoonlightControl* to MoonlightScriptableControl* to
4538 distinguish it from the new MoonlightControl, which is a wrapper
4539 for our Control class. factor out the _set_dependency_property_value
4541 2. add "getParent", "setValue", and "getValue" methods to the
4542 dependencyobject wrapper.
4544 3. Add a ctor for EventListenerProxy which just takes the callback
4545 name for use in hooking up js events from the parser.
4547 2007-07-24 Jackson Harper <jackson@ximian.com>
4549 * plugin.h|cpp: Add a getter for the plugin instance
4550 * plugin-class.h|cpp: Property get/setters for html objects.
4552 2007-07-23 Chris Toshok <toshok@ximian.com>
4554 * plugin-class.h, plugin-class.cpp: include error.h, and start out
4555 some error event args wrapping stuff.
4557 2007-07-23 Miguel de Icaza <miguel@novell.com>
4559 * plugin.cpp (PluginInstance): track the timers on a linked list
4562 (~PluginInstance): Remove all the timers for this plugin on
4565 (plugin_html_timer_timeout_add, plugin_html_timer_timeout_stop):
4566 Move these routines here and track all the timers created.
4568 * moonlight.cs: Use the type from agmono instead of agclr
4570 2007-07-21 Chris Toshok <toshok@ximian.com>
4572 * plugin-class.cpp (variant_to_value): fix this such that it
4573 doesn't crash due to c++'s not using a copy ctor when you do "foo
4574 = Value()". the first of the changes are fallout from this.
4576 2007-07-20 Miguel de Icaza <miguel@novell.com>
4578 * Fix a memory leak.
4580 2007-07-19 Chris Toshok <toshok@ximian.com>
4582 * plugin-class.h, plugin-class.cpp: factor out the
4583 EventListenerProxy stuff into a separate class.
4585 2007-07-19 Chris Toshok <toshok@ximian.com>
4587 * plugin-class.cpp (moonlight_control_get_property): Retain the
4588 settings/content objects before returning them. fixes crash in
4591 2007-07-19 Chris Toshok <toshok@ximian.com>
4593 * plugin.h, plugin.cpp: add getBrowserInformation call, useful for
4594 populating the managed BrowserInformation object. need to flesh
4595 out how to get the other info. userAgent is easy.
4597 also, in plugin.cpp, only invoke is onLoad handler if
4598 vm_loader_try doesn't return a missing file. This fixes the
4599 ordering problem in the silverlight chess demo (where we were
4600 accessing JScriptPlayer before it was created).
4602 2007-07-19 Chris Toshok <toshok@ximian.com>
4604 * plugin-class.h: add some scriptable object event stuff.
4606 * plugin-class.cpp: a couple of things.
4608 1) fix the _invalidate and _deallocate methods. _invalidate
4609 shouldn't release objects. and _deallocate can now call delete
4610 again, so we don't leak all our wrapper objects.
4612 2) add some initial scriptable object event methods (add/remove),
4613 but they don't actually do much yet.
4615 * plugin.cpp: fix the refcounting of the rootobject, and remove
4616 some RUNTIME ifdefs.
4618 * plugin-glue.cpp (NPP_Initialize): remove the RUNTIME ifdefs.
4620 * moonlight.h: remove some of the unused ifdefs. also, we're not
4621 going to ever build this with RUNTIME or SCRIPTING not defined, so
4624 2007-07-18 Jackson Harper <jackson@ximian.com>
4626 * plugin-class.cpp: Build fix.
4628 2007-07-17 Chris Toshok <toshok@ximian.com>
4630 * plugin-class.cpp (moonlight_scriptable_object_invoke): deal with
4633 * plugin-class.h: change the type of InvokeDelegate - we pass an
4634 array, not an array of pointers.
4636 * plugin.cpp (JsRunOnload): remove redundant call to
4637 surface->GetToplevel().
4639 2007-07-16 Chris Toshok <toshok@ximian.com>
4641 * moonlight.cs: AppDomain.SetData the plugin instance so
4642 WebApplication can get at it.
4644 * plugin-class.cpp (variant_to_value): pseudo-inverse of
4645 value_to_variant. used by the scriptable object stuff.
4647 Also, add the first pass at the scriptable object code. it's
4648 really, really rough at this point.
4650 * plugin.cpp (PluginInstance::GetValue): switch this to calling
4652 (PluginInstance::getRootObject): put the old GetValue (create or
4655 2007-07-12 Chris Toshok <toshok@ximian.com>
4657 * plugin-class.cpp: implement support for using a string as the
4658 second arg in addEventListener. now you can register callbacks
4661 object.addEventListener ("EventName", method);
4665 object.addEventListener ("EventName", "methodName");
4667 fixes SilverlightChess crashing (since we were trying to
4668 InvokeDefault a string. oops. :)
4670 2007-07-12 Chris Toshok <toshok@ximian.com>
4672 * plugin-class.cpp (moonlight_dependency_object_invoke): implement
4673 captureMouse/releaseMouseCapture. going to move these to a
4674 UIElement specific wrapper next.
4676 2007-07-12 Chris Toshok <toshok@ximian.com>
4678 * plugin-class.cpp, plugin-class.h: a few things:
4680 refactor the listener proxying stuff to share code. when creating
4681 a proxy you create the event arg wrapper function, which at
4682 present only the mouse event stuff uses.
4684 wrap Downloader. events are properly emitted, we should move the
4685 Downloader to using EventHandler's instead of its custom list of
4688 when looking up an attached property both (or one, or neither!) of
4689 the names can be capitalized. like: foo['canvas.top'],
4690 foo['Canvas.Top'], and foo['canvas.Top']. handle all of them.
4692 in value_to_variant, when setting a property to an object value,
4693 we assume (perhaps incorrectly) that it will be a
4694 MoonlightDependencyObjectObject, and handle it that way. it seems
4695 to work for the demos at least. Also in that same method, stop
4696 allocating a 20 byte buffer in the hope that it's enough. just
4697 use g_strdup/g_strdup_printf.
4699 add control.createObject support for creating wrapped
4700 downloaders. also, start on the implementation for
4701 control.onResize, but we need to shift the surface's resize
4702 callback to use an EventHandler.
4704 2007-07-11 Chris Toshok <toshok@ximian.com>
4706 * plugin-class.cpp, plugin-class.h: fix up the point and rect
4707 wrappings, and implement mouse event proxying.
4709 2007-07-11 Chris Toshok <toshok@ximian.com>
4711 * plugin-class.cpp, plugin-class.h: wrap the MediaElement enough
4712 to provide the start/stop/pause methods.
4714 2007-07-11 Chris Toshok <toshok@ximian.com>
4716 * plugin-class.cpp, plugin-class.h, plugin-glue.cpp, plugin.h,
4717 plugin.cpp: I know this looks like a scary change, but 90% of the
4718 code is the same. I just took advantage of the fact that we
4719 already have structs with all the function pointers in them.
4720 there's no reason to proxy from a function pointer in the struct
4721 to an instance method on a singleton class - just use the function
4724 Also, add a binding for Points, which we'll need to wrap mouse
4727 2007-07-11 Chris Toshok <toshok@ximian.com>
4729 * moonlight.h (DEBUG_WARN_NOTIMPLEMENTED): add this macro so we
4730 can get spew to the console when we hit unimplemented bits.
4732 * plugin-class.cpp: a couple of changes:
4734 1. the case of property names is lax too, it seems. 'Children'
4735 can be used in the js, as well as 'Children'. so we need to allow
4738 2. Fix a memory corruption issue with value_to_variant - we need
4739 to duplicate the string we give to mozilla, since it'll free it in
4740 NPN_ReleaseVariantValue.
4742 3. Implement proxies between our event handlers and JS event
4743 listeners. We leak like a sieve here, btw. need to figure out
4744 the best way to free up these proxies. This works for any event
4745 that has been Register'ed by an EventObject and which is Emit'ed
4748 4. Implement collection.getItem().
4750 2007-07-11 Chris Toshok <toshok@ximian.com>
4752 * plugin.h, plugin.cpp: add getRootObject to return the
4753 MoonlightControlObject.
4755 * plugin-class.cpp (MoonlightDependencyObjectClass::Invoke):
4756 implement "getHost" by returning PluginInstance->getRootObject().
4758 2007-07-11 Chris Toshok <toshok@ximian.com>
4760 * plugin-class.h, plugin-class.cpp: substantially rework this
4761 stuff. Rename everything Moonlight*Class and Moonlight*Object
4762 instead of Plugin*Class/Object, to make it a little clearer that
4763 these are (almost entirely) wrappers for moonlight objects.
4765 Also clean up the distinction between "Class" and "Object". for
4766 instance, MoonlightDependencyObjectClass shouldn't have the
4767 DependencyObject*, that should live in the instance -
4768 MoonlightDependencyObjectObject (bad name i know..)
4770 our Objects also need a little bit more inheritance action.
4771 MoonlightObject isn't enough for all cases. Augment this with
4772 other classes, and override AllocateObject to allocate the right
4773 kind per class. Also, we need to override InvalidateObject to
4774 clear fields in the MoonlightObject subclasses before it's
4777 Also make all the Class's singletons. We never need more than one
4780 * plugin.h, plugin.cpp: we don't need a generate JsExecute method.
4781 besides, it's dangerous to NPN_Evaluate strings we get from the
4782 HTML anyway. Replace JsExecute with JsRunOnload, which uses
4783 NPN_Invoke to call the specified method. we also need to pass the
4784 surface's toplevel control as an argument to it.
4786 2007-07-11 Miguel de Icaza <miguel@novell.com>
4788 * moonlight.cs: Add support for downloading assembly
4791 2007-07-10 Chris Toshok <toshok@ximian.com>
4793 * moonlight.cs: add some helpful debug spew.
4795 * plugin.cpp (StreamAsFile): the mapping needs to point to the
4796 filename on disk, not the full uri. or else we try loading
4797 "http://" off the filesystem, which doesn't really work. Just to
4798 be thorough, add a mapping from the stream's url to the fname as
4801 2007-07-09 Miguel de Icaza <miguel@novell.com>
4803 * Makefile.am: install debugging symbols.
4805 * moonlight.cs: try/catch wrappers to prevent exceptions to be
4806 propagated to native code.
4808 2007-07-09 Chris Toshok <toshok@ximian.com>
4810 * moonlight.cs: copy over the System.Reflection implementation of
4811 set_attribute from XamlReader. also, track the change to the
4812 xaml_* apis - don't pass the callbacks to the individual methods.
4813 instead register them in a static ctor.
4815 2007-07-09 Miguel de Icaza <miguel@novell.com>
4817 * moonligh.cs: Invoke the Lookup(Kind, IntPtr) overload, just like
4818 we do in XamlReader.
4820 2007-07-06 Miguel de Icaza <miguel@novell.com>
4822 * downloader.cpp: Update to the get-response-text downloader API.
4824 2007-07-03 Miguel de Icaza <miguel@novell.com>
4826 * plugin.cpp (NewStream): Request that DOWNLOADER downloads be
4827 downloaded as NP_ASFILE, this means: notify us of the progres and
4828 the resulting filename.
4830 2007-06-26 Marek Habersack <mhabersack@novell.com>
4832 * moonlight.h (GDK_NATIVE_WINDOW_POINTER): define this macro if
4833 we're on a 64-bit platform. Otherwise plugin.cpp will fail to
4834 compile (attempting to convert guint32 to 64-bit pointer).
4836 2007-06-24 Larry Ewing <lewing@novell.com>
4838 * moonlight.h: include xaml.h so that things build.
4840 2007-06-24 Atsushi Enomoto <atsushi@ximian.com>
4842 * Makefile.am : we need libmoonplugin.so installed too.
4844 2007-06-23 Miguel de Icaza <miguel@novell.com>
4846 * plugin-proxy.cpp: This is the new entry point for the plugin
4847 which can be loaded and unloaded as many times as desired, and
4848 will keep the real plugin in $pkgdir/libmoonplugin.so loaded as
4851 This prevents the bugs where the code is unloaded, but we still
4852 have a few places where we are triggering screen updates when the
4853 objects have gone, those must be tracked down.
4855 2007-06-23 Chris Toshok <toshok@ximian.com>
4857 * Makefile.am: distcheck work.
4859 2007-06-22 Chris Toshok <toshok@ximian.com>
4861 * README: barebones README to tell people what to do with the
4864 2007-06-21 Jackson Harper <jackson@ximian.com>
4866 * moonlight.cs: Do what I was trying to do with the last commit.
4867 Attach the surface so that events are registed.
4869 2007-06-21 Jackson Harper <jackson@ximian.com>
4871 * moonlight.cs: Init the surface so that the mouse events are
4874 2007-06-20 Jeffrey Stedfast <fejj@gnome.org>
4876 * plugin.cpp (plugin_show_menu): Free the menu name after setting
4879 * mono.cpp (vm_init): Don't need top prefix with "/".
4881 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4883 * plugin.cpp: Add new params to xaml_create_from_file and
4884 xaml_create_from_str calls to fix compilations problems.
4886 2007-06-20 Chris Toshok <toshok@ximian.com>
4888 * plugin.cpp (StreamAsFile): don't try to execute onLoad if there
4891 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4893 * plugin.cpp, plugin.h: Implement JsExecute method and use it to call onload
4894 event specified in control creation. onLoad and onError field is also
4897 2007-06-20 Jackson Harper <jackson@ximian.com>
4899 * moonlight.cs: Tie into events.
4901 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4903 * plugin-class.cpp: Update DependencyObject setter to work with strings
4904 and some other data types, using xaml_set_property_from_str. Also remove
4905 some debug messages, we have too much.
4907 2007-06-20 Everaldo Canuto <ecanuto@novell.com>
4909 * plugin.cpp: Uncomment container detroy lines in Finalize method.
4911 2007-06-20 Sebastien Pouliot <sebastien@ximian.com>
4913 * plugin-class.cpp: Alloc one byte to set it to NULL so we don't
4914 write to unallocated memory.
4916 2007-06-20 Chris Toshok <toshok@ximian.com>
4918 * plugin.cpp (PluginInstance::Write): it turns out the "offset"
4919 parameter that is passed to us is the offset without the *stream*,
4920 not the buffer. Always pass 0 for the offset to downloader_write.
4921 This fixes image downloads for images larger than the mozilla
4922 buffer size (those requiring more than 1 write) of 16384.
4924 2007-06-19 Chris Toshok <toshok@ximian.com>
4926 * plugin-glue.cpp (NPP_Initialize): if we're going to Shutdown()
4927 the TimeManager in NPP_Shutdown, we need to restart it in
4930 2007-06-19 Chris Toshok <toshok@ximian.com>
4932 * plugin-class.cpp: check in the variant_to_value/value_to_variant
4933 methods, and make GetProperty/SetProperty use them.
4935 * plugin.cpp (UpdateSourceByReference): use g_strlcpy/g_strlcat
4936 instead of strcpy/strcat (which was actually walking off the end
4937 of the string). also, create the char array of the right size.
4939 2007-06-19 Atsushi Enomoto <atsushi@ximian.com>
4941 * Makefile.am : we need uninstall-plugin to avoid
4942 possible browser shutdown on browsing sl-enabled sites.
4944 2007-06-19 Everaldo Canuto <ecanuto@novell.com>
4946 * plugin-class.cpp, plugin-class.h: Implement DependencyObject properties
4949 2007-06-19 Everaldo Canuto <ecanuto@novell.com>
4951 * plugin.cpp: Eliminate remaining canvas field.
4953 2007-06-19 Miguel de Icaza <miguel@novell.com>
4955 * plugin.h: Eliminate the field canvas, as the managed code can
4956 replace the toplevel and we wont be able to track it. Access the
4957 field directly from the surface instead.
4959 2007-06-18 Miguel de Icaza <miguel@novell.com>
4961 * moonlight.cs: Create appdomains to keep applications separate
4962 and to keep the IntPtr to the plugin.
4964 The handle to the plugin is stored in agclr in the BrowserHost
4967 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4969 * plugin-class.cpp: Implement maxFrameRate property.
4971 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4973 * moonlight.h: Just a high value for MAX_STREAM_SIZE.
4975 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4977 * plugin.cpp, plugin.h: Implement Write and WriteReady to interact with
4978 Downloader functions. It looks to be right but image still dont appears,
4979 mayeb something in download manager functions. STREAM_NOTIFY macro added to
4982 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4984 * downloader.cpp: Fix stream notify data, must be Downloader not
4987 2007-06-18 Everaldo Canuto <ecanuto@novell.com>
4989 * plugin-glue.cpp: Remove stream destruction from Write and WriteReady, it
4990 was preventing browser to call our write function.
4992 * moonlight.h: MAX_STREAM_SIZE constant added.
4994 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
4996 * plugin.cpp, plugin.h: Add a new StreamNotifyFlags REQUEST, it is used by
4997 files requested by Mono runtime, the use of notify bring us a more clean
4998 code to controls requested files.
5000 * downloader.cpp: Use StreamNotify and check for existense of instance.
5002 007-06-17 Jackson Harper <jackson@ximian.com>
5004 * moonlight.cs: Parse type names out of xmns strings. x:Class uses
5005 this slightly different format.
5007 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5009 * plugin.cpp, plugin.h: Add support for "#" (references) in source urls, it
5010 make possible use embedded xaml files. Also every source updates go to the
5011 UpdateSource and UpdateSourceByReference methods.
5013 * moonlight.cs: Xaml file loader splited in two methods CreateXamlFileLoader
5014 and CreateXamlStrLoader to support embedded files.
5016 * mono.cpp: Wrapper funtions also splited in file loader and str loader.
5018 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5020 * plugin.cpp: Use setSource to define source in Initialize, it give us only
5021 one place to check set source code. Also prevent setSource to segfault when
5022 source field is null.
5024 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5026 Fixes browser segfaults related to timemanager when goto another page or
5029 * plugin-glue.cpp: Call runtime_init every time that browser initialize
5030 plugin, when plugin shutdown just shutdown timemanager since we have
5031 problems to runtime_shutdown. Some comment added to this implementation
5032 and we must back here when runtime_shutdown is fixed.
5034 2007-06-17 Everaldo Canuto <ecanuto@novell.com>
5036 * plugin.cpp, plugin.h: Create StreamNotify class to use as notifydata
5037 parameter in NPN_GetURLNotify function, it gives us better control about
5038 what is downloading. Fixes errors when you try change control source
5041 2007-06-17 Miguel de Icaza <miguel@novell.com>
5043 * downloader.cpp (p_downloader_send): Some tidbits for the plugin
5044 download, not complete.
5046 2007-06-16 Jackson Harper <jackson@ximian.com>
5048 * moonlight.cs: Set custom attributes on xaml elements.
5050 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5052 * moonlight.h: Include config.h since moonlight.h is included by all files.
5053 Fixes compilation problems.
5055 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5057 * plugin.cpp, plugin.h: Remove sourceUrl and use NPN_GetURLNotify notifyData
5058 param to inform when download is source.
5060 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5062 * mono.cpp: Remove debug message cr.
5064 * plugin.cpp, plugin.h, plugin-class.cpp: Windowless property added.
5066 2007-06-16 Jackson Harper <jackson@ximian.com>
5068 * moonlight.cs: Quick implementation of miguels beautiful new xaml
5069 loading mechanism. We now properly download the assembly and
5070 create the element. The custom.xaml test does work, however you
5071 need to invalidate the canvas to see the red canvas background
5074 2007-06-16 Miguel de Icaza <miguel@novell.com>
5076 New mechanism for loading XAML files.
5078 Since XAML files can contain references to external assemblies and
5079 these have to be downloaded using the browser, we have now changed
5080 our previous setup that just called the xaml parser with a setup
5081 that is able to download dependencies.
5083 The system works by attempting repeatedly to parse the XAML file.
5084 The XAML parser needs to return an error condition that includes
5085 the missing dependency.
5087 For all missing dependencies, we request the file from the
5088 browser, and we re-try the parsing until it works (or it fails due
5091 * moonlight.cs: Instead of exposing a CreateFromXaml method, we
5092 now expose a Loader object.
5094 The Loader object can keep track of downloaded assembly
5095 dependencies and calls the parser.
5097 * plugin.cpp (NewStream): Use a primitive state machine
5098 (vm_missing_url == vm_missing_file) to detect when we have just
5099 requested that a file be downloaded. This probably is too
5102 (TryLoad): New method.
5104 Tries to load the XAML file, the parsing might fail because a
5105 required dependency is not available, so we need to queue the
5106 request to fetch the data.
5108 (LoadFromXaml): Use vm_xaml_loader_new and TryLoad now.
5110 * mono.cpp (vm_init): We now use a handful of more methods from
5113 (vm_loader_try, vm_insert_mapping): helper functions to call into
5114 the managed wrapper for XAML file loading.
5116 2007-06-16 Everaldo Canuto <ecanuto@novell.com>
5120 * plugin-class.cpp: Implement enableFramerateCounter, enableRedrawRegions
5121 and enableHtmlAccess properties.
5123 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5125 * plugin.cpp, plugin.h, plugin-class.cpp: Background property added.
5127 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5129 * plugin.cpp: Let LoadFromXaml just call load xaml routines.
5131 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5133 * moonlight.cs: Fix surface attachment.
5135 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5137 * plugin-glue.cpp: Prevent multiple runtime and mono vm initialization.
5139 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5141 * plugin.cpp, plugin.h: LoadFromXaml added to host canvas creation.
5143 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5145 * moonlight.h: Turns mono runtime enabled by default.
5147 * mono.cpp: Use of DEBUGMSG macro for debug message.
5149 * moonlight.cs: Fix Canvas kind number.
5151 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5153 * plugin.cpp, plugin.h, plugin-class.cpp: Fix setter for source property.
5155 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5157 * plugin.cpp, plugin.h: Add sourceUrl to get information about base source
5158 url. New Stream also check if request is for source file, if not return
5159 NP_NORMAL to be used later by downloader functions.
5161 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5163 * plugin-class.cpp, plugin-class.h: Remove macro STRING_TO_NPVARIANT, create
5164 method StringToNPVariant and change all reverences from macro to method.
5165 StringToNPVariant also take care about NULL strings.
5167 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5169 * plugin.cpp, plugin.h, plugin-class.cpp: Implement initParams property.
5171 2007-06-15 Everaldo Canuto <ecanuto@novell.com>
5173 * plugin-class.cpp: Implement setters for enableFramerateCounter,
5174 enableHtmlAccess and windowless. This fields cant be set after
5175 initialization so just do nothing and return true.
5177 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5179 * plugin-glue.cpp: After PluginObject changes we can back to release objects
5180 and it fix segfault when browser closes.
5182 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5186 * plugin-class.h: Remove unneeded instance fields, and contructor, after
5187 implementation of PluginObject we have a better way to get instance
5190 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5192 * plugin-class.cpp: Change all PluginRootClass properties to use new object
5195 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5198 * plugin-class.h: Rename NPObject references to PluginObject, PluginObject
5199 class theres more useful information like instance and plugin.
5201 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5205 * Makefile.am: Downloader functions added.
5207 * plugin-glue.cpp: On NPP_Initialize call downloader_initialize.
5209 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5211 * plugin-class.cpp: In PluginDependencyObject:: ClassGetProperty return
5212 false instead of null because funtion is of type boolean. It fix message
5215 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5217 * plugin.cpp: Move rootclass declaration to plugin-class.
5219 * plugin.h: Remove inclusion of plugin-class.h.
5221 * plugin-class.h: Introduces PluginObject class inherited from NPObject and
5222 add rootclass declaration.
5224 * plugin-class.cpp: Uses PluginObject instead of NPObject, also make use of
5225 object in 'source' property getter.
5227 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5229 * plugin.cpp, plugin.h: Add a new member finalize that must be calling
5230 instead of delete, we must later found a way to fix reload problems.
5232 * plugin-glue.cpp: Call finalize instead of delete.
5234 * TODO: Some notes about this bad implementation.
5236 2007-06-14 Everaldo Canuto <ecanuto@novell.com>
5238 * plugin-class.cpp: Add setter for control.source property.
5240 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5242 * plugin.cpp, plugin.h: isLoaded property added.
5244 * plugin-class.cpp: Implement control.isLoaded wrapper.
5246 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5249 - Take some notes on properties that cant be set after initialization.
5250 - Create macho STRING_TO_NPVARIANT to standardize the way how strings are
5251 returned to jscript calls.
5254 - Implement control.source using STRING_TO_NPVARIANT macro.
5255 - Uses STRING_TO_NPVARIANT macho in control.settings.version.
5257 * plugin.h: Add source property.
5259 * plugin.cpp: Set source on initialization.
5261 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5263 * plugin.cpp, plugin.h:
5264 - Move static rootobject to class field to get working pages with more than
5265 one moonlight control.
5266 - Implement param source for html object elements, this is default way to
5267 tell plugin which xaml it must load.
5269 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5271 * plugin-class.cpp, plugin-class.h:
5272 - Move instance field from PluginRootClass to PluginClass because most
5273 classes can make use of this field, class constructor is also changed to
5274 receive instance as parameter.
5275 - Remove host field from PluginDependencyObject, host can be accessed using
5278 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5280 * plugin-class.cpp: Implement "control.content" proeprties.
5282 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5284 * TODO: Added to include information about features that we know that is
5285 not current supported. Can be use for now to take some notes to be read
5288 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5290 * plugin-class.h: Add comments about read write/read only on properties.
5292 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5294 * plugin-class.cpp, plugin-class.h: Add SetProperty to PLUGIN_PROPERTIES
5295 and implement it for all classes.
5297 2007-06-13 Everaldo Canuto <ecanuto@novell.com>
5299 * plugin-class.cpp, plugin-class.h:
5300 - Fix IndexOf method.
5301 - Create and uses macros PLUGIN_PROPERTIES and PLUGIN_METHODS to define
5302 properties and methods.
5303 - Uses arrays to define properties and methods.
5304 - Use NPID macro to get string identifier.
5306 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5308 * plugin-class.cpp: Fix dependency of PLUGINROOTCLASS_PCOUNT in property
5309 array initialization.
5311 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5313 * plugin-class.cpp, plugin-class.h:
5314 - Implement IndexOf method that uses and array.
5315 - implement properties array.
5316 - ClassHasProperty now uses IndexOf.
5318 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5320 * Makefile.am: Fix LIBADD to include MOON_LIBS instead of two times
5323 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5325 * plugin-class.cpp, plugin-class.h: Get content and settings as a plugin
5328 2007-06-12 Everaldo Canuto <ecanuto@novell.com>
5330 * plugin.cpp, plugin.h: PluginContent class added.
5332 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5334 * plugin.cpp, plugin.h: Remove unused CreateDemoControls method.
5336 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5338 * plugin.cpp: Remove unused code and fix function names.
5340 * moonlight.h: Remove ";" on end of PLUGIN_DESCRIPTION define.
5342 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
5344 * Makefile.am : build fix. without -f rm fails.
5346 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5348 * plugin-class.cpp, plugin-class.h: Remove unused method ClassAllocate
5349 and fix all debug messages.
5351 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5353 * plugin.cpp: Fix object creation using NPN_RetainObject to increment
5354 reference count as described in Mozilla documentation.
5356 * plugin-class.cpp: On ClassDeallocate uses NPN_ReleaseObject that
5357 checks for references and release object when reference count is equal
5358 zero. It see to be solve all remaining segfault when browser closes.
5360 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5362 [Refactory jscript runtime code]
5364 * plugin-class.cpp, plugin-class.h: Create new class PluginRootClass,
5365 to be a proxy for javascript runtime calls, old code on plugin instance
5366 was moved here and all segfault related to script stuff was gone.
5368 * plugin.cpp, plugin.h: Remove jscript runtime related code and use
5371 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5375 * plugin.h: Fix remaining config.h -> moonlight.h.
5377 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5379 * moonlight.h: Define RUNTIME to enable/disable mono runtime
5380 integration. Its because right now it fails when open a page with
5381 script so we can comment /#define RUNTIME to get plugin working in
5384 * plugin.cpp: Dont call vm_load_xaml when RUNTIME is not defined.
5386 * plugin-glue.cpp: Dont call vm_init when RUNTIME is not defined.
5388 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5390 * moon-plugin.cpp: Renamed to plugin.cpp.
5391 * moon-plugin.h: Renaned to plugin.h.
5392 * config.h: Renaned to moonlight.h.
5394 * plugin-class.h, plugin-glue.cpp: Update includes.
5396 2007-06-11 Miguel de Icaza <miguel@novell.com>
5398 * Makefile.am: Delete the ~/.mozilla/plugins/libmoon.so in case it
5399 was around, that was the painful bug.
5401 * moon-plugin.cpp (CreateWindow): Do not create a canvas, nor
5402 attach it, let Mono do that.
5403 (StreamAsFile): Request that the VM loads the file, this will
5404 change to something else later when we use the Silverlight object
5407 * moonlight.cs: Implement some bits, it currently only loads the
5408 XAML file, it needs to create a new appdomain.
5410 2007-06-11 Everaldo Canuto <ecanuto@novell.com>
5414 * mono.cpp: Rename moon.cpp to moon-mono.cpp.
5416 * moon-mono.h: Add header information.
5419 * config.h: Add constant MOON_1_0 and MOON_1_1, when 1.1 is define
5420 compile also mono runtime, it is disabled by default since mono runtime
5421 give us some crashes right now.
5423 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5425 * Makefile.am: config.h added.
5433 * moon-plugin.h: Include config.h and remove unneeded includes.
5435 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5437 * moon-plugin.cpp: Remove DEMO mode and set SCRIPTING mode by default.
5439 2007-06-10 Miguel de Icaza <miguel@novell.com>
5441 * moonlight.cs: the startup code, will contain the helper classes
5442 to create new AppDomains for each instance create.
5444 * mono.cpp: New file, embeds the Mono VM.
5446 2007-06-10 Everaldo Canuto <ecanuto@novell.com>
5448 * plugin-glue.cpp: Call plugin instance destructor, now it dont causes
5449 error when you reload page.
5451 * moon-plugin.cpp: Only destroy container widget, if you dont destroy it
5452 when you start with page plugin, go to another page and close browser,
5453 a segfault is emited before browser exits. Now navigating for some time in
5454 silverlight pages looks to dont emit segfault if scripting is disabled.
5456 * plugin-class.cpp: Remove debug message from class constructor.
5458 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5463 - Read xaml file from src tag and display contents.
5464 - Disable demo box, now we have a better demo under xaml file.
5466 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5468 * Makefile.am: test added to subdirs.
5470 2007-06-09 Everaldo Canuto <ecanuto@novell.com>
5474 * moon-plugin.h: Rename DEBUG to DEBUGMSG.
5476 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5479 * moon-plugin.cpp: Change demo code to class method CreateDemoControls.
5481 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5483 * moon-plugin.cpp: Add canvas, connect it to surface and get demo working
5486 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5489 * moon-plugin.cpp: Rename CreateControls to CreateWindow.
5491 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5493 * Makefile.am: Add $(MOON_LIBS) to linker options.
5495 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5497 * plugin-glue.cpp: Dont delete plugin object since right now it causes some
5498 segfault when change to another page.
5500 * moon-plugin.cpp: Got scripting mode enabled by default.
5502 2007-06-08 Everaldo Canuto <ecanuto@novell.com>
5504 * plugin-glue.cpp: Fix plugin destruction.
5505 * moon-plugin.cpp: Change button to gtk label with plugin name and version.
5507 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5509 * plugin-glue.cpp: Set instance data to NULL to prevent error when browser
5513 - Disabled demo mode.
5514 - Enabled Scripting mode.
5515 - Fix runtime object creation, dont user NPN_RetainObject anymore.
5516 - Fix also object properties creation (settings).
5517 - Release object on class destructor.
5519 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5521 * moon-plugin.cpp: Simplify controls creation and add a button when you are
5522 not in demo mode. It is just for now to made some tests.
5524 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5526 * moon-plugin.cpp: Remove runtime initialization because it is wrong place.
5527 * plugin-glue.cpp: Add gtk and runtime initialization to NPP_Initialize.
5529 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5531 * moon-plugin.cpp: Add some initialization code to prevent some segmentation
5534 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5536 * moon-plugin.cpp: Add SCRIPTING and DEMO macros to make available only
5537 tested features, it mean that developers must uncomment this MACRO lines
5538 before work on scripting and libmoon stuff.
5540 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5542 * moon-plugin.cpp: Fix gtkplug creation fro 64bit systems.
5544 * Makefile.am: Add -lavformat to link options.
5546 Thanks Grendel for this patches.
5548 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5550 * moon-plugin.h: Change version number 0.99.0, SilverLight scripts searchs
5551 for version > 0.95.1.
5553 * test/index.html: Small fixes in test page.
5555 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5557 * test/index.html: Add javascript settings test.
5560 * moon-plugin.h: Implementing Settings class.
5562 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5565 * moon-plugin.h: Implement runtime properties structure and 'version'
5568 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5570 [PluginClass added to handle script objects]
5574 * Makefile.am: PluginClass added.
5577 * moon-plugin.h: PluginInstance now inherit from PluginClass, also
5578 scriptclass was removed and "this" is used in NPN_CreateObject. For
5579 NPN_CreateObject we can now always use classes inherited by PluginClass.
5581 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5583 * Makefile.am: Remove idl related code, new object system dont need idl or
5585 * nsIScriptableMoonPlugin.h: deleted.
5586 * nsIScriptableMoonPlugin.idl: deleted.
5588 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5590 * plugin-glue.cpp: Fix the instance initialization problems, the object
5591 instance was empty after creation.
5593 2007-06-07 Everaldo Canuto <ecanuto@novell.com>
5597 * plugin-glue.cpp: Fix SetValue declaration.
5599 * plugin-entry.cpp: Fix a lot of declarations, support for win and mac,
5600 support for runtime version checking and some other minor fixes.
5602 2007-06-06 Everaldo Canuto <ecanuto@novell.com>
5604 * moon-plugin.cpp: Comment container destructor to prevent segfault.
5606 2007-06-06 Everaldo Canuto <ecanuto@novell.com>
5608 * moon-plugin.cpp: Fix API change for Canvas.
5610 2007-06-06 Sebastien Pouliot <sebastien@ximian.com>
5612 * moon-plugin.cpp: Fix API change for SolidColorBrush.
5614 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5616 * moon-plugin.h: Add PLUGIN_OURNAME and PLUGIN_OURVERSION constants to
5617 specify our internal name and version that differs from plugin version
5618 detected by browser. SilverLight javascripts checks for WPF plugin and
5621 * moon-plugin.cpp: Change runtime initialization to CreateControls, before
5624 * plugin-glue.cpp: Fix memory allocation problems in NPP_New.
5626 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5630 * moon-plugin.h: Add initialization and remove demo transformation.
5632 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5634 [Remove ScriptablePeer code]
5636 * nsScriptablePeer.h, nsScriptablePeer.cpp: Removed.
5638 * plugin-glue.cpp: Fix debugger messages.
5642 * moon-plugin.h: Remove ScriptablePeer code since now Mozilla use
5645 2007-06-05 Sebastien Pouliot <sebastien@ximian.com>
5647 * moon-plugin.cpp: Fix API change for Rectangle.
5649 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5651 * moon-plugin-glue.cpp: Splited in plugin-glue.cpp and plugin-entry.cpp.
5652 * plugin-glue.cpp: Fix 'undefined symbol' creating NPP_SetValueX.
5654 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5656 * Makefile.am: Add some linker flags, it prevents crash on Epiphany.
5658 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5660 * test/index.html: Add script to demo html page.
5662 2007-06-05 Everaldo Canuto <ecanuto@novell.com>
5664 * moon-plugin.cpp: Add runtime init to demo code.
5666 2007-06-04 Everaldo Canuto <ecanuto@novell.com>
5668 * plugin/Makefile.am: Generate and install .xpt for install-plugin target.
5670 2007-06-04 Everaldo Canuto <ecanuto@novell.com>
5672 [Implement scriptable to plugin]
5674 * plugin/test/index.html: Sample jscript included.
5676 * plugin/Makefile.am: Generates .h from idl file use xpidl.
5678 * plugin/moon-plugin.h,
5679 * plugin/moon-plugin.cpp,
5680 * plugin/moon-plugin-glue.cpp: Implement scriptable and some clean up.
5682 * plugin/nsIScriptableMoonPlugin.h,
5683 * plugin/nsIScriptableMoonPlugin.idl,
5684 * plugin/nsScriptablePeer.cpp,
5685 * plugin/nsScriptablePeer.h: New scriptable classes.
5687 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5689 * moon-plugin-glue.cpp,
5691 * moon-plugin.cpp: Fix GetValue and implement SetValue.
5693 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5695 * moon-plugin.h: Change plugin name, version and description to mimic
5696 SilverLight and can be recognize as a valid plugin.
5698 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5700 * moon-plugin.c: Destroy objects on class destructor to prevent browser
5703 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5705 [Clean up demo and make some class fields private ]
5707 * moon-plugin-glue.c,
5709 * moon-plugin.c: Now just a surface control is added to plugn container,
5710 some field is now private demo was refactored.
5712 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5714 * Makefile.am: Compile if needed for install-plugin target.
5716 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5718 [Move to c++ based classes ]
5720 * moon-plugin-glue.c: Fix getvalue to return error when no instance
5724 * moon-plugin.c: Change all function to class methods, also move wrapper
5725 functions to moon-plugin-glue.
5727 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5731 * moon-plugin-glue.c: Remove moon_plugin_initialize and moon_plugin_shutdown
5732 since whe alread have NP_Initialize and NP_Shutdown. Also change
5733 PluginInstance structure to class (complete class suppont comming soon).
5735 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5737 * moon-plugin-glue.c: Some comments and stetic changes.
5739 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5741 * moon-plugin.h: Mime type description chage to 'WPFe Plug-In' to handle
5742 SilverLight objects.
5744 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5747 * moon-plugin.h: Remove unused members to provide a clean code.
5749 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5751 * Makefile.am: Fix link options.
5753 2007-06-03 Everaldo Canuto <ecanuto@novell.com>
5755 * moon-plugin-glue.c:
5757 * moon-plugin.h: Rename initialise to initialize.
5759 * Makefile.am: Add libmoon to link and install it on plugin dir.
5761 2007-06-02 Everaldo Canuto <ecanuto@novell.com>
5763 * moon-plugin-glue.c: Renamed to moon-plugin-glue.cpp.
5764 * moon-plugin.c: Renamed to moon-plugin.cpp.
5765 * Changelog: Create a separated change log for plugin.
5766 * Makefile.am: Renamed to moon-plugin.cpp.
5767 * moon-plugin.h: Renamed to moon-plugin.cpp.
5769 [Also add a sample to show libmoon features in browser]