Commit Graph

566 Commits

Author SHA1 Message Date
Ben Turner
dac5a3fee3 Bug 542915 - 'Protect DelayedReleaseGCCallback from reentering and double-freeing NPObjects' r=jst+josh.
--HG--
extra : transplant_source : %5B%C1%C3QH%22%22%24%9D%A2%CE%E9%907%941%8F%F5%07%19
2010-02-01 12:35:48 -08:00
Josh Aas
4a93f5fe9f Clean up a bunch of things in nsNPAPIPlugin. b=543339 2010-01-31 16:41:26 -05:00
Daniel Holbert
32a1fb0c00 Bug 542959: Add 'const' to NP_GetMIMEDescription's parameter, to fix "deprecated conversion from string constant to ‘char*’" warning. r=cjones 2010-01-29 12:18:50 -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
Ben Turner
33a8aae576 Bug 542337 - '[OOPP] hang in test_plugin_clipping2.xhtml' Followup fix, r=roc.
--HG--
extra : transplant_source : ._%92%D6%40%FE%1E%92%01%11%7F%BA%2A%EF%24Y%84%DC6%0E
2010-01-28 12:23:07 -08:00
Ben Turner
453fbad6ed Bug 542337 - '[OOPP] hang in test_plugin_clipping2.xhtml' r=jimm. 2010-01-28 11:32:41 -08:00
Benjamin Smedberg
4245b947f3 Bug 539063 - Implement a whitelist/blacklist for OOPP, r=josh 2010-01-28 10:31:53 -05:00
Oleg Romashin
2d419b5929 Bug 534644 - implement Qt ipc/chromium backend, first part. r=benjamin, r=jones.chris.g 2010-01-28 07:22:41 +02: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
Benjamin Smedberg
f55c3f38ef 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.
--HG--
extra : transplant_source : %C4et%5B3%B1%163N%84%FF%04%BB%0AC%8E%A7%0AzX
2010-01-27 11:31:03 -05:00
Benjamin Smedberg
05f44c363f 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.
--HG--
extra : transplant_source : %D7R%95%D1%FD%14%F3%F0V%033%0BQ%3F%9E%AB%E4%A7%A7J
2010-01-25 17:26:23 -05:00
Benjamin Smedberg
ce6c755ed6 Bug 541707 - semi-random failures in test_crashing2.html, probably due to interminism in the crash/crashreport/reload sequence
--HG--
extra : rebase_source : eaa6c45f5383e14b7d64dc71bc84c91256144864
2010-01-27 08:49:36 -05:00
Jim Mathies
757c1b3d63 Bug 540052 - [OOPP] Test failure in test_plugin_focus.html. r=bent.
--HG--
extra : rebase_source : bdb40f27e098519ecd71abd75a80e8e612f888f8
2010-01-26 15:40:15 -06:00
Josh Aas
2e7df95914 Get rid of nsPluginInstanceTagList. Make this code easier to deal with and less error-prone. b=535643 r=jst 2010-01-26 20:30:58 -05:00
Gavin Sharp
937dce11b7 Bug 189378: add pref to disable plugins in the browser, r=josh
--HG--
extra : rebase_source : 7f70e2585d6b2840fa801969e5af50c5e81caca8
2009-10-05 05:00:57 -04:00
Jonathan Griffin
fe5929b77f Bug 539755. Fix tests to use 'basic' instead of 'http' for the scheme parameter. 2010-01-26 09:22:49 -08:00
Jonathan Griffin
5040e737a1 Bug 518924. Fix memory leak in NPAPI async callback test and re-enable 2010-01-25 12:20:30 -08:00
Phil Ringnalda
574c919e99 Bug 518924 - disable mochitests, since one of them is leaking every Md6 run on Windows and Linux 2010-01-22 22:16:16 -08:00
Jonathan Griffin
d736eba473 Bug 518924. Add tests for NPAPI timers and async callbacks. r=bsmedberg 2010-01-22 17:13:26 -08:00
Jonathan Griffin
ce90ed0a0d Test for bug 539755, NPN_GetAuthenticationInfo
--HG--
extra : transplant_source : %1E%F7%C1%BF0%14Ul%0Ex%ABJ%0A%B9Z%0CX4%02%98
2010-01-21 14:35:03 -05:00
Benjamin Smedberg
915969ff29 Bug 541155 - test_loadflags.html doesn't reset prefs properly (manifests as a failure in modules/plugin/test/test_cookies.html), r=dwitte
--HG--
extra : transplant_source : VM%EB%A5.b%EC%CB1%1FGB%C2%A0%0E%C4%60%B0r4
2010-01-21 14:11:49 -05:00
Benjamin Smedberg
bb04a0052e Remove the result-initialization from e9c045ce1618 which shouldn't be needed, bug 540776 fixed this the correct way.
--HG--
extra : transplant_source : %E1%B4%D8%1E%84%8C%8F%A5%3A%E8%C7%FB%17%F2%DA%05%DDE%B6%21
2010-01-20 14:08:42 -05:00
Saint Wesonga
c5d2e640b0 Bug 538816 - Fix typos in "basic" SDK sample plugin. r=josh 2010-01-21 13:16:51 +01:00
Josh Aas
811332f5a6 Fix default plugin drawing on Mac OS X. No bug. r=smichaud 2010-01-20 18:59:38 -05:00
Benjamin Smedberg
83a5e9f243 Followup to bug 530980 - Make the setCookie() method initialize its return value 2010-01-19 17:34:10 -05:00
Josh Aas
dd2c892251 Add a plugin test that sets and then gets a cookie. b=530980 r=roc 2010-01-19 15:45:21 -05:00
Jim Mathies
c816891a55 Bug 539955 - [OOPP] unit test failure in test_plugin_mouse_coords.html. r=bsmedberg.
--HG--
extra : transplant_source : o%008%29%A0%96%60%E1W%7D%1A%C7e%BDJ%B2D%EE%1D%E2
2010-01-15 16:02:01 -06:00
Ben Turner
471d1a3e1b Bug 521377 - 'NPRuntime: Segfault when NPP_GetValue_NPPVpluginScriptableNPObject returns a null actor'. r=bsmedberg+valgrind.
--HG--
extra : transplant_source : %F8%7C%B6%C49%24%9A%E0%96%EA%10%E9%C7%C0%EF%EA%D6%7FT%9A
2010-01-15 12:35:57 -08:00
Peter Van der Beken
076d23ead6 Backout 76cdc8296409 and 9baa220b27c0 (Bug 521377 - 'NPRuntime: Segfault when NPP_GetValue_NPPVpluginScriptableNPObject returns a null actor') to try fo fix orange. 2010-01-19 13:00:58 +01:00
Ben Turner
37ff4409a5 Bug 521377 - 'NPRuntime: Segfault when NPP_GetValue_NPPVpluginScriptableNPObject returns a null actor'. r=bsmedberg+valgrind. 2010-01-15 12:35:57 -08:00
Chris Jones
80b004dd05 Bug 538532: When a plugin crashes, make sure all its instances are "stopped" ASAP. r=bsmedberg r=josh
--HG--
extra : rebase_source : 4355e574e5cf74da76ef5773e16fa3bd9a09225e
2010-01-12 00:45:24 -06:00
Chris Jones
2d1e4c2722 Bug 538532: Add the helper method nsPluginHost::FindTagForPlugin(). r=josh
--HG--
extra : rebase_source : c7192818d9f6e42510e681286a4dda774df8a94c
2010-01-12 00:45:23 -06:00
Josh Aas
9f1683fecf Sent "PluginCrashed" notification when a plugin crashes. b=519541 r=jst r=bsmedberg 2010-01-13 11:42:41 -05:00
Benjamin Smedberg
6d0ab1c884 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
84797e72d2 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
100035ff72 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
095bd7f538 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
66ce889c9b 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
bd95331a3a Bug 536303 - OOPP: disable oopp for Windows 2000. r=benjamin. 2010-01-10 17:50:36 -06:00
Benjamin Smedberg
43b7734985 Tests for bug 532246, r=jst 2009-12-02 12:02:16 -05:00
Benjamin Smedberg
86980c504e 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
bd19a6fd42 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
0487ff44e4 Minor cleanup, no bug. a=bsmedberg 2010-01-05 13:30:00 -05:00
Chris Jones
a20ac7326a Bug 535687: Fix regression in forwarding NPN_InvalidateRect() for OOPP on linux. r=bent 2010-01-04 15:46:34 -06:00
Makoto Kato
86412ece0c 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
023f0431f3 Fix test_painting.html bustage on Win and OS X from changeset 4f5630e68d04 2009-12-31 11:11:17 +01:00
Karl Tomlinson
b3ef40a9ee 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
0794ab1863 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
cf708b8138 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
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