Last modified: 2006-08-29 11:24:10 UTC
The file wikibits.js has a window.top.location = window.location; instruction to prevent e.g. wikipedia being framed into another page. On the one side I understand the reason, on the other however I doubt the effectiveness and question whether this in line with the open character of wikipedia. Effectiveness: works ok with normal frames, but not with an iframe. In that case the browser (IE and MZ) only reports an error which is easily to be ignored. Btw: More harmful are sites such as Izynews.com, which take a page from wp and modify this on the server for their own benefit. Why I bother: I'm currently developing an enhanced integration between a catalogue search system in a public library. After the normal search the user will have the option to seamlessly lookup an article in wikipedia, provided one or more of the search words are present in one or more titles of articles. A further enhancement will be the implementation of correction algorithms in case of typos and alike (see also my paper, presented on wikimania entitled "Searching in a Public Library"). Depending on experiences acquired, wp may benefit from this in future. Obviously there are alternatives conceivable as work around, but my main concern is potential vandalism in an environment such as a public library. Therefore I want to open wp in a frame set, where there is a hidden frame that ensures that always a registered (but restricted) user is logged on. I won't rely on the persistent presence of a cookie or the accidental log out of the anonymous users in that establishment.
*** Bug 3267 has been marked as a duplicate of this bug. ***
This is intended behaviour of the MediaWiki software when used on WikiMedia foundation. We do not bandwith to be stealed by others so we untrap it from frames. As for freeness of wikipedia, you can download a dump and install a local copy of the content then you are free to do whatever you want with it as long as your respect the license (GFDL). The real bug here is that mediawiki does not untrap of iframes. Changing summary to better reflect the issue.
(In reply to comment #2) > This is intended behaviour of the MediaWiki software when used onWikiMedia foundation. We do not bandwith to be stealed by othersso we untrap it from frames.As for freeness of wikipedia, you can download a dump and installa local copy of the content then you are free to do whatever youwant with it as long as your respect the license (GFDL).The real bug here is that mediawiki does not untrap of iframes.Changing summary to better reflect the issue. Don't consider this "stealing". See my remark on izynews.com. That is stealing and subsequently earning money because of the ads. Current implementation (www.obwaalre.nl) is indeed with downloaded db, but dumps are very rarely produced nowadays and formats are changing.
I've been writing a JS category browser that would benefit greatly from using an iframe. I understand and fully support the concerns about bandwidth stealing, I don't see why we should be stopping wikipedia pages loading into frames INSIDE other wikipedia pages. Changing if( window.top != window ) window.top.location = window.location; to something like if (window.top.location.hostname!=window.location.hostname) {window.top.location = window.location;} would permit pages to be shown in framesets and iframes ONLY if the document in the top window is coming from the same host as the page itself. This should allow us to write tools that need frames without increasing the risk of bandwidth theft.
I understand that the original intended purpose of MediaWiki was and still is to power Wikipedia. However, a reference should be provided so that this 'feature' can be disabled when MediaWiki is used for private use and frames are required for appropriate use. I want to add a framed navigation bar to the top of the page and this isnt currently possible with the version of MediaWiki that I am running. There used to be a solution for versions up to 1.5.8: http://meta.wikimedia.org/wiki/Talk:MediaWiki_FAQ#Frame_code_doesnt_work_for_me... http://meta.wikimedia.org/wiki/MediaWiki_FAQ#I_want_my_wiki_to_appear_in_a_frame_as_part_of_my_site.2C_but_it_keeps_popping_out_of_the_frame However now MediaWiki continues to block intentional frames as well. Editing stylesheets/wikibits.js has no effect. MediaWiki still keeps popping out. Must be something else somwhere else involved as well? Preferably this should be configurable from the LocalSettings php file.
^^ Thank you in advance if this is possible. (where are my manners ;) Thanks.
This is in the faq, and you may customize your files for the broken frames behavior if you like.