Bug 16477
| Summary: | Web Inspector should allow live editing of JavaScript code | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Gavin Sherlock <gsherloc> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | chris, cigitia, darwin, dev+webkit, inspector-bugzilla-changes, jschoi, webkit, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Gavin Sherlock
Sometimes it would be really useful when looking at a page to edit the source live in the inspector (not just the css), and have those edits reflected live on the page, with the page otherwise acting correctly as it would do served from it's origin. You can kind of do this in Firefox using Firebug, though it's flaky, and you can do this in Omniweb reasonably well. It would be great to have this functionality in Webkit's inspector.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alex Taylor
Until something is decided about this enhancement, might I suggest looking at the plug-in 'SafariStand' if you haven't already. SafariStand has a 'site alteration' feature which allows you to do live source editing.
Matt Lilek
(In reply to comment #1)
> Until something is decided about this enhancement, might I suggest looking at
> the plug-in 'SafariStand' if you haven't already. SafariStand has a 'site
> alteration' feature which allows you to do live source editing.
>
From our wiki - <http://trac.webkit.org/projects/webkit/wiki/FAQ>:
"Extensions are completely unsupported with any version of Safari/WebKit. To provide their functionality, extensions rely on private APIs and implementation details that often change and cause the extensions to break. There have been many changes to WebKit since the currently released version and the way extensions deal with changes and errors varies greatly, with many crashing often."
Adam Roben (:aroben)
Bug 17224 added support for editing text nodes and DOM attributes. You still can't insert/remove arbitrary elements easily however.
Joseph Pecoraro
Bug 30337 added support for deleting elements. But inserting elements is still not implemented.
Timothy Hatcher
I think this is more about editing a resource and using it instead of the server copy instead of editing the DOM.
Radar WebKit Bug Importer
<rdar://problem/19107250>
Chris Chiera
This has been possible for a long time in Chrome and Safari. This is labeled as as Status new, but assume it was simply never closed when the functionality was added.
Brian Burg
This bug refers to editing of JavaScript source, which isn't supported right now. It would require significant efforts in the JSC engine and Web Inspector UI.
Cigitia
See also:
#166895 ”Web Inspector: Cannot edit source code of HTTP or JS resources served via HTTP” (https://bugs.webkit.org/show_bug.cgi?id=166895),
#136515 ”Web Inspector: JavaScript source text editor should have a linter“ (https://bugs.webkit.org/show_bug.cgi?id=136515).