Commit Graph
97 Commits
Author SHA1 Message Date
Robert O'Callahan c4c6998edf Bug 594774. Tests for this bug. r=dbaron a=blocking 2010-09-17 12:09:09 -07:00
Robert O'Callahan 4fb6e168c1 Bug 580160. Test plugin needs to invalidate itself if its size changes. r=josh 2010-08-02 15:07:07 +12:00
Benjamin Smedberg 55645fa8ce 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
Robert O'Callahan be40efddef 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
a9508f0096 Bug 563200 fix deprecated conversion and comparison between signed and unsigned in testplugin/nptest.cpp. r=jst 2010-05-23 15:32:42 -07:00
Neil Rashbrook 1285f2e1c9 Bug 564068 Test plugin should always use the NPN allocator r=jst 2010-05-11 10:46:38 +01:00
Benjamin Smedberg 88a4db1c18 Test for bug 564861 - Make sure that integer identifiers work correctly when running OOPP 2010-05-10 17:11:31 -04:00
Benjamin Smedberg abc0b50c8b Test for bug 564607 - Firefox crashes when an OOPP plugin implements NPClass.enumerate 2010-05-10 17:11:14 -04:00
Dão Gottwald d5fa1b514f Backed out changeset 1052ee218ba6 2010-05-02 14:19:54 +02:00
88528777ae 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 098e280346 test for bug 540114 2010-04-29 09:03:34 +12:00
Josh Aas 621e7d7d17 Focus event fixes for Cocoa NPAPI. b=559758 r=roc a=#developers 2010-04-25 16:58:03 -04:00
Josh Aas f13dd41281 Add support for NPCocoaEventWindowFocusChanged. b=555290 r=roc 2010-04-21 02:21:46 -04:00
Chris Jones 3e4b495b83 test for bug 550026 2010-04-21 15:33:14 +12:00
Benjamin Smedberg 686c84b28c Bug 558397 - Some PDF files don't open when loaded full-page because the nsNPAPIPluginStreamListenerPeer.mURI isn't initialized in that case, r?josh 2010-04-12 14:40:38 -04:00
Ben Turner 3f30138000 Bug 556849 - '[OOPP] Reduce unnecessary HasProperty calls for plugin scriptable objects'. r=jst+josh+bsmedberg. 2010-04-07 17:16:19 -07:00
Ben Turner cb55b88cd7 Backed out changeset 0ed675647700 for failing tests 2010-04-07 15:01:23 -07:00
Ben Turner d8be84b7c8 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 9b6a443446 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 39991bbc03 test bug 539897 r=jimm 2010-03-26 14:49:46 +13:00
Chris Jones 155f899de8 Backing out bug 550026 due to orange 2010-03-11 05:07:20 -06:00
Chris Jones 06df096044 test for bug 550026 r=karlt+cjones 2010-03-08 09:17:57 +13:00
Benjamin Smedberg ce2cea7caa Test for bug 550944 - When a stream is alive when a plugin instance is destroyed, NPP_DestroyStream and NPP_URLNotify are never called 2010-03-08 12:16:35 -05:00
Benjamin Smedberg e67276613f 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 2010-02-23 21:58:27 -05:00
Benjamin Smedberg dfda838312 Merge backout of bug 548217 because of topcrash bug 549112 2010-02-27 17:40:03 -05:00
Benjamin Smedberg 68a5e7ca2b Backed out changeset f829f942873d - bug 548217 because of topcrash bug 549112 2010-02-27 17:36:54 -05:00
Benjamin Smedberg d8254a006a 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 512e1b0f7c Bug 532208: Test for large streams 2010-02-26 13:07:58 -06:00
Benjamin Smedberg cd14d34dbc Merge backout of bug 548217 2010-02-25 03:59:05 -08:00
Benjamin Smedberg cb68a05b3f 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 53014bbe9e 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 2010-02-23 21:58:27 -05:00
Ben Turner e48f725afd Fix #warning, msvc doesn't have that. 2010-02-16 13:04:16 -08:00
Chris Jones e901872b92 Bug 544945: Mochitest of clipboard interaction that forces the plugin subprocess into a nested event loop on gtk2 platforms. r=karlt 2010-02-16 12:44:26 -06:00
Benjamin Smedberg 65655b7cfe 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
Chris Jones e32ba3f5c6 Bug 544345: Mochitest of plugin hangs. r=bsmedberg 2010-02-11 14:32:19 -06:00
Benjamin Smedberg b57767483f Testcase for bug 542263 - crash at NPObjWrapper_NewResolve or various other places 2010-02-03 09:09:16 -05:00
Daniel Holbert f915342d86 Backed out changeset 8006ad2d0c06 (tests for bug 542263), since its test 'test_GCrace.html' failed on OSX in its first cycle. 2010-02-02 18:57:15 -08:00
Benjamin Smedberg 99e01f98a8 Testcase for bug 542263 - crash at NPObjWrapper_NewResolve or various other places 2010-02-02 17:18:41 -08:00
Benjamin Smedberg 31bb96a56b When calling a null function pointer, breakpad apparently skips a frame. In order for intentionalCrash() to appear in the minidump, try dereferencing a null pointer instead. 2010-01-27 11:31:03 -05:00
Benjamin Smedberg 248c93d114 Rename Crash() to IntentionalCrash() so that automation can grep for it. Make it non-static, and add trailing instructions to it so that it isn't inlined nor tail-called away in crash reports. 2010-01-25 17:26:23 -05:00
Jonathan Griffin 8d902b3ff0 Bug 518924. Fix memory leak in NPAPI async callback test and re-enable 2010-01-25 12:20:30 -08:00
Jonathan Griffin b43bd2e379 Bug 518924. Add tests for NPAPI timers and async callbacks. r=bsmedberg 2010-01-22 17:13:26 -08:00
Jonathan Griffin c23d403c6a Test for bug 539755, NPN_GetAuthenticationInfo 2010-01-21 14:35:03 -05:00
Benjamin Smedberg e0c2d46609 Remove the result-initialization from e9c045ce1618 which shouldn't be needed, bug 540776 fixed this the correct way. 2010-01-20 14:08:42 -05:00
Benjamin Smedberg 31159b30c6 Followup to bug 530980 - Make the setCookie() method initialize its return value 2010-01-19 17:34:10 -05:00
Josh Aas 6a522ea369 Add a plugin test that sets and then gets a cookie. b=530980 r=roc 2010-01-19 15:45:21 -05:00
Benjamin Smedberg fcac5857cb Bug 538642 part 1: Add a method to the testplugin to set the exception bit, the way some bad plugins/extensions do, r=ted (Windows-only for the moment) 2010-01-08 15:53:04 -05:00
Benjamin Smedberg 4e231b3a0c Tests for bug 532246, r=jst 2009-12-02 12:02:16 -05:00
Robert O'Callahan f3657a3f58 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
Benjamin Smedberg abf7900740 Test for bug 535298, crashes which occur during NPP_New or NPP_Destroy 2009-12-21 12:37:32 -05:00