bug 942314 - fix attachTo existing+frame combo

to only attach on iframes that match the include rules.

plus a test to verify it.