Граф коммитов

2293 Коммитов

Автор SHA1 Сообщение Дата
Benjamin Smedberg ecbdf8052f Disable the malformed-data-URI test, since the plugin host is broken and we're double-deleting the urlnotify context pointer in the testplugin.
--HG--
extra : transplant_source : %1Et%11L%F7%13%F6%FCl%C4%0C%C8%95%04%AF-%14%0E%C1%B5
2010-01-11 14:36:11 -05:00
Benjamin Smedberg 70bfad82d1 Our plugin host has a bug with malformed data URIs: mark this test todo.
--HG--
extra : transplant_source : %F1%3F%BD%26%1E%DF%1De%0E%1A%18%8C%C7%1F%D6m%0CIQ%88
2010-01-07 14:51:37 -05:00
Benjamin Smedberg eef6630000 Followup to bug 536437 - fix the test so that we wait for the new tests to complete
--HG--
extra : transplant_source : %B0%87%C6%A1%3C%29%C0e%8C%99%A9%11%7E_%AA%B9r%D8%10%A6
2010-01-07 10:57:18 -05:00
Benjamin Smedberg 3315c0741b Tests for bug 536437
--HG--
extra : transplant_source : %5D.%3C%D9%90%C6%A9B%5E%F8O4%F5e%95%0AO%BC8%27
2010-01-05 12:12:41 -05:00
Jim Mathies 55744c00f9 Bug 536303 - OOPP: disable oopp for Windows 2000. r=benjamin. 2010-01-10 17:50:36 -06:00
Benjamin Smedberg 47ca8f9948 Tests for bug 532246, r=jst 2009-12-02 12:02:16 -05:00
Benjamin Smedberg bae03e41a8 Bug 532246 - Plugins should not be able to obtain an NPObject* belonging to a different NPP, because that instance may go away before this one and the NPObject* may be invalidated and destroyed. Double-wrap in these cases. r=josh sr=jst 2009-12-02 12:02:41 -05:00
Robert O'Callahan 120a435f76 Bug 527864. Add support to the test plugin to detect what width was used at the last paint. r=josh 2010-01-07 14:11:27 +13:00
Josh Aas 4ef1870cfe Minor cleanup, no bug. a=bsmedberg 2010-01-05 13:30:00 -05:00
Chris Jones ad47f303ae Bug 535687: Fix regression in forwarding NPN_InvalidateRect() for OOPP on linux. r=bent 2010-01-04 15:46:34 -06:00
Makoto Kato fed8dbbb8a Bug 535495 - build break test plugin on x64 due to changeset 9c16bf14545c. r=josh 2010-01-01 23:00:18 +09:00
Dão Gottwald 3eb63496f4 Fix test_painting.html bustage on Win and OS X from changeset 4f5630e68d04 2009-12-31 11:11:17 +01:00
Karl Tomlinson 65c1f4f6f8 bug 535687 is not fixed yet so mark todo for mochitest-ipcplugins
--HG--
extra : rebase_source : ff6a13dc4dfbbac62071328bc9202eb2f9169d99
2009-12-31 20:32:51 +13:00
Karl Tomlinson 2e7c6c3336 test windowless invalidation (b=535687) and expose events with clips (b=445707)
--HG--
extra : rebase_source : 4befde6a6635d53f60e628b74576cc1dcb1fe1c2
2009-12-31 16:20:51 +13:00
Karl Tomlinson 2490fe0cf7 b=537301 add sanity checks on expose event rectangle and use for drawmode=solid r=roc
--HG--
extra : rebase_source : f2ccccc0d7e16c17f70048b856cf08c4ed20c774
2009-12-31 16:19:30 +13:00
Michael Wu 8730dac85f 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
Jacek Caban 78159e772a Bug 535872 - Make nptest_windows.cpp compile on new mingw, r=roc 2009-12-29 14:21:49 -05:00
Benjamin Smedberg 2df5aaba03 Fix the test for bug 535298 - because plugin instantiation is asynchronous, we are crashing the plugin process after we meant to, which leads to a JS error and a hung test 2009-12-22 10:38:42 -05:00
Benjamin Smedberg 44909e79f9 Test for bug 535298, crashes which occur during NPP_New or NPP_Destroy 2009-12-21 12:37:32 -05:00
Benjamin Smedberg 4de88f4c18 Re-enable test_crashing.html on the electrolysis branch to see how random/reproducible it is. 2009-12-17 13:11:49 -05:00
Oleg Romashin 8e838137c4 b=532627; nsPluginHostImpl::WritePluginInfo should call PR_Sync before PR_Close, r=jst 2009-12-23 13:58:54 +02:00
Blake Kaplan 846ed79289 Bug 535641 - Move this declaration around. r=jst 2009-12-22 16:54:06 -05:00
Josh Aas f8ae6ca13f Improve plugin instance stopped/started state management. b=535660 r=roc 2009-12-17 21:09:22 -05:00
Josh Aas 1e904c425e Stop storing xpconnect status in the plugin tag, it isn't used any more. b=535502 r=roc 2009-12-17 12:22:46 -05:00
Benjamin Smedberg 30c3724c8f Disable test_crashing.html because it may be causing hangs still and I have little confidence in it yet. 2009-12-16 22:09:42 -05:00
Benjamin Smedberg 33ea815453 Merge mozilla-central to electrolysis. 2009-12-16 19:02:20 -05:00
Josh Aas eb2e6714c6 Fix plugin host so that idle event timer can QI correctly and make the callback. b=535357 r=smichaud 2009-12-16 15:54:16 -05:00
Benjamin Smedberg 1f863b7fb6 Bug 532751 - Notify the nsNPAPIPlugin and the related nsNPAPIPluginInstances when a plugin crashes so that reloading will create a new plugin process, r=josh 2009-12-16 15:08:45 -05:00
Benjamin Smedberg 716afda214 Followup to review comment for bug 534866: don't set fCallbacks.size twice on MacOSX. 2009-12-16 09:10:30 -05:00
Benjamin Smedberg b51dfb8d55 Merge mozilla-central into electrolysis 2009-12-16 08:38:42 -05:00
Josh Aas 228289bbf8 Separate plugin tag code from the plugin host. b=533371 r=jst 2009-12-16 08:16:42 -05:00
Benjamin Smedberg 9391ef02ad Bug 534866 - Fix Java and WMP plugins on Windows by initialize NPPluginFuncs.size before calling NP_Initialize, regression from bug 516509 which landed with the e10s merge, a=blocker-regression r?pending from josh 2009-12-15 21:24:26 -05:00
Benjamin Smedberg 83b97480d2 Merge mozilla-central into electrolysis. 2009-12-15 20:31:04 -05:00
Josh Aas 67bf82a379 Windows bustage fix, b=533371 2009-12-15 20:21:57 -05:00
Robert O'Callahan e0905a7d9c Backing out test for bug 533371 to try to fix leaks 2009-12-16 12:54:59 +13:00
Robert O'Callahan 80c9b59aca Backed out changeset 682926ebca13 2009-12-16 12:54:30 +13:00
Josh Aas 781b6e1ced Separate plugin tag code from the plugin host. b=533371 r=jst 2009-12-15 17:47:22 -05:00
Josh Aas 38215c054b Back out bug 533371 due to Windows bustage. 2009-12-15 22:16:04 -05:00
Josh Aas 8d0cd4a112 Backed out changeset cbb4f67c6b68 2009-12-15 22:15:39 -05:00
Josh Aas 16d0eea5a7 Backed out changeset 892d3eb10151 2009-12-15 22:14:48 -05:00
Josh Aas 75ab03884b Greatly reduce the number of timers firing when multiple Carbon plugin instances are active on Mac OS X. Should reduce CPU usage. Make all instances use the same (at most two) timers for idle events. b=519598 r=roc 2009-12-15 15:44:52 -05:00
Josh Aas 348c5ba6e1 Add a plugin test that sets and then gets a cookie. b=530980 r=roc 2009-12-15 15:14:03 -05:00
Jim Mathies 8334063adb Bug 531860 - plugin-alpha-zindex ref test fails with oopp enabled. r=jmuizelaar. 2009-12-14 18:27:25 -06:00
Josh Aas c4ecb63431 Unset the plugin instance on the plugin instance owner if the instance fails to initialize. b=533030 r=jst 2009-12-15 15:28:12 -05:00
Benjamin Smedberg 23b210b34f test_crashing.html had windows-style line endings. 2009-12-14 09:14:28 -05:00
Benjamin Smedberg a54e6acfd8 Merge mozilla-central into electrolysis. 2009-12-14 08:01:18 -05:00
Ben Turner f9ead8a5d6 Backing out changesets ed8d3323a50d, 3930bbdffdd5, 36e32abd2cc8, f4bcfc703ff9, 21051d997076, and 49f489315dd9 at the request of bsmedberg. 2009-12-11 12:48:37 -08:00
Jonathan Griffin 569ac26eaa Bug 533482. Let plugin crashtest notify testrunner that no leak log is expected when the plugin process is deliberately crashed. r=bsmedberg 2009-12-09 10:51:38 -08:00
Benjamin Smedberg 4bfe0eedb4 Comment out the crash test until we can fix the leaking nsPluginHost as well as tell the test harness that it's ok that the crashing plugin process didn't print leak information. 2009-12-05 13:53:12 -05:00
Chris Jones 58d23e83f6 rename conflicting crash() symbol that's breaking the mac build 2009-12-04 23:15:18 -06:00
Benjamin Smedberg 097464f8b7 Oh snap! nsPluginTag.mEntryPoint became a nsCOMPtr in a merge and ended up being double-released. Victory is mine! 2009-12-04 23:27:32 -05:00
Benjamin Smedberg 3e52740eeb Add a .crash() method to the testplugin, and test that crashing throws exceptions in the parent. 2009-12-03 15:33:25 -05:00
Benjamin Smedberg f1d7c769d8 !MOZ_IPC build bustage from bug 532751
--HG--
extra : rebase_source : a0b3a3318d3cd3d03fb034ae4d9fd5ab6cb9454a
2009-12-04 13:53:59 -05:00
Benjamin Smedberg 87941a941e Bug 532751 - Stop cacheing the nsNPAPIPlugin when it crashes, so that refreshing the page immediately reloads the plugin, r=bent pending r?joshmoz 2009-12-04 13:24:57 -05:00
Benjamin Smedberg 3bcd07af0a Bug 532700 - nsNPAPIPluginInstance can outlive its nsNPAPIPlugin, sr=jst pending r=josh 2009-12-03 15:33:27 -05:00
Benjamin Smedberg 4e352d7aeb Merge mozilla-central into electrolysis 2009-12-04 11:28:50 -05:00
Benjamin Smedberg 66b55c595d Bug 532605 - _write conflicts with symbols in the MSVC runtime. Remove all vestiges of PR_BEGIN_EXTERN_C from nsNPAPIPlugin.{h,cpp}, so that these functions are given C++ mangled names in the namespace we actually declared for them. 2009-12-03 09:17:49 -05:00
Ben Turner a6336324be Don't let plugin return a null window object and NPERR_NO_ERROR, r=jst. 2009-12-01 15:08:16 -08:00
Ben Turner d98c67138d Bug 526401 - Fixup handling of null NPP. r=bsmedberg. 2009-12-01 13:27:13 -08:00
Josh Aas 0855e6122a 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 e98d1daf07 Merge mozilla-central into Electrolysis 2009-11-30 12:59:43 -05:00
Johnny Stenback 284cdb995e Fix for bug 531290 (Firefox 3.6b4 [@ PL_strlen | nsNPAPIPluginInstance::Initialize(nsIPluginInstanceOwner*, char const*) ] during npietab.dll initialization [@nsCOMPtr_base::assign_from_qi(nsQueryInterface, nsID const&) | xul.dll@0x9cc3c3 ]). r=josh, a=blocking1.9.2+. 2009-11-30 11:11:20 +01:00
Benjamin Smedberg 3e0ae20e17 Bug 530894 - Clean up TODOs in the plugin stream remoting: if NPN_{Get,Post}URLNotify fail, clean up the actor properly. Also deal with null postdata, which currently causes significant problems for the in-process case (NPN_PostURLNotify succeeds, but NPP_URLNotify is never called). r=bent 2009-11-25 09:26:01 -05:00
Josh Aas be5277e691 Fix a bug that prevents NPAPI plugins from retrieving cookies. b=526462 r=roc 2009-11-25 02:40:46 -05:00
Benjamin Smedberg e53a7195d5 Merge mozilla-central into Electrolysis. 2009-11-24 10:06:03 -05:00
Josh Aas 150742a63c Forgot null checks for NPN_MemAlloc in patch for bug 530138. NPOB. 2009-11-23 14:08:41 -05:00
Josh Aas 9caf7d271d Bug 530138, npruntime sample plugin not using NPN_MemAlloc when it should. NPOB. 2009-11-23 13:57:27 -05:00
Benjamin Smedberg 188d096d5c Don't crash if NP_Initialize failed remotely: PluginLibrary::NP_Initialize returns an nsresult, not a NPError; nsNPAPIPlugin::CreatePlugin fails but still sets the outparam; nsPluginHost doesn't properly rv-check nsNPAPIPlugin::CreatePlugin, which causes us to think the bad plugin is actually good. I hate stupid failure chains! 2009-11-20 10:34:20 -05:00
Chris Jones d6c803e859 bug 530007: fix crashing edge cases in the hope of getting better diagnostics about failed tests 2009-11-20 02:23:07 -06:00
Benjamin Smedberg d74c6776f3 Merge mozilla-central into electrolysis. 2009-11-19 12:41:46 -05:00
Benjamin Smedberg 0f5c51eda6 Bug 523769 - Don't call into plugin hooks (specifically NPObject.deallocate) while mid-GC, r=jst+mrbkap 2009-11-17 14:51:46 -05:00
Ben Turner 82191b418a Bug 525792 - 'Fix leaks running mochitests'. 2009-11-12 14:16:54 -08:00
Benjamin Smedberg e9c5c10cac The test plugin over-retains its scriptable object: NPN_CreateObject returns a retained object, so there's no need to retain it again. This shouldn't fix the leak but it does expose the bug bent just fixed. 2009-11-11 23:46:56 -05:00
Benjamin Smedberg d8c7dfc1dd Merge mozilla-central into electrolysis. 2009-11-11 12:35:42 -05:00
Ben Turner d515b14aeb Fix silly bugs 2009-11-09 17:30:02 -08:00
Benjamin Smedberg 1d97bbb36a Merge from mozilla-central. 2009-11-06 09:54:28 -05:00
Benjamin Smedberg 584a2a5fee Disable the NPN_SetException tests for the time being until the e10s bug is fixed. 2009-11-04 13:11:20 -05:00
Chris Jones c916fbb575 bug 525792: fix leaking PluginModules, call NP_Shutdown() on plugins. minor, no r= 2009-11-03 15:37:07 -06:00
Benjamin Smedberg 34440c4bbc Merge mozilla-central into e10s. 2009-10-28 11:32:00 -04:00
Josh Aas 552eb2b966 Allow multiple types of OOP plugins to load. b=516509 r=cjones 2009-10-27 15:51:12 -04:00
Ben Turner f78672f07d Don't let people get the order of includes wrong in this horrifying patchwork of chromium and mozilla types 2009-10-21 16:01:16 -07:00
Benjamin Smedberg 9ae75c423f Merge mozilla-central to electrolysis. 2009-10-20 12:08:28 -04:00
Jonathan Griffin f38ec24291 Bug 522791. Add basic tests for NPN_SetException.
--HG--
extra : rebase_source : 5d4f69cb5c54136775f0752713d055ad9f407c7a
2009-10-19 14:00:59 -07:00
Jonathan Griffin 15b6ef249f Bug 518940. Amend NPN_InvokeDefault tests to include multiple-argument and no-argument tests.
--HG--
extra : rebase_source : 65df67027083f5474a3a82297b9a597b8458d06f
2009-10-16 15:29:15 -07:00
Jonathan Griffin 3f3a0c3b8f Bug 522400. Fix a typo which prevented the invokedefault method on plugin-defined objects from being called. r+sr=jst 2009-10-16 10:27:33 -07:00
Benjamin Smedberg 960781ec85 Merge mozilla-central to electrolysis to pick up bug 515436. 2009-10-12 10:51:38 -04:00
Rich Walsh 2a2bea0133 [OS/2] Bug 516274 - fix plugin focus issues, r=pweilbacher 2009-10-12 11:10:38 +02:00
Ben Turner 423c5543dd Bug 516524 - Support NPRuntime across processes. r=bsmedberg. 2009-10-07 16:50:48 -07:00
Ben Turner 1458356fce Merge mozilla-central 2009-10-05 16:08:52 -07:00
Jonathan Griffin 28daeffe12 Bug 521329. Fix linux compiler warnings in test plugin. 2009-10-08 15:37:08 -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
Chris Jones 026f20f14d basic support for windowless X11 plugins. gfx not quite working yet 2009-09-24 21:03:59 -05:00
Ben Turner 9914a675f3 Merge mozilla-central 2009-09-23 13:14:34 -07:00
Benjamin Smedberg c6559e76ed Followup to bug 517078 - separate out the plugin tests so that each test is separate. This makes it easier to see what the test is doing, has fewer potential interactions between tests, and made it easier to debug Electrolysis. Reworked slightly and r=griffin
--HG--
extra : rebase_source : 8eaf51a366d7cd08db23a29f2d112351a46e4dc7
2009-09-23 09:49:49 -04:00
Rich Walsh ed05982a6f [OS/2] Bug 517880 - Build Break following removal of nsplugindefs.h, r=pweilbacher 2009-09-22 15:49:26 +02:00
Benjamin Smedberg 54ae75f5f4 Merge mozilla-central into electrolysis to pick up new plugin tests. 2009-09-21 10:57:57 -04:00