View Single Post
Old 05-30-2011, 01:16 PM   #7
yifanlu
Kindle Dissector
yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.yifanlu ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
So I took a look at how his "patch" worked. He replaced all instances of "_blank" and "target" with random stuff like "xxxxx" and "tbrget". This will allow most new windows to open, but anything that opens new windows in another method or using javascript won't be affected. There might also be unintended side effects, but I'm just guessing. The better way of doing it would be to look for the source file that handles opening new window in the Webkit WebCore source and make it return without a new window and recompile it. This will take a long time to set up though because you also need to cross-compile stuff like fb and libcurl. This will have to do for now.
yifanlu is offline   Reply With Quote