Bug 30893

Summary: wrong global context used when dragging an image into an iframe
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: WebCore JavaScriptAssignee: Erik Arvidsson <arv>
Status: NEW ---    
Severity: Normal CC: abarth, arv, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
Test case. Based off LayoutTests/editing/selection/drag-to-contenteditable-iframe.html
none
Fixes the test none

Description Ojan Vafai 2009-10-28 18:26:01 PDT
Created attachment 42076 [details]
Test case. Based off LayoutTests/editing/selection/drag-to-contenteditable-iframe.html

Dragging the following image into an iframe alerts "true" in Safari, but alerts false in Chrome 4, Firefox 3 and IE 7:

<img src="http://google.com/images/logo.gif" onload="alert(window == top)">

Test case attached.
Comment 1 Erik Arvidsson 2009-11-09 18:28:46 PST
Created attachment 42828 [details]
Fixes the test
Comment 2 Erik Arvidsson 2009-11-09 18:30:40 PST
Comment on attachment 42828 [details]
Fixes the test

I'll open a new bug on the invalid test.