Bug 51751

Summary: Web Inspector: recreate script view after live edit
Product: WebKit Reporter: Pavel Podivilov <podivilov>
Component: Web Inspector (Deprecated)Assignee: Pavel Podivilov <podivilov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch.
none
Patch. pfeldman: review+

Description Pavel Podivilov 2010-12-30 08:33:55 PST
Recreate script view after live edit like it is done for source views.
Comment 1 Pavel Podivilov 2010-12-30 08:34:46 PST
Created attachment 77681 [details]
Patch.
Comment 2 Pavel Podivilov 2010-12-30 09:03:25 PST
Created attachment 77684 [details]
Patch.
Comment 3 Pavel Feldman 2011-01-11 04:39:14 PST
Comment on attachment 77684 [details]
Patch.

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

> WebCore/inspector/front-end/ScriptsPanel.js:316
> +                    script.resource.setContent(newBodyOrErrorMessage, revertEditingCallback);

In the future, we'd like to edit inline script of say HTML resources. As a result, committing snippet content as resource content will become wrong.
Comment 4 Pavel Podivilov 2011-01-11 06:37:51 PST
Committed r75500: <http://trac.webkit.org/changeset/75500>