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
Merge pull request #1306 from zombie/942314-existing-frame

fix bug 942314 - fix attachTo existing+frame combo r=@ZER0