[Webkit-unassigned] [Bug 29282] New: option value on iframe post incorrectly because a second javascript sentence parent.location.href=xxx is executed when it is in iframe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 15 15:22:25 PDT 2009


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

           Summary: option value on iframe post incorrectly because a
                    second javascript sentence parent.location.href=xxx is
                    executed when it is in iframe
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: www.hoodboyz.de/shop
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jasneet at chromium.org
                CC: jasneet at chromium.org


Created an attachment (id=39617)
 --> (https://bugs.webkit.org/attachment.cgi?id=39617)
reduced testcase

I Steps:
Go to www.hoodboyz.de/shop

1. see for example www.hoodboyz.de/shop the left categorie selection box!
its a iframe to www.hoodboyz.de/shop/cat.php?schritt=&cat_id=  
2. when i  select a categorie,size or manufacturer the post don't contain 
the option values!
3. When i select directly from cat.php its no problem!

II Conclusion:
For original web page, it has javascript like:
......
<script
language="JavaScript">parent.location.href="index.php?cat=11";</script><script
language="JavaScript">parent.location.href="advanced_search_result.php?keywords=Free
Search";</script>
......
In webkit, the second sentence has a chance to be executed, this is the cause
of the issue.

In the iframe document test-standard.html, there are two javascript sentences:
......
<script>parent.location.href="http://www.google.com";</script>
<script>parent.location.href="http://www.yahoo.com";</script>
......

In IE and Firefox, the second sentence will have no chance to be executed, so
the page will be redirected to google.com, but in webkit the second sentence is
executed, so the page is redirected to yahoo.com.

III Other Browsers:
IE7: ok
FF3: ok

IV Nightly tested : 48354

Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=13895

-- 
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