There are lots of repeated codes to get and validate the WebCore::Frame and WebCore::Page. They can be replaced with simple macros.
Created attachment 161813 [details] patch
Comment on attachment 161813 [details] patch Makes sense to me.
Comment on attachment 161813 [details] patch Clearing flags on attachment: 161813 Committed r127385: <http://trac.webkit.org/changeset/127385>
All reviewed patches have been landed. Closing bug.