labadserver / Adplayer

Adplayer reference implementation
https://github.com/labadserver/Adplayer/wiki
Other
28 stars 11 forks source link

popup title missing in Chrome and Safari #128

Closed atk closed 12 years ago

atk commented 12 years ago

The title tag is not parsed by Chrome and Safari (seems to be a timing-related problem). The solution would be to use popup.contentWindow.document.title = ...; to set the title afterwards.

olwa commented 12 years ago

i will fix this today.

olwa commented 12 years ago

It seems that the bug is a webkit bug. If I check the document.title in the JS console the title is set correct.

In Chrome on OSX the bug seems to be fixed. In Safari (5.1.7) on OSX it is not possible to set the title in our popup.

Its a old webkit bug: http://code.google.com/p/chromium/issues/detail?id=5988

olwa commented 12 years ago

@atk Do you know a other fix for this bug? I don't know and don't find a other solution to create a popup via javascript dynamic so that the title is working in webkit browsers. It seem that this bug can't fix.

atk commented 12 years ago

Thanks for the information, this bug was new to me. I don't see any way to fix that, since it's browser-related. Changing the title tag again afterwards as I assumed would fix this doesn't change anything.