Jasper St. Pierre
2c9e6bb589
browser-plugin: Fix the browser plugin
...
commit 26991988cb
broke the browser plugin
by trying to reference a uninitialized pointer and making the NPAPI retain
a NULL object.
https://bugzilla.gnome.org/show_bug.cgi?id=668517
2012-01-30 19:26:50 -05:00
Jasper St. Pierre
26991988cb
browser-plugin: Refactor plugin_object_set_property, and fix a bug
...
If the user did "obj.onchanged = 1;" or passed another sort of invalid type,
then we would clear the old listener as well as throw an exception.
https://bugzilla.gnome.org/show_bug.cgi?id=668517
2012-01-26 05:13:21 -05:00
Jasper St. Pierre
15563444cf
browser-plugin: Fix callback for "onchange"
...
In the case that calling the listener fails, "result" may be uninitialized.
Sending NPAPI uninitialized memory is never a good idea.
https://bugzilla.gnome.org/show_bug.cgi?id=668517
2012-01-26 05:13:21 -05:00
Jasper St. Pierre
3bcdba6e1d
browser-plugin: Add a new "onshellrestart" API
...
This function is something the client sets and is called whenever the Shell's
DBus name is acquired.
https://bugzilla.gnome.org/show_bug.cgi?id=668517
2012-01-26 05:13:21 -05:00
Jasper St. Pierre
c6e924f788
browser-plugin: Fix leak in plugin_enable_extension
...
https://bugzilla.gnome.org/show_bug.cgi?id=668541
2012-01-25 19:02:08 -05:00
Jasper St. Pierre
54afb7b25e
browser-plugin: Fix installation on WebKit-like browsers
...
I missed this use of raw UTF8Characters last time. Hopefully this
should be the last fix required for WebKit support.
https://bugzilla.gnome.org/show_bug.cgi?id=666444
2011-12-18 18:29:55 -05:00
Jasper St. Pierre
02af8eb824
browser-plugin: Fix memory leak when passing an invalid UUID
...
https://bugzilla.gnome.org/show_bug.cgi?id=665261
2011-12-08 11:50:35 -05:00
Jürg Billeter
d5b4e30eb7
browser-plugin: Fix crash if shell is not running
2011-12-06 17:30:35 +01:00
Jasper St. Pierre
ab6a7773ce
browser-plugin: Make sure to use the UTF8Length parameter
...
Some plugin hosts may have junk after the UTF8Characters that we need to strip
off. No current browsers that I know of do this, but it still helps to be
correct.
2011-12-04 10:31:04 -05:00
Jasper St. Pierre
363bd04166
browser-plugin: Move "entry points" comment
...
https://bugzilla.gnome.org/show_bug.cgi?id=663823
2011-11-12 13:38:36 -05:00
Jasper St. Pierre
9bc1a68fe4
browser-plugin: Use g_strndup to get a string property
...
WebKit-based browsers like Chromium and Epiphany may insert extra junk at the
end of NPStrings, so we cannot depend on the strlen matching.
https://bugzilla.gnome.org/show_bug.cgi?id=663823
2011-11-12 13:38:36 -05:00
Jasper St. Pierre
2c2729f7be
browser-plugin: Set that we need XEmbed
...
This makes the plugin work under WebKit-based browsers such as Chromium and
Epiphany. See http://code.google.com/p/chromium/issues/detail?id=38229 and
WindowedCreatePlugin() in
http://src.chromium.org/viewvc/chrome/trunk/src/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc?revision=86823&content-type=text%2Fplain
for more information.
https://bugzilla.gnome.org/show_bug.cgi?id=663823
2011-11-12 13:38:36 -05:00
Jasper St. Pierre
52273b6c03
Move sweettooth-plugin into gnome-shell tree, rebrand
...
This is a direct import from http://github.com/magcius/sweettooth-plugin .
All the source code is the same, as it had no branding. Everything else is
just renaming and modifying the "build system" to work with gnome-shell's
existing one.
https://bugzilla.gnome.org/show_bug.cgi?id=658070
2011-09-12 14:37:20 -04:00