Index: include.preload.js |
=================================================================== |
--- a/include.preload.js |
+++ b/include.preload.js |
@@ -28,6 +28,13 @@ |
function checkCollapse(element) |
{ |
+ // <input type="image"> elements try to load their image again |
+ // when the "display" CSS property is changed by the |
+ // collapsing code below. So we have to bail out, if collapsing |
+ // is already in progress, to avoid an infinite recursion. |
+ if (element._collapsing) |
+ return; |
Wladimir Palant
2014/09/24 14:57:00
Interesting, a load triggered for an element with
Thomas Greiner
2014/09/24 15:08:29
That's what I checked before and it does have the
Sebastian Noack
2014/09/24 16:42:40
The only thing the standard defines for that parti
Sebastian Noack
2014/09/24 17:04:58
Done, though it wasn't actually that simply. I als
|
+ |
var tag = element.localName; |
if (tag in typeMap) |
{ |
@@ -47,6 +54,8 @@ |
{ |
if (response && element.parentNode) |
{ |
+ element._collapsing = true; |
Thomas Greiner
2014/09/24 12:35:32
This makes us quite easily distinguishable from ot
Sebastian Noack
2014/09/24 12:50:09
No, it doesn't. Content scripts run in a different
Thomas Greiner
2014/09/24 14:14:54
I can confirm that custom properties are not part
|
+ |
// <frame> cannot be removed, doing that will mess up the frameset |
if (tag == "frame") |
element.style.setProperty("visibility", "hidden", "important"); |