Observation
There is a single page application webpage served from https containing ad-slots. These ad-slots are filled by some bidding logic and the ads are written in IFRAME documents by JavaScript.
First load shows the ad image, e.g. https://tpc.googlesyndication.com/pagead/imgad?id=CICAgKDLu47R8QEQARgBMggW4D7gy4qb5g
When user acts on the page, a new ad-bidding takes place and ad-slots are reloaded. In our case: an img
element with identical src
attributes is rendered.
All other browsers (Chrome, IE, Safari) show this image, taken from local cache.
Not so: Firefox (Windows, Mac; Version 52) acts as following:
- shows
alt
text on white background - image is not displayed: it disappears, though it's the exactly identical image with same URL
- when using developer tools, a tooltip on the
img
says something about "error loading image" (I exactly know only the German message) - network tab doesn't show any activity on this image (also no
304
or "from cache")
Additional info:
- there is no CSS active/changed which could hide the image (in fact around this img there is no CSS at all).
- no additional JavaScript (e.g. lazy load)
- no ad blocker present
- all resources are loaded from
https
- no error is logged in console
- first load of the page shows image
- no problem with all other browsers, never.
Example
On following page you can see the bug (I suppose it's a FireFox bug):
http://bartelt.team.netzathleten-media.de/2017-03-30_MD-230-refresh-bug/
After 5 seconds the ad disappears (only in FireFox).
Questions
Can you give me some advise what could be the reason for this problem?
Is there a way to somehow debug onerror
of images created dynamically by foreign code (coming from ad-server)?
This is really weird and I highly appreciate your help.