Commit Graph

87 Commits

Author SHA1 Message Date
Robert O'Callahan
863afc3119 Bug 617718. Don't process invalidates if we're stopping. r=bsmedberg a=bsmedberg 2010-12-21 15:03:00 -08:00
Benjamin Smedberg
b5c8de3824 Bug 606285 and Bug 583109 - Send the "visible" notification when painting with async layers, so that when a plugin goes from invisible to visible it starts sending asynchronous paints. Suspend sending surface updates for asynchronous plugins when they are invisible, and set the empty clipRect so that the plugin knows that drawing is suspended per the new API. Assume that plugins are visible again when a Paint or BuildLayer call is received. r-pending=karlt 2010-11-05 10:40:55 -04:00
Benjamin Smedberg
0a2062e721 Merge mozilla-central to the branch for bug 596451. 2010-10-28 10:05:20 -04:00
Benjamin Smedberg
151a8aa808 Bug 596451 part H - Make our quirk of silverlight transparent by default active in the plugin process, to match the logic in nsNPAPIPluginInstance. This makes the Microsoft Surface website paint correctly. r=jimm 2010-10-27 09:13:53 -04:00
Benjamin Smedberg
ae4a853966 Bug 596451 part D - Hook up asynchronous plugin painting on Windows. This part allows opaque plugins to paint correctly. r=jmathies 2010-10-25 13:57:13 -04:00
Benjamin Smedberg
135698e22c Merge mozilla-central with the asynchronous plugins painting branch. 2010-10-13 10:45:01 -04:00
Benjamin Smedberg
f176e663d6 Bug 596451 part B - UseAsyncPainting really shouldn't need to dig very far or use an outparam, r=romaxa 2010-09-21 17:10:45 -04:00
Oleg Romashin
42bbe5a57c Bug 598112 - UseAsyncPainting, always return FALSE becuase plugin mRunning == FALSE. r=roc a=blocking2.0 2010-09-20 21:16:37 -07:00
Doug Turner
21dd89698d Backing out Bug 598112. This caused perma orange on 597742. a=me 2010-09-20 23:24:18 -07:00
Doug Turner
49d8611636 Bug 598112 - UseAsyncPainting, always return FALSE becuase plugin mRunning == FALSE. r=roc a=npodb 2010-09-20 21:16:37 -07:00
Oleg Romashin
27fa97f1ea Bug 556487 - Disable layers for non-ipc API. r=roc a=blocking2.0 2010-09-15 09:02:47 -07:00
Oleg Romashin
a02cd4afb2 Bug 599476 - windowless plugins in object elements with data (e.g. certain Flash pages) are not painted. r=karlt a=beta7 2010-10-02 09:00:45 -07:00
Jacek Caban
0456af894a Bug 603373 - Remove unused library argument of NS_TRY_SAFE_CALL_* macros r=joshmoz a=benjamin 2010-10-14 21:06:31 +00:00
Oleg Romashin
1aa4439c1d Bug 556487 - Plugin child/parent/PluginInstance API part. r=roc a=blocking2.0
--HG--
extra : rebase_source : 2c07b0dd0f24e704571f43d3e44dd4126a7b3c7d
2010-09-10 11:28:52 -07:00
Josh Aas
80c7aced07 Bug 584143 - Crashes when streams are open and a plugin instance is closed at/under nsNPAPIPluginInstance::Stop, r=bsmedberg 2010-08-09 14:38:43 -04:00
Josh Aas
7c2ba6e19d Bug 542971, bug 577985: Includes a number of plugin module memory mgmt fixes. Remove/replace nsPluginInstanceTag (instance tags), stop storing the plugin library and function table twice. r=jst 2010-07-19 22:11:26 -04:00
Josh Aas
4e23705cc3 Bug 579516: Patch contains a number of fixes to nsPluginStreamListenerPeer memory management. Also moves storage of the stream array for cache lookups to the plugin instance rather than the instance tag. Also stops adding streams to the cached list that shouldn't be there. r=benwa 2010-07-17 19:47:29 -04:00
Josh Aas
d581ec02fb Move nsNPAPIPluginStreamListener implementation to its own file. b=578383 r=jst 2010-07-13 14:42:03 -04:00
Josh Aas
f53cb167f3 Fix mStreamListeners incorrectly initialized to nsnull. Also remove a bad comment. b=577982 2010-07-12 16:22:51 -04:00
Josh Aas
83ec99695c Improve stream listener management for plugin instances. b=554524 r=jst 2010-07-09 11:16:47 -07:00
Josh Aas
dc18091697 Add support for Cocoa NPAPI complex text input. This patch contains a TSM-based implementation for 32-bit builds, and an NSInputContext-based implementation for 64-bit builds. b=512886 r=smichaud sr=jst 2010-06-09 20:56:17 -04:00
Josh Aas
7d5bba7e58 Backed out changeset 8e2ff18bc67e 2010-06-09 01:25:11 -04:00
Josh Aas
1a4c1a7bba Improve nsNPAPIPluginInstance's stream management. r=jst 2010-06-08 23:28:40 -04:00
timeless@mozdev.org
ab5979bb55 Bug 559349 - nsNPAPIPluginInstance::ScheduleTimer leaks newTimer when do_CreateInstance fails, r=jst
--HG--
extra : rebase_source : 7766f8a1a3eadcb2e034741d5624d1347fd1edca
2010-04-14 09:03:00 -07:00
Jim Mathies
7707aba969 Bug 558434 - Winless, transparent, silverlight doesn't display correctly. r=josh. 2010-04-12 16:37:28 -05:00
Josh Aas
08dbdff9f4 Back out patch from bug 554524 due to crashes. 2010-04-09 11:08:55 -04:00
Josh Aas
51c1f31f5c Improve nsNPAPIPluginInstance's stream management. Streams shouldn't keep strong references to their instances. Replace ugly linked list storage. b=554524 r=jst 2010-04-07 16:30:32 -04:00
Josh Aas
ec35e887a5 Fix a compiler warning in nsNPAPIPluginInstance.cpp. No bug. 2010-03-25 14:57:30 -04:00
Josh Aas
c953e77bdc Fix incorrect type usage for NPP_SetValue NPNVprivateModeBool. b=544158 r=karlt 2010-03-17 13:17:09 -04:00
Benjamin Smedberg
0ac333446e Bug 550944 - If a stream is alive at instance destruction, make sure we fire NPP_DestroyStream and NPP_URLNotify correctly. Also make the new-stream functions (NPN_GetURL etc) fail while we are destroying a plugin instance, r=josh
--HG--
extra : rebase_source : e94bc08bcc04c2ead28ac14bce7e3320a49c9d5a
2010-03-08 16:54:04 -05:00
Benjamin Smedberg
2a5f3518de 1;2cBug 548217 - Make NP_SEEK streams work properly: they shouldn't crash if NPN_RequestRead is called after all the stream data is delivered, and they should call NPP_DestroyStream when NPN_DestroyStream is called, but not before. To this end, the classes nsPluginStreamInfo and nsPluginStreamListenerPeer have been unified: the nsNPAPIPluginStreamListener holds the stream listener peer alive so that additional range requests can be made on it. In addition the nsNPAPIPluginStreamListener holds *itself* alive for NP_SEEK streams, and only calls releases itself/calls CleanUpStream when the plugin explicitly calls NPN_DestroyStream or when the associated plugin instance is being destroyed. r=josh
--HG--
extra : rebase_source : 372df117d2b0c955605f44ee0e2fa512f0ad972b
2010-02-23 21:58:27 -05:00
Benjamin Smedberg
0b629a5939 Backed out changeset f829f942873d - bug 548217 because of topcrash bug 549112 2010-02-27 17:36:54 -05:00
Benjamin Smedberg
958042217d Bug 548217 - Make NP_SEEK streams work properly: they shouldn't crash if NPN_RequestRead is called after all the stream data is delivered, and they should call NPP_DestroyStream when NPN_DestroyStream is called, but not before. To this end, the classes nsPluginStreamInfo and nsPluginStreamListenerPeer have been unified: the nsNPAPIPluginStreamListener holds the stream listener peer alive so that additional range requests can be made on it. In addition the nsNPAPIPluginStreamListener holds *itself* alive for NP_SEEK streams, and only calls releases itself/calls CleanUpStream when the plugin explicitly calls NPN_DestroyStream or when the associated plugin instance is being destroyed. r=josh/jst 2010-02-23 21:58:27 -05:00
Benjamin Smedberg
7985a1dcb1 Backed out changeset 77dc38d8196e - bug 548217 because even though this patch is correct, it exposes a bug in the OOPP code which got backed out. 2010-02-25 03:57:57 -08:00
Benjamin Smedberg
4a49a68e09 1;2cBug 548217 - Make NP_SEEK streams work properly: they shouldn't crash if NPN_RequestRead is called after all the stream data is delivered, and they should call NPP_DestroyStream when NPN_DestroyStream is called, but not before. To this end, the classes nsPluginStreamInfo and nsPluginStreamListenerPeer have been unified: the nsNPAPIPluginStreamListener holds the stream listener peer alive so that additional range requests can be made on it. In addition the nsNPAPIPluginStreamListener holds *itself* alive for NP_SEEK streams, and only calls releases itself/calls CleanUpStream when the plugin explicitly calls NPN_DestroyStream or when the associated plugin instance is being destroyed. r=josh
--HG--
extra : rebase_source : fba343acbfcaa785c7405552d42f4558424b485c
2010-02-23 21:58:27 -05:00
Karl Tomlinson
a4cd333dde b=543901 only call NPPluginFuncs::getvalue when non-NULL and remove NPP_GetValue NPPVpluginWindowBool NPPVpluginTransparentBool r=cjones 2010-02-04 13:02:48 +13:00
Doug Turner
c5fb72ab64 Bug 543976 - Clean up Maemo defines. r=ted 2010-02-09 11:02:11 -08:00
Benjamin Smedberg
6db43fb19a revert changeset f61e06c31086 (bug 542971) since it caused bug 543376. 2010-02-02 17:18:37 -08:00
Josh Aas
46d060dccd Get rid of nsPluginInstanceTag. Clarifies the plugin object hierarchy and makes it easier to get from one object to another. We avoid unnecessary null checks and strong references due to clarified lifetimes dependencies between objects. Makes all of this code less error-prone. b=542971 r=jst 2010-01-29 14:42:54 -05:00
Chris Jones
c22de50bdf Bug 542356: Initialize the NPError outparam passed to NPP_New() so that plugins must set it to NPERR_NO_ERROR (and so as to work around a valgrind UMR false-positive for OOPP). r=joshmoz 2010-01-27 17:45:34 -06:00
Michael Wu
27fd1e717b Bug 273025 - "bad logic results in potential leak xor crash based on flow" (Improve GetURL/PostURL code, v4 (2/2)) [r+sr=jst] 2009-12-27 14:26:00 -06:00
Josh Aas
ac8d51b495 Improve plugin instance stopped/started state management. b=535660 r=roc 2009-12-17 21:09:22 -05:00
Benjamin Smedberg
999be86ac2 Merge mozilla-central into electrolysis. 2009-12-14 08:01:18 -05:00
Ben Turner
6e20a64631 Backing out changesets ed8d3323a50d, 3930bbdffdd5, 36e32abd2cc8, f4bcfc703ff9, 21051d997076, and 49f489315dd9 at the request of bsmedberg. 2009-12-11 12:48:37 -08:00
Benjamin Smedberg
487e2582f8 Bug 532700 - nsNPAPIPluginInstance can outlive its nsNPAPIPlugin, sr=jst pending r=josh 2009-12-03 15:33:27 -05:00
Benjamin Smedberg
767eb11cb4 Merge mozilla-central into electrolysis 2009-12-04 11:28:50 -05:00
Ben Turner
b17063546e Bug 526401 - Fixup handling of null NPP. r=bsmedberg. 2009-12-01 13:27:13 -08:00
Josh Aas
783c445e79 Fixing bug 520639. Make plugin library unloading independent of the lifetime of nsPluginTag objects. Patch and reviews by jst@mozilla.com and joshmoz@gmail.com, a=blocking1.9.2+ 2009-12-02 21:14:13 -08:00
Benjamin Smedberg
17cf638aac Merge mozilla-central into electrolysis. 2009-11-11 12:35:42 -05:00
Benjamin Smedberg
eba77abeb6 Merge mozilla-central into e10s. 2009-10-28 11:32:00 -04:00