Bug 67715

Summary: Web Inspector: trying to scroll mouse wheel when in TextViewer's gutter pane causes EventException::DISPATCH_REQUEST_ERR
Product: WebKit Reporter: Andrey Kosyakov <caseq>
Component: Web Inspector (Deprecated)Assignee: Andrey Kosyakov <caseq>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, podivilov, rik, yurys
Priority: P2 Keywords: Regression
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch yurys: review+

Description Andrey Kosyakov 2011-09-07 10:25:37 PDT
1. Navigate to webkit.org
2. Open inspector
3. Switch to Resources panel, choose main resource
4. Position mouse over the panel with the line numbers
5. Scroll the wheel
6. Observe DISPATCH_REQUEST_ERR in the console, thrown upon an attempt to dispatchEvent() of a WheelEvent that is currently being dispatched (oding so is against DOM 3 Event spec) 

This regressed after r90972.
Comment 1 Andrey Kosyakov 2011-09-07 10:28:56 PDT
Created attachment 106595 [details]
patch
Comment 2 Yury Semikhatsky 2011-09-07 23:48:03 PDT
Comment on attachment 106595 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=106595&action=review

> Source/WebCore/inspector/front-end/TextViewer.js:56
> +        var clone = document.createEvent("WheelEvent");

Could you describe in the changelog why we need to clone the event here?
Comment 3 Andrey Kosyakov 2011-09-08 02:00:53 PDT
Manually committed r94749: http://trac.webkit.org/changeset/94749