[Webkit-unassigned] [Bug 74755] Web Inspector: Make HTML editable in Resources panel
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Dec 17 12:02:18 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=74755
--- Comment #2 from Nikita Vasilyev <me at elv1s.ru> 2011-12-17 12:02:18 PST ---
A full reload would discard all changes unless we save them somewhere. I don't see how it's going to work.
1. The simple solution.
Don't reload anything. Create a revision for a file, fire onResourceContentCommitted (Chrome only), and allow to save it.
2. The perfect solution.
Update a corresponding node if it present in the DOM at the moment.
Example:
<html>
<head></head>
<body>
<h1>Header</h1>
<div>content</div>
<script>
onload = function() {
var element = document.createElement('div');
element.textContent = 'More content';
document.body.insertBefore(element, document.querySelector('div'));
}
</script>
</body>
</html>
Replacing "<div>content</div>" with "<div class=content>bla-blah</div>" should update the former node, but don't touch the div element inserted via JS.
I don't know yet how to make the perfect solution work, so I suggest to start with the simple one.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list