Manual:$wgBreakFrames

Details
Break out of framesets. This can be used to prevent external sites from framing your site. If set to "true" it will also prevent positive uses of frames.

Since MediaWiki 1.16.1, certain pages (like edit pages) automatically have frames broken by default to prevent clickjacking attacks.