Bug 30893 - wrong global context used when dragging an image into an iframe
Summary: wrong global context used when dragging an image into an iframe
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Erik Arvidsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 18:26 PDT by Ojan Vafai
Modified: 2009-11-09 18:30 PST (History)
3 users (show)

See Also:


Attachments
Test case. Based off LayoutTests/editing/selection/drag-to-contenteditable-iframe.html (286 bytes, text/html)
2009-10-28 18:26 PDT, Ojan Vafai
no flags Details
Fixes the test (2.26 KB, patch)
2009-11-09 18:28 PST, Erik Arvidsson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.