Eyes Above The Waves

Robert O'Callahan. Christian. Repatriate Kiwi. Hacker.

Friday 20 May 2005

Landed Canvas drawWindow API

I just checked the drawWindow API into trunk, so nightly builds and Deer Park will have it. Please test it out. I'm particularly interested in the results on the less popular platforms --- Mac, Linux on weird architectures, etc. I'm also interested in pages that render incorrectly via drawWindow. I know plugins won't work (except WMODE=transparent Flash should work) --- we can't fix that. File bugs on problems you find and CC me.


Peter Lairo. Atheist. ExPat American. Mozilla tester.
What is (in layman's terms) the drawWindow API, and how would I recognize it?
Robert O'Callahan
It's this:
Nice one!!
With this new API, someone could finally make an extension that mimics iRider's Page List navigation: http://www.irider.com/irider/index.htm#PageList
Thanks for adding this.
I got such error from DeerPark alpha 1:
[Exception... "Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [nsIDOMCanvasRenderingContext2D.drawWindow]" nsresult: "0x8007000e (NS_ERROR_OUT_OF_MEMORY)" location: "JS frame :: chrome://catcher/content/thumbnail.js :: update :: line 23" data: no]
What's the trouble?
The out-of-memeory problem happens on both Mac OS X and Windows XP. Do you need my test case?
Robert O'Callahan
Is it fixed in nightly builds?
When I check this problem with lastest build, old problem is gone, but new problem comes(on Mac OS X 10.3).
[Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMHTMLCanvasElement.getContext]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: chrome://catcher/content/thumbnail.js :: update :: line 19" data: no]
but line 9 is:
var ctx=canvas.getContext("2d");
Is there anything wrong?