The documentation for these methods claim that they will return nil if called from somewhere other than an API callback, but currently they both crash.
Created attachment 213925 [details] Patch
Comment on attachment 213925 [details] Patch Clearing flags on attachment: 213925 Committed r157258: <http://trac.webkit.org/changeset/157258>
All reviewed patches have been landed. Closing bug.