ok, I think i've found the problem with the webcit login in rekonq (and most probably apple safari?) ;
changing in modal.js
var toggleModal = function (b) {
to:
function toggleModal (b) {
seems to fix the problem.
next questions... why do we need to load the page (get_logged_in.html) in a second call? can't we just put it in there?
and if, why does it have extra <html><body></body></html> if its put into the DOM?