Commit Graph

2616 Commits

Author SHA1 Message Date
Josh Aas
6989f1220a Fix mStreamListeners incorrectly initialized to nsnull. Also remove a bad comment. b=577982 2010-07-12 16:22:51 -04:00
Robert Sayre
86b530a417 Merge mozilla-central to tracemonkey. 2010-07-11 16:23:48 -07:00
Makoto Kato
ca4131be55 Bug 574095 - crash loading test plugin on 64-bit win7 tests in /layout/generic/crashtests/505912-1.html , /tests/layout/generic/test/test_plugin_clipping.xhtml [@ _SetWindowLongPtr() | nsPluginNativeWindowWin::SubclassAndAssociateWindow]. r=joshmoz 2010-07-12 13:49:12 +09:00
Robert Sayre
2fd899ed0f Merge mozilla-central to tracemonkey. 2010-07-02 17:25:52 -07:00
Josh Aas
6ee6e0f0e7 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
9a8a73ee06 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
9d110a0600 Improve memory mgmt and reduce COM pointer type usage in plugin stream code. b=578913 r=benwa (re-landing, did not cause Ts Shutdown regression) 2010-07-16 15:55:54 -04:00
Josh Aas
ff84c50aad Backed out changeset 764bb4ae886c, bug 578913, it may be at fault for a Ts Shutdown regression. 2010-07-16 13:25:01 -04:00
Josh Aas
ee2aabe5e5 Improve memory mgmt and reduce COM pointer type usage in plugin stream code. b=578913 r=benwa 2010-07-15 22:30:07 -04:00
Robert O'Callahan
0970406293 Bug 564991. Part 37: Add test plugin API to make the plugin invalidate itself during each paint. r=josh 2010-07-16 09:08:11 +12:00
Robert Sayre
e3ad7b484c merge tracemonkey to mozilla-central. 2010-07-14 06:00:32 -07:00
Josh Aas
7cd34cf663 Move nsPluginStreamListenerPeer to its own files, clean up the plugin host. b=578447 r=benwa 2010-07-13 16:48:00 -04:00
Josh Aas
91d27b3dc6 Move nsNPAPIPluginStreamListener implementation to its own file. b=578383 r=jst 2010-07-13 14:42:03 -04:00
Josh Aas
fada1b3fd6 Remove nsPluginCacheListener, it is unused. b=578285 r=benwa 2010-07-13 02:58:30 -04:00
Benjamin Smedberg
995c9cbf9a Bug 582012 - register identifiers in the ID maps when they are created by the browser, so that a plugin never sees two identifiers for the same string/integer, r=bent 2010-07-28 13:20:33 -04:00
Steven Michaud
f3b2471ebf Bug 577967 - Crash [@ NSAddImage ] on startup on 2.0 branch. r=josh 2010-07-21 11:27:13 -05:00
Chris Jones
8b2a196f48 Temporarily disable plugin crash submission tests. See bug 573290 2010-07-01 20:01:09 -05:00
Benjamin Smedberg
e17740e1ab Merge mozilla-central to the bug 568691 branch.
--HG--
rename : gfx/public/nsITheme.h => gfx/src/nsITheme.h
2010-06-30 14:23:23 -04:00
Ted Mielczarek
07f98626ad bug 574357 followup, don't run the new test on platforms where we don't build crashreporter. Should also fix bug 574118. r=bsmedberg 2010-06-30 11:10:46 -04:00
Ted Mielczarek
ee8378966a bug 574357 - Plugin crash reports are submitted with Throttleable=0. r=dolske
--HG--
rename : modules/plugin/test/mochitest/test_crash_notify_no_report.xul => modules/plugin/test/mochitest/test_crash_submit.xul
2010-06-30 10:29:05 -04:00
Justin Dolske
9e6760b252 Backed out changeset e112f68bc941 (bug 574357) due to test failures. 2010-06-29 22:45:30 -07:00
Ted Mielczarek
7bd46535a1 bug 574357 - Plugin crash reports are submitted with Throttleable=0. r=dolske
--HG--
rename : modules/plugin/test/mochitest/test_crash_notify_no_report.xul => modules/plugin/test/mochitest/test_crash_submit.xul
2010-06-29 19:34:39 -04:00
Benjamin Smedberg
e4311303e0 Bug 574457 - Back out the functional changes from revision 0327e126ea24, bug 569644, because of 100ms (20%) Ts regression on Linux/Mac. This leaves the nsIContentUtils helper function, but restores the plugin host category entry munging. 2010-06-29 16:56:13 -04:00
Benjamin Smedberg
29e089defb Merge mozilla-central into the branch for bug 568691, including fixup of the new jetpack binary module. 2010-06-25 19:41:09 -04:00
Benjamin Smedberg
822ccb0789 Merge mozilla-central into the static-xpcom-registration branch. 2010-06-23 17:26:25 -04:00
Benjamin Smedberg
0df0345c66 Merge mozilla-central into the "branch" for but 568691. The omnijar XPT/component/chrome registration was removed during this merge, and will be re-added to the component manager shortly.
--HG--
rename : content/base/public/nsIChromeRegistry.idl => chrome/public/nsIChromeRegistry.idl
2010-06-21 11:41:42 -04:00
Chris Jones
a6c0e90e24 Bug 572295: Add X11Util.h for X11 toolkits. r=karlt,joedrew 2010-06-21 15:35:49 -05:00
Benjamin Smedberg
a7e67d32ad Bug 568691 part B - mechanical changes to in-tree binary modules needed to get them building and registering correctly. After this patch, xpcshell appears to work. 2010-06-10 14:11:40 -04:00
Benjamin Smedberg
9403279763 Bug 569644 - Query the plugin host directly when searching for MIME types, rather than using Gecko-Content-Viewer category manager registration, r=bz 2010-06-10 12:42:16 -04:00
Josh Aas
2422ca8d7a Sync NPAPI headers to npapi-headers repository r27. b=571538 r=jst r=mstange 2010-06-15 15:34:32 -04:00
Benedict Hsieh
85affcc0ec Bug 570980 - intermittent failure in test_fullpage.html | An error occurred - frameLoaded is not definedfixes race in plugin mochitest. r=bz 2010-06-11 12:02:44 -07:00
Josh Aas
d5610f20b4 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
Mats Palmgren
7a656c7ffc Null-check frame (which is needed when bounds width/height is zero) and clamp negative values to zero. b=570884 r=josh 2010-06-09 21:07:41 +02:00
Josh Aas
5f7472e719 Merge of backout for 8e2ff18bc67e, bug 554524 2010-06-09 01:26:01 -04:00
Josh Aas
d4374546c4 Backed out changeset 8e2ff18bc67e 2010-06-09 01:25:11 -04:00
Benoit Girard
e7b90eddff Implement InvalidatingCoreAnimation Drawing Model. b=559211 r=josh 2010-06-09 00:11:48 -04:00
Josh Aas
fad57cbfe8 Improve nsNPAPIPluginInstance's stream management. r=jst 2010-06-08 23:28:40 -04:00
Jeff Walden
5ec929857e Bug 518663 - ES5: Object.getOwnPropertyNames. r=jorendorff 2009-09-24 14:33:14 -07:00
Robert Sayre
9b4b59c837 Merge mozilla-central to tracemonkey.
--HG--
rename : dom/indexedDB/IDBCursorRequest.cpp => dom/indexedDB/IDBCursor.cpp
rename : dom/indexedDB/IDBCursorRequest.h => dom/indexedDB/IDBCursor.h
2010-06-30 11:54:20 -07:00
Robert Sayre
103fa1295e Merge mozilla-central to tracemonkey. 2010-06-21 18:01:14 -07:00
Luke Wagner
41b9495dcf Bug 565157 - typed JS_AddRoot (r=igor) 2010-06-07 17:05:02 -07:00
Josh Aas
d60f7f0292 Don't build demo Linux printing plugin by default. b=573945 r=jst 2010-06-25 10:47:35 -04:00
Ms2ger@gmail.com
91560b026e Bug 538362 - rename nsIDocument::GetPrimaryShell to nsIDocument::GetShell. r=smaug 2010-06-25 15:59:57 +02:00
Josh Aas
92a0d331b4 Improve stream listener management for plugin instances. b=554524 r=jst 2010-07-09 11:16:47 -07:00
Brad Lassey
e56873c251 bug 577347 - testplugin doesn't build for android r=joshmoz 2010-07-09 10:57:10 -07:00
Jim Mathies
8bc3dda4a0 merge backout. 2010-06-02 17:18:04 -05:00
Jim Mathies
bf9772fc55 Bug 518915 - revert comment changes, 'clipRect' is not valid on all platforms. No bug. 2010-06-02 17:16:11 -05:00
timeless@mozdev.org
449707a88b Bug 563200 fix deprecated conversion and comparison between signed and unsigned in testplugin/nptest.cpp. r=jst
--HG--
extra : rebase_source : 79958d664a02ad215198770a0c979b21ba3fca24
2010-05-23 15:32:42 -07:00
Oleg Romashin
3c481f45ca Bug 566845 - Make desktop flash plugin works on Fennec QT. r=dougt. 2010-05-21 13:19:57 -04:00
Ben Turner
86b537203d Bug 560974 - 'Firefox 3.6.4 Crash [@ mozilla::plugins::PluginScriptableObjectParent::GetPropertyHelper]'. r=jst. 2010-05-17 15:18:48 -07:00
Josh Aas
362a52d70e Disable plugin mochitest "test_crashing2.html" due to intermittent orange. b=566049 CLOSED TREE 2010-05-17 15:21:46 -04:00
Josh Aas
8eb42619db Remove default plugins. b=533891 r=dolske sr=jst 2010-05-14 13:08:12 -04:00
Mitchell Field
0fd15d94da Bug 564950 - Make more use of mozilla::services, r=surkov, jst, neil, smontagu, roc, joshmoz, gavin, shaver 2010-05-14 18:24:41 +09:00
Josh Aas
06a2bfa2fb Backed out changeset 558df3e5b094 due to talos master issue. 2010-05-13 15:56:19 -04:00
Josh Aas
3467785222 Remove default plugins. b=533891 r=dolske sr=jst 2010-05-13 14:54:26 -04:00
Michael Kohler
6c0f59f4a6 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Josh Aas
e0c65af7d5 Check NPAPI plugin architecture on Windows so we don't list or attempt to load binaries of the wrong arch. b=551471 r=jmathies 2010-05-12 14:13:09 -04:00
Neil Rashbrook
60bef0c205 Bug 564068 Test plugin should always use the NPN allocator r=jst 2010-05-11 10:46:38 +01:00
Neil Rashbrook
ce7aad0a41 Bug 564070 Remove unnecessary string clone r=jst 2010-05-11 10:45:15 +01:00
Phil Ringnalda
6dbc5788bb Backed out changeset e074757a15aa (bug 533891) due to xpcshell orange after a clobber 2010-05-10 21:38:56 -07:00
Josh Aas
c989084c54 Remove default plugins. b=533891 r=dolske sr=jst 2010-05-10 20:21:31 -04:00
Benjamin Smedberg
fd0090d3ff Test for bug 564861 - Make sure that integer identifiers work correctly when running OOPP 2010-05-10 17:11:31 -04:00
Benjamin Smedberg
11fa580385 Test for bug 564607 - Firefox crashes when an OOPP plugin implements NPClass.enumerate 2010-05-10 17:11:14 -04:00
Josh Aas
b9b41eae5a Sync Mozilla's NPAPI headers to npapi-headers r12. b=563448 sr=jst 2010-05-06 01:13:11 -04:00
Josh Aas
9d4f11e20b Backed out changeset 955501353745 2010-05-05 15:58:41 -04:00
Josh Aas
cb1d47cd2e Sync Mozilla's NPAPI headers to npapi-headers r10. b=563448 sr=jst 2010-05-05 15:46:32 -04:00
Peter Van der Beken
ac35089169 Part 1 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsINode::GetBaseURI. r=sicking.
--HG--
extra : rebase_source : 5a07f12d9d13d92b796fd5f2cb182b069c3f87bf
2010-04-19 17:40:15 +02:00
Karl Tomlinson
631037a1ca b=518915 remove incorrect comment about clipRect "Used by MAC only" r=josh
--HG--
extra : rebase_source : 008b54b52b8e4e40cf3295c759389494f1cbcfd2
2009-10-14 15:40:44 +13:00
Karl Tomlinson
6f4fb3531e b=521940 don't paint the plugin socket window to avoid flicker on load r=roc
--HG--
extra : rebase_source : 9a0f5cf10ecd3c939e6f13c14c9bcd88ace5d457
2009-10-14 15:38:31 +13:00
Karl Tomlinson
a3c6852b14 b=521872 fix up expose event handling in sample unix print plugin r=gavin
--HG--
extra : rebase_source : b25466a231799cc0f87fdd930b13897a3f7e9b93
2009-10-14 15:35:47 +13:00
Karl Tomlinson
5124921205 b=520107 test plugin should not use gdk_window_foreign_new to lookup pixmap r=roc
--HG--
extra : rebase_source : 2d815c7a9ebda774d8913c518317b96cbbf60ac3
2009-10-05 14:07:38 +13:00
Jonathan Griffin
0c3b927121 Bug 518940. Remove Date test to fix orange
--HG--
extra : rebase_source : 440da08b5813f48e250a5a2c8708f6724e7666cf
2009-10-13 14:05:56 -07:00
Jonathan Griffin
0ee1013cfa Bug 518940. Fix intermittent orange. 2009-10-12 14:35:21 -07:00
Jonathan Griffin
1f2d72eb7a Bug 518940. Add tests for NPN_InvokeDefault. r=bsmedberg 2009-10-12 10:38:11 -07:00
Rich Walsh
2a2bea0133 [OS/2] Bug 516274 - fix plugin focus issues, r=pweilbacher 2009-10-12 11:10:38 +02:00
Jonathan Griffin
28daeffe12 Bug 521329. Fix linux compiler warnings in test plugin. 2009-10-08 15:37:08 -07:00
Jonathan Griffin
ad50a2449d Bug 517078. Move 'using namespace' out of header files, per comment from roc.
--HG--
extra : rebase_source : a67c25de3a53131df3e7dd68c0ae4209f496ea58
2009-10-07 16:48:31 -07:00
Jonathan Griffin
452bcdd767 Bug 518940. Tests for NPN_Invoke. 2009-10-07 10:27:37 -07:00
Chris Jones
2151b59798 Merge backout 2009-10-02 18:09:39 -05:00
Chris Jones
708e2e04ae Backed out changeset 8cbc47eee659 2009-10-02 18:09:08 -05:00
Jonathan Griffin
ad289df5bd Bug 517078. Add plugin stream tests for NPP_ functions returning errors. 2009-10-02 15:18:25 -07:00
Blair McBride
86cf9e1b49 Bug 514327 - Detect outdated plugins and offer upgrade path. ui-r=beltzner, r=dtownsend,josh 2009-10-02 13:26:04 +02:00
Chris Jones
f2df9d3504 bug 441324: implement infallible ::operator new(), malloc() and friends. make |new Foo()| infallible, but leave |malloc()| fallible for the time being. r=blassey sr=bsmedberg,vlad 2009-10-01 21:50:09 -05:00
Robert O'Callahan
549d1578f2 Bug 508495. Let CSS borders and padding apply to plugin elements, and fix layout, painting and event handling to work with them. r=dbaron
--HG--
extra : rebase_source : c42240c5a88dc05579b658f8cc29ff289422986b
2009-09-11 13:44:20 +12:00
Robert O'Callahan
4dc8105944 Bug 509693. Make Windows test plugin in windowed mode have a child widget, and add API so we can check that that child widget is in the right place. r=josh
--HG--
extra : rebase_source : ad7de0da07561499e68229503945713c2f390aa1
2009-09-24 21:35:17 +12:00
Dão Gottwald
69cbbfd527 Backed out changeset 1052ee218ba6 2010-05-02 14:19:54 +02:00
timeless@mozdev.org
36c60ea697 Bug 556309 getError with STRINGZ_TO_NPVARIANT macro evaluates argument (strdup) more than once
r=jst
2010-05-02 12:48:48 +02:00
Karl Tomlinson
2e816aad51 Test for bugs 539138 and 561308
--HG--
extra : rebase_source : dc21594a77c8ecb91801cf4bc322491fcf00d8b1
2010-04-29 23:02:52 +12:00
Mitchell Field
f544d71a9d Bug 560095 - Use mozilla::services::GetObserverService(). r=biesi,dveditz,gavin,josh,jst,mrbkap,roc,sdwilsh,shaver,sicking,smontagu,surkov 2010-04-29 18:59:13 +02:00
Karl Tomlinson
113e2e9cf9 test for bug 540114
--HG--
extra : rebase_source : eea4efe6cd81312c2d7e8894d8662e24868132b8
2010-04-29 09:03:34 +12:00
Karl Tomlinson
ec41275b62 b=561770 soft fail with todo if the plugin doesn't crash at precisely the right time
--HG--
extra : rebase_source : e035ef1b8c4e40354704c173977c08855081f90c
2010-04-29 08:53:12 +12:00
Mats Palmgren
94009c51d2 Invert CSS transforms for the mouse event coordinate sent to the plugin. Original fix by Victor <vik@dhtmlx.com>. b=539565 r=josh 2010-04-27 18:15:02 +02:00
Benjamin Smedberg
cc4567e009 Bug 559425 - Don't assert if a plugin tries to call NPRuntime methods on a plugin in a document that has already navigated away, r=jst 2010-04-27 09:54:37 -04:00
timeless@mozdev.org
63a9e73cef 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
Josh Aas
c6d0881712 64-bit Windows NPAPI fix, change wParam and lParam types to uintptr_t. b=560298 sr=roc a=#developers 2010-04-25 19:55:17 -04:00
Josh Aas
c28e6f9d01 Focus event fixes for Cocoa NPAPI. b=559758 r=roc a=#developers 2010-04-25 16:58:03 -04:00
Julian Seward
6ea8b27d6b Bug 557209. Initialize 'name' so we don't use it unintialized if GetPluginName fails. r=joshmoz 2010-04-23 14:55:22 +12:00
Rich Walsh
cc7bf936b1 Bug 553882 - [OS/2] Plugin-related coding errors. r=wuno 2010-04-22 14:58:49 +02:00
Josh Aas
08b4ba1802 Don't run Flash 10.1 out of process on Mac OS X if machine has an Intel GMA9XX GPU. b=559441 r=bgirard 2010-04-21 19:57:22 -04:00
Josh Aas
cd2f3e4eba Add support for NPCocoaEventWindowFocusChanged. b=555290 r=roc 2010-04-21 02:21:46 -04:00
Oleg Romashin
01323285b2 Bug 464966 - Add NPAPI Plugin support for Mozilla Qt. r=karlt
--HG--
extra : rebase_source : d86430f750bbedde12e779f0073369a3b05b2427
2010-04-20 21:49:34 +03:00
Chris Jones ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E)
faa1d08bc2 test for bug 550026
--HG--
extra : rebase_source : 4fde8da0a361a36da3540c9295762b4b744d1e5c
2010-04-21 15:33:14 +12:00
Karl Tomlinson
12d31d5fca correct title
--HG--
extra : rebase_source : e2208a02660bd5255933840fe3c051cc4110b6b6
2010-04-21 15:01:56 +12:00
Benjamin Smedberg
a0512c468a Test for bug 560213 - heap corruption accessing new properties of a crashed plugin
--HG--
extra : rebase_source : 96ef81257c3b23ddf50daa9df85cae54559fe86a
2010-04-19 10:35:51 -04:00
David Baron
c66b15e601 Bug 502301 - fix C++0x narrowing conversion inside {} compilation errors [r=benjamin] 2010-04-20 10:41:21 +02:00
Benoit Girard
4311364274 Backed out changeset 44ee6030f4b2 2010-04-19 02:57:22 -04:00
Benoit Girard
51b3305c85 Bug 555281 - Implement Core Animation NPAPI Drawing Model for OOPP. r=joe,josh,cjones
--HG--
extra : rebase_source : 29f581f60c6db0e8945a5121cf2d7007b10a7433
2010-04-18 19:46:33 -04:00
Mike Hommey
5b4de4aeec Bug 550668: nsIPluginTag should expose fullpath 2010-04-16 10:10:00 -07:00
Josh Aas
8a361cc9d3 64-bit Mac OS X bustage fix. b=555274 2010-04-14 19:33:50 -04:00
Josh Aas
43974522e0 Make Mac OS X test plugin more flexible about negotiating an event model. Allow it to negotiate the Cocoa event model when necessary (out of process, for example). b=555274 r=cjones 2010-04-14 19:02:25 -04:00
Benjamin Smedberg
7461591fc0 Bug 558390 followup, non-Windows build bustage and removal of unnecessary call/hacks for functions which aren't stdcall, r=josh 2010-04-13 12:32:10 -04:00
Benjamin Smedberg
0b6ea74a27 Bug 558390 - Quake Live crashes because it implements NP_Initialize using cdecl, instead of the correct stdcall. Force the calling function to use a frame pointer so that the stack pointer gets reset correctly before we return, r=jrmuizelaar, landing in mozilla-central for bake time pending review from josh or jst
--HG--
extra : rebase_source : dc32598b3ba1ad665b33146d298e01f64b58ef49
2010-04-13 12:10:00 -04:00
Jim Mathies
6c7c3fa12a Bug 558434 - Winless, transparent, silverlight doesn't display correctly. r=josh. 2010-04-12 16:37:28 -05:00
Benjamin Smedberg
b68d29ef38 Bug 558397 - Some PDF files don't open when loaded full-page because the nsNPAPIPluginStreamListenerPeer.mURI isn't initialized in that case, r?josh
--HG--
extra : rebase_source : 948a8ef46319d5107247493d6ed158c6c0608f6c
2010-04-12 14:40:38 -04:00
Craig Topper
8b8747d605 Bug 557416: Remove unnecessary includes and forward declarations of nsPresContext. r=roc 2010-04-10 16:10:12 -04:00
Josh Aas
a3064e1c0b Back out patch from bug 554524 due to crashes. 2010-04-09 11:08:55 -04:00
Justin Dolske
00bc1d0f32 Bug 544597 - Remap plugin names to a more readable form for plugin-crashed UI. r=gavin, r=jst 2010-04-08 00:45:00 -07:00
Chris Jones
9552c84738 Bug 557125: Don't use the STL wrappers in testplugin, it's not Gecko code. r=bsmedberg 2010-04-08 13:05:03 -05:00
Ehsan Akhgari
d8ba25d90f Bug 555289 - Plugin crashed UI should be RTL in RTL locales (Further fixes + tests); r=dao,dbaron 2010-04-07 19:35:09 -04:00
Josh Aas
9d64967c3c Fix 64-bit Mac OS X build bustage. b=543405 2010-04-08 05:54:11 -04:00
Ben Turner
951aa34684 Bug 556849 - '[OOPP] Reduce unnecessary HasProperty calls for plugin scriptable objects'. r=jst+josh+bsmedberg. 2010-04-07 17:16:19 -07:00
Josh Aas
0fbba96cdb Improve plugin loading code, make it more efficient and easier to understand. Allow Mac OS X plugins to modify their NPAPI function table. b=543405 r=jst 2010-04-07 18:14:54 -04:00
Ben Turner
2bae25ded8 Backed out changeset 0ed675647700 for failing tests 2010-04-07 15:01:23 -07:00
Ben Turner
a9579c61a0 Bug 556849 - '[OOPP] Reduce unnecessary HasProperty calls for plugin scriptable objects'. r=jst+josh+bsmedberg. 2010-04-07 13:55:10 -07:00
Josh Aas
4a1f53fbcb 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
4f7ff65327 Test plugin should always draw with Core Text on Mac OS X. b=557521 r=bgirard 2010-04-07 15:31:31 -04:00
Ginn Chen
628ce5bbb4 Bug 552622 Failed to build mochitest on Solaris r=ted.mielczarek 2010-04-07 14:17:51 +08:00
Robert Sayre
2c202e279b Merge tracemonkey to mozilla-central. 2010-04-05 13:17:29 -04:00
Benoit Girard
e5fd6e4dae Put Flash 10.1+ and JavaPlugin2 out-of-process by default on Mac OS X. b=556092 r=josh 2010-04-05 11:25:59 -04:00
Robert Sayre
0f3df923db Merge mozilla-central to tracemonkey. 2010-04-04 14:15:05 -04:00
Josh Aas
8015c79acc Only allow out-of-process plugins on Mac OS X 10.6 or higher. b=556545 r=bgirard 2010-04-03 11:19:50 -04:00
Josh Aas
9994fdbfbf Bug 555234: Enable OOPP for x86 OS X and don't export mochitests conditional on MOZ_IPC. r=bsmedberg,ted 2010-04-02 20:19:31 -05:00
Robert Sayre
7d438a554a Merge mozilla-central to tracemonkey. 2010-04-02 10:10:27 -04:00
Robert Sayre
1a657e9883 Merge mozilla-central to tracemonkey. 2010-03-30 21:13:01 -07:00
Jeff Walden
36182c5d48 Readd ctypes, xpconnect, plugin, xpinstall, canvas, and typed array changes from bug 548702. 2010-03-29 19:47:40 -07:00
Jeff Walden
cc578ac362 Merge. 2010-03-26 21:53:40 -07:00
Jeff Walden
1066acafbb Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\ 2010-03-26 18:01:54 -07:00
Marco Bonardo
75db30109e Bug 556231 - Tests are trying to QI to nsIDirectoryProvider, that does not exist. r=ted 2010-04-01 13:29:13 +02:00
Robert Sayre
4066e6b277 Merge mozilla-central to tracemonkey. 2010-03-13 11:51:12 -05:00
Joel Maher
6b6e9978a3 Bug 544097 Chaning mochitests to run against mochi.test instead of localhost r=ted, waldo, dwitte p=jmaher. Landed on CLOSED TREE 2010-03-12 13:53:36 -08:00
Jeff Walden
4509038fa5 Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
Josh Aas
0472de47fb Initialize NPP structure's pdata pointer to NULL. Plugins can mistake an uninitialized non-NULL value for their own instance pointer and try to dereference it. b=555312 r=BenWa 2010-03-29 10:16:27 -04:00
Karl Tomlinson
ef46fbfc83 test bug 539897 r=jimm 2010-03-26 14:49:46 +13:00
Josh Aas
b5a2f793a8 Fix NPAPI NPN_PushPopupsEnabledState and NPN_PopPopupsEnabledState signature mismatches, statically initialize browser-side NPAPI function table with no casting. b=554170 r=bent 2010-03-25 19:45:33 -04:00
Josh Aas
caf5efd0dd Back out patch for bug 554170 due to IPC bustage. 2010-03-25 17:11:14 -04:00
Josh Aas
bf99b4e405 Fix NPAPI NPN_PushPopupsEnabledState and NPN_PopPopupsEnabledState signature mismatches, statically initialize browser-side NPAPI function table with no casting. b=554170 r=bent 2010-03-25 16:33:40 -04:00
Josh Aas
50eecad577 Fix a compiler warning in nsNPAPIPluginInstance.cpp. No bug. 2010-03-25 14:57:30 -04:00
Chris Jones
374a7da472 Bug 544936, part 6: Submit a browser minidump along with the plugin's, if we got one. r=dolske,gavin,josh 2010-03-24 16:22:04 -05:00
Nickolay Ponomarev
b8962d0e86 bug 546629 - fix a wrong comment in the npruntime sample plugin code, r=joshmoz 2010-02-22 16:18:17 +03:00
Martin Stransky
2bf8037b2b Bug 528900: Null check at _[pop|push]popupsenabledstate to avoid crashing r=jst 2010-02-20 08:53:10 -05:00
Brad Lassey
611943fd65 Winmo bustage fix from bug 545080 r=dougt 2010-02-20 00:53:38 -05:00
Benjamin Smedberg
588fad4574 Followup to bug 545080, convert additional functions to the explicit "W" variants so that even when we're not building with -DUNICODE we always use unicode paths, r=Thunderbird bustage 2010-02-19 15:31:28 -05:00
Benjamin Smedberg
c78bfb5d4a Bug 545080 and bug 537344 - When UNICODE is defined in modules/plugin/base/src, we follow codepaths that aren't right, and the fields of nsPluginInfo are double-converted to UTF8, which is bad, r=josh 2010-02-13 16:59:39 -05:00
Karl Tomlinson
d3eca751b1 b=540114 process reparent requests before removing the X error handler r=cjones 2010-02-18 11:05:24 +13:00
Karl Tomlinson
2b2f55d9bc b=540114 reparent foreign children of the socket window before it gets destroyed r=cjones 2010-02-16 10:40:46 +13:00
Chris Jones
6bb3f969c1 Backing out bug 550026 due to orange 2010-03-11 05:07:20 -06:00
Chris Jones ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E)
5cbf4d155d test for bug 550026 r=karlt+cjones 2010-03-08 09:17:57 +13:00
Saint Wesonga
5f4aee574a Bug 550894 - unreachable code in nsPluginHost::PostURL. r=josh 2010-03-11 07:49:29 +01:00
Doug Turner
b3b69cc0bc Bug 550545 - The NPAPI ImageExpose event should be disabled when building for Qt. r=vlad
--HG--
extra : rebase_source : b66a81ba5a019e7da387eb81d4fd2454be196fe7
2010-03-10 15:01:46 -08:00
Josh Aas
5c2f8c4d8c More Carbon usage cleanup. b=550787 r=bsmedberg 2010-03-10 14:30:11 -05:00
Benjamin Smedberg
cd9ff48a56 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
21fd7095ee Test for bug 550944 - When a stream is alive when a plugin instance is destroyed, NPP_DestroyStream and NPP_URLNotify are never called
--HG--
extra : rebase_source : cd5a5bca0964294fd74ab70123e805c4e0f9deac
2010-03-08 12:16:35 -05:00
Brad Lassey
96319c4535 backing out changesets e939397fc6a5, 88529662c474 and 3d7c54b194bb due to random hangs in pgo tests 2010-03-09 22:33:11 -05:00
Julian Seward
81cdb45579 Bug 548441. Don't write to ndata after we delete the object it's in. r=bzbarsky 2010-03-09 14:38:13 -05:00
Joel Maher
1c8d232df2 Bug 544097 changing mochitests to use mochi.test instead of localhost for windows mobile refactoring p=jmaher, r=ted,dwitte, sayrer, waldo, ctalbert 2010-03-09 08:55:39 -08:00
Benoit Girard
984af21306 Add support for the NPAPI Core Animation drawing model. b=497225 r=josh sr=roc 2010-03-23 20:51:11 -04:00
Josh Aas
a5ed0a3773 Fix incorrect type usage for NPP_SetValue NPNVprivateModeBool. b=544158 r=karlt 2010-03-17 13:17:09 -04:00
Justin Dolske
1ab06617a3 Bug 550293 - plugin-crashed UI needs more user opt-in. r=vlad, ui-r=faaborg 2010-03-16 22:10:08 -07:00
Kyle Huey
a7c3948d0a Backed out changeset 8ce70abd7777 2010-03-09 01:14:21 -05:00
Joel Maher
694ec71da0 Bug 544097 Change mochitests to use mochi.test instead of localhost for mobile refactoring p=jmaher r=ted,dwitte,sayrer 2010-03-08 19:21:33 -08:00
Benjamin Smedberg
ed5399b833 Followup to bug 548217 - Instead of using a bizarre dual-refcounting scheme, explicitly track when nsPluginStreamListenerPeer.mLocalCachedFile is shared and should be deleted, r=josh
--HG--
extra : rebase_source : 97f6bebfdb99f0c0cbd8cd033e62492fcb755d09
2010-03-06 14:38:54 -05:00
Benjamin Smedberg
fbe4f3516c 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
Clint Talbert
5b4513c7e9 Backed out changeset b4372055f473 -- due to unexplained orange on OS X Leak test (Bd) box 2010-03-07 17:34:23 -08:00
Joel Maher
3cd691129e Bug 544097 - Change mochitests to use mochi.test instead of localhost for mobile test refactoring p=jmaher, r=sayrer,dwitte 2010-03-07 16:08:05 -08:00
Uli LInk
72ce0ee6b5 Bug 548213. Fix C++-style comment in C code. r=josh 2010-03-05 13:10:42 +13:00
Chris Jones
90e5b2265a Bug 441324, part 3: Configure and build changes for libmozalloc. r=bsmedberg 2010-03-03 23:02:57 -06:00
Chris Jones
a7ca970622 Bug 441324, part 1: Shuffle around includes to avoid problems with #define malloc et al. r=bsmedberg 2010-03-03 23:02:55 -06:00
Steven Michaud
1ad0342f76 Bug 542068 - Wrong coordinates set on synthesized plugin events. r=josh 2010-03-02 10:59:01 -06:00
Benjamin Smedberg
79ecdaf0ba Merge backout of bug 548217 because of topcrash bug 549112 2010-02-27 17:40:03 -05:00
Benjamin Smedberg
1f48854fb7 Backed out changeset f829f942873d - bug 548217 because of topcrash bug 549112 2010-02-27 17:36:54 -05:00
Benjamin Smedberg
e8eec56a98 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
9d0046758a Bug 532208: Test for large streams 2010-02-26 13:07:58 -06:00
Benjamin Smedberg
17a4b894c8 Merge backout of bug 548217 2010-02-25 03:59:05 -08:00
Benjamin Smedberg
c3db41eaeb 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
2c9d96f80b 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
Ben Turner
2e6db03591 Fix #warning, msvc doesn't have that.
--HG--
extra : rebase_source : 06b12ba7cb87045261a1bb042a654cac4d573bd1
2010-02-16 13:04:16 -08:00
Chris Jones
0860ce193a Bug 544945: Mochitest of clipboard interaction that forces the plugin subprocess into a nested event loop on gtk2 platforms. r=karlt
--HG--
extra : rebase_source : f9fb43d4bf4c3991bbdf30f6d999d315ee7a2407
2010-02-16 12:44:26 -06:00
Benjamin Smedberg
a91ddf5a32 Bug 547894 - Allow null in NPN_GetStringIdentifier(s) to fix a topcrash with the divx plugin, r=bent 2010-02-24 16:34:17 -05:00
Benjamin Smedberg
b20fd90a41 Bug 543977 - NPClass.invoke should be optional when a class just wants to implement NPClass.invokedefault, r=jst
--HG--
extra : rebase_source : 2e1fb9896bcbf12bc6d2772c02a1cc9557efe6eb
2010-02-17 13:30:54 -05:00
Benjamin Smedberg
a16f4e7e6e Actually run test_GCrace.html from bug 542263 which was committed in revision e9d8b376d014. The missing Makefile change is due to a bad transplant which I didn't notice :-( r=bent
--HG--
extra : rebase_source : 0057b1362919a34460ba3c72afd990952ad53d25
2010-02-17 13:30:37 -05:00
Karl Tomlinson
1ab656890e 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
Chris Jones
2874b31c9e Bug 544345: Mochitest of plugin hangs. r=bsmedberg
--HG--
extra : transplant_source : %0F%8A%10%CC%7C%A3%1C%F3%A1%05%B0%0D%AA%7EH%A6%29%23%EE%85
2010-02-11 14:32:19 -06:00
Oleg Romashin
12fceeb0cd bug 544193 - Qt version for plugins embedding functionality required. r=mozbugz. 2010-02-10 22:48:20 +02:00
Benjamin Smedberg
221d69205f Followup to bug 543086 - PBBUILD isn't set until you include config.mk, use PBBUILD_BIN instead 2010-02-10 12:40:53 -05:00
Ted Mielczarek
264dc95781 Bug 541446 - sort out details of where OOP minidumps should wind up. r=benjamin
--HG--
rename : modules/plugin/test/mochitest/test_crash_notify.xul => modules/plugin/test/mochitest/test_crash_notify_no_report.xul
2010-02-09 17:05:31 -08:00
Ted Mielczarek
2a33518c3c Bug 541076 - add minidump id and plugin name to PluginCrashed event. p=ted+dolske, r=jst, r=ted 2010-02-09 17:05:31 -08:00
Doug Turner
7892aabac9 Bug 543976 - Clean up Maemo defines. r=ted 2010-02-09 11:02:11 -08:00
Boris Zbarsky
91d68aa02c Bug 543086. Don't try to build the default plug-in on mac if we don't have pbbuild. It'll just fail. r=ted 2010-02-09 12:09:06 -05:00
Josh Aas
8d833150c4 Fix our plugin library loading code so that it works in 64-bit builds. 64-bit NSPR does not support bundle loading. b=544579 r=smichaud 2010-02-08 13:22:25 -06:00
Josh Aas
1cf0fb5154 More complete plugin architecture check for Mac OS X. Support 64-bit-only plugins and stop assuming that any universal binary plugin has the correct architecture. Fixes bug 544433 and bug 544437. r=smichaud 2010-02-06 23:29:58 -06:00