[Webkit-unassigned] [Bug 38752] New: Strange behaviour after js insertion into a page pointing directly to an object (image, swf, etc)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 08:15:34 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38752

           Summary: Strange behaviour after js insertion into a page
                    pointing directly to an object (image, swf, etc)
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: avitte at infonais.fr


The problem was discovered with this url :

http://www.villiard.com/images/voitures/voiture.jpg

Go on this url and put in the address bar following js insertion (that we call
"Extract Widget"):

javascript:(function(){var d=document;var h=d.getElementsByTagName("head");var
s=h.length===0?d.getElementsByTagName("html")[0].insertBefore(d.createElement("HEAD"),d.body):h[0];if(typeof
JSON!='object'){var
j=d.createElement("SCRIPT");j.charset="utf-8";j.id="jsonscript";j.src="http://www.blimpme.com/bbrowser/json2.js";j=s.appendChild(j);};var
b=d.createElement("SCRIPT");b.charset="utf-8";b.src="http://www.blimpme.com/bbrowser/injectold.php?url="+encodeURIComponent(d.location.href);b=s.appendChild(b);})();

Then reload the first url and put in the address bar :

javascript:(function(){var d=document;var h=d.getElementsByTagName("head");var
s=h.length===0?d.getElementsByTagName("html")[0].insertBefore(d.createElement("HEAD"),d.body):h[0];if(typeof
JSON!='object'){var
j=d.createElement("SCRIPT");j.charset="utf-8";j.id="jsonscript";j.src="http://www.blimpme.com/bbrowser/json2.js";j=s.appendChild(j);};var
b=d.createElement("SCRIPT");b.charset="utf-8";b.src="http://www.blimpme.com/bbrowser/inject.php?url="+encodeURIComponent(d.location.href);b=s.appendChild(b);})();

As you can see the result is different, in the first case we do not see the
background images although it's there, we have checked with the debugger and
the objects look correct in the page.

The second case is a palliative to correct that, we do reload the url inside an
iframe and then the extract widget js insertion works correctly.

We know it's a very particular case but still needs to be investigated, it
behaves as if everything was not working in the dom while loading an url
pointing directly to an object.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list