[Webkit-unassigned] [Bug 166895] New: Web Inspector: Cannot edit source code of HTTP or JS resources served via HTTP

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 10 10:59:45 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=166895

            Bug ID: 166895
           Summary: Web Inspector: Cannot edit source code of HTTP or JS
                    resources served via HTTP
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cigitia at gmail.com
                CC: inspector-bugzilla-changes at group.apple.com

Created attachment 298484
  --> https://bugs.webkit.org/attachment.cgi?id=298484&action=review
Simple test-case reduction.

Macintosh. macOS 10.12.2 (16C67).

When a webpage is opened with Web Inspector (e.g., in WebKit 12602.3.12.0.1, r210538), and its resources are served via HTTP, including when from localhost, its HTML and JavaScript resources’ source code cannot be edited. In contrast, when JavaScript resources are served directly from local files using file:///, they can indeed be edited. In addition, CSS resources’ source code can be edited whether they are served via http: or file:.

Steps to reproduce:
1. Download and decompress the webkit-inspector-bug.zip attachment, which contains these files: index.html, style.css, and main.js.

2a. In WebKit, open index.html as a local file using file:.
2b. Show Web Inspector’s Resources tab.
2c. Confirm that the source code of index.html, style.css, and main.js is editable.

3a. Open a terminal and change its working directory to the decompressed directory webkit-inspector-bug/.
3b. Start a simple HTTP server at the directory, such as python -m SimpleHTTPServer, which would serve to localhost:8000.
3c. Open the index.html webpage as is served by HTTP server, e.g., localhost:8000 for the Python command above.
3d. Confirm that, while the source code of style.css is still editable, the source code of index.html and main.js is no longer editable.

Notes:
Resources can still be saved to local files using ⌘S, whether or not they are normally editable or abnormally uneditable.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170110/cb684ce6/attachment.html>


More information about the webkit-unassigned mailing list