bug 942314 - fix attachTo existing+frame combo

to only attach on iframes that match the include rules.

plus a test to verify it,

test when only iframe matches rules

another thing that didn't work