~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/modules/plugin/samples/npthread/windows/readme.txt

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
03-05-2002
 
2
 
 
3
This sample is an attempt to write a wrapper plugin which would run the
 
4
real plugin in a separate thread. The current code is just a first prototype
 
5
version aimed to determine the very possibility of such thing. It is not
 
6
designed to handle more than one instance of one plugin. Another limitations
 
7
are: it only relays browser-to-plugin calls in thread event based matter
 
8
(calls from the plugin to the browser are just made directly by function
 
9
pointer; it does not implement notifications back from the plugin thread
 
10
to the calling thread, so it simply waits before each NPP_* call until
 
11
the plugin thread is done with the previous NPP_* call.
 
12
 
 
13
The wrapper tested with Basic plugin sample from the plugin
 
14
SDK, so some common plugin crashes can be modelled. Work is still
 
15
required to make it functional with more complicated plugins
 
16
like Flash.
 
17
 
 
18
Steps to see it in action:
 
19
 
 
20
  -- place the wrapper plugin (npthread.dll) in the plugins folder
 
21
  -- remove npnul32.dll from the plugins folder
 
22
  -- rename the plugin you want to run in a separate thread adding
 
23
     two zeroes at the beginnig (ren npbasic.dll 00npbasic.dll)
 
24
  -- run test case for the plugin in question