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.


8 comments:

  1. What is (in layman's terms) the drawWindow API, and how would I recognize it?

    ReplyDelete
  2. Robert O'Callahan20 May 2005 22:12

    It's this:
    http://weblogs.mozillazine.org/roc/archives/2005/05/rendering_web_p.html

    ReplyDelete
  3. 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.

    ReplyDelete
  4. 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?

    ReplyDelete
  5. The out-of-memeory problem happens on both Mac OS X and Windows XP. Do you need my test case?

    ReplyDelete
  6. Robert O'Callahan1 July 2005 02:53

    Is it fixed in nightly builds?

    ReplyDelete
  7. 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?

    ReplyDelete