> Any ideas?

I have provided a testcase to make this easy.  The only hitch (which,
IMHO shouldn't really be considered a hitch) is that you have to have
Sun JDK 1.5.0 or later to run it.

I sure hope that doesn't scare people off.

Anyhow, the testcase is in the bug: https://bugzilla.mozilla.org/
show_bug.cgi?id=369376

But here it is for your convenience:

0. Make sure JDK 1.5.0 or later is installed on your machine

1. Decide what sort of XULRunner you want to use.  I recommend
building
   from source with debug enabled using the FIREFOX_1_5_0_9_RELEASE
CVS
   Tag.  This is exactly what I am using.

1.a If building from source, build with an objdir.  For the rest of
this
   testcase, we'll call this directory OBJDIR.

1.b If you don't want to build from source, you can also use this
nightly
   build of xulrunner:


ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2006-12-06-08-mozilla1.8.0/xulrunner-1.8.0.9.en-US.win32.zip

   This binary is built without debugging enabled, so you won't be
able to
   step into the offending mozilla code.  However, you will see the
   problem.

   When using the nightly binary from 20061206, create a fresh
directory.

   mkdir bug369367
   mkdir bug369367/dist
   cd bug369367/dist

   unpack the xulrunner zip there.

   rename the xulrunner directory to be "bin" (without the quotes).

   This makes the directory structure similar to what you'd get when
   building from source with an objdir, which the testcase expects.
   We'll call the bug369367 directory OBJDIR for the rest of this
   testcase.

2. If you are using a debug xulrunner, download the win32_d binary
   attachment.  Otherwise download the win32_o binary attachment.

3. Unpack the binary attachment in to OBJDIR

4. cd OBJDIR/dist/bin

You will see this error:


Testcase: testCopyCurrentSelectionToSystemClipboard took 8.047 sec
        FAILED
expected:<HistoryTest0This is page 0 of the history test.nex...> but
was:<bug369376.ba...>
junit.framework.ComparisonFailure: expected:<HistoryTest0This is page
0 of the
history test.nex...> but was:<bug369376.ba...>
        at
org.mozilla.webclient.CurrentPageTest.testCopyCurrentSelectionToSyste
mClipboard(CurrentPageTest.java:157)
        at
org.mozilla.webclient.WebclientTestCase$1.run(WebclientTestCase.java:
146)

If you set a breakpoint in

nsClipboard::SetNativeClipboardData(nsClipboard * const 0x04de4dd0,
int 1) line
285

You'll see the call to ::OleSetClipboard fails.

If you unpack the same testcase into the objdir of a --disable-debug
build of Firefox 1.5.0.9 you will see this testcase succeed.

The --enable-debug testcase may be downloaded from:

http://mediacast.sun.com/share/edburns/369367-win32_d-testcase-bin.tar.gz

The --disable-debug testcase may be downloaded from:

http://mediacast.sun.com/share/edburns/369367-win32_o-testcase-bin.tar.gz

I'm desparate for a fix for this!
Thanks,

Ed

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to