RESOLVED FIXED 17574
Acid2: Inspection fails after internal anchor navigation
https://bugs.webkit.org/show_bug.cgi?id=17574
Summary Acid2: Inspection fails after internal anchor navigation
Robert Blaut
Reported 2008-02-27 14:09:01 PST
Summary: During digging into bug 4911 I found that the Acid2 test is impossible to inspect with Web Inspector on the first load. The Web Inspector opens window but without html code in it. Steps to reproduce: 1) Go to a page: http://hixie.ch/tests/evil/acid/002/#top 2) Click "Take the Acid2 test" 3) Right click on "Hello World" an choose Inspect element Expected result: The opened window should have html code in it. Current result: The opened window is blank. The problem disappears after reloading the page and retrying above procedure. Notice also incorrect layout!
Attachments
Reduction (202 bytes, text/html)
2008-03-23 15:16 PDT, Cameron Zwarich (cpst)
no flags
Another test case (192 bytes, text/html)
2008-03-23 20:53 PDT, Cameron Zwarich (cpst)
no flags
Further reduction (126 bytes, text/html)
2008-03-23 23:15 PDT, Cameron Zwarich (cpst)
no flags
Adam Roben (:aroben)
Comment 1 2008-03-13 23:32:34 PDT
Works fine here. You may have run into the bug where the Inspector is blank if you turn on WebKitDeveloperExtras and then open the Inspector without loading a new page <rdar://5667892>. Robert, do you think this is the case? If so, we should retitle this bug and make it the Bugzilla equivalent of <rdar://5667892>.
Robert Blaut
Comment 2 2008-03-14 01:33:23 PDT
(In reply to comment #1) > Robert, do you think this is the case? If so, we should retitle this bug and > make it the Bugzilla equivalent of <rdar://5667892>. > No, it isn't the case you described. Sad to say but in the first step above I typed wrong URL. The exact steps should be: 1) Go to a page: http://hixie.ch/tests/evil/acid/002/ 2) Click "Take the Acid2 test" 3) Right click on "Hello World" an choose Inspect element The second step is crucial for this issue. The issue isn't visible if you perform these steps: 1) Go to a page: http://hixie.ch/tests/evil/acid/002/#top 2) Right click on "Hello World" an choose Inspect element.
Cameron Zwarich (cpst)
Comment 3 2008-03-23 14:41:06 PDT
This also works with the standard data URI version of the test: http://www.webstandards.org/files/acid2/test.html
Cameron Zwarich (cpst)
Comment 4 2008-03-23 15:16:59 PDT
Created attachment 19988 [details] Reduction Here is a reduction. It is essentially the same reduction as for bug 13693. It seems the internal anchor navigation causes the inspector to attempt to inspect the 404 in the embedded object element.
Cameron Zwarich (cpst)
Comment 5 2008-03-23 20:53:37 PDT
Created attachment 19991 [details] Another test case It has nothing to do with failure to load in the object element, as can be seen in this example. Clicking then inspecting the page causes http://www.webkit.org/ to be inspected instead.
Cameron Zwarich (cpst)
Comment 6 2008-03-23 23:15:59 PDT
Created attachment 19998 [details] Further reduction The main document appears in the inspector, except it has type Other. Here is a further reduction without the 404 that illustrates the problem alone. This is occurring because CachedResource* cachedResource = frame->document()->docLoader()->cachedResource(requestURL.string()); in InspectorResource::type() is null. If I change the subsequent test to return Doc instead of Other, then inspection works fine. I think this is actually a loader issue, because it should be a cached resource, unless my definition of cached resource is skewed.
Robert Blaut
Comment 7 2008-07-16 05:07:07 PDT
I'm no longer able to reproduce the problem in WebKit r35177. I close the bug report.
Note You need to log in before you can comment on or make changes to this bug.