Bug 110849

Summary: Web Inspector: [PageAgent] can't find frame by security origin.
Product: WebKit Reporter: Eugene Klyuchnikov <eustas>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, eustas, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 110855    
Bug Blocks:    
Attachments:
Description Flags
Patch vsevik: review+

Description Eugene Klyuchnikov 2013-02-25 23:33:09 PST
In some cases InspectorPageAgent::findFrameWithSecurityOrigin returns NULL even if corresponding frame exists.

Original issue:
https://code.google.com/p/chromium/issues/detail?id=178073
White pane is displayed in Local storage URLS instead of keys & values
Comment 1 Alexander Pavlov (apavlov) 2013-02-26 00:04:28 PST
The issue is that document.setDomain("cnn.com") is executed against the main frame's document, whose security origin used to be "www.cnn.com". This results in a SecurityOrigin mismatch in the backend.
Comment 2 Alexander Pavlov (apavlov) 2013-03-03 23:40:41 PST
Created attachment 191164 [details]
Patch
Comment 3 Alexander Pavlov (apavlov) 2013-03-03 23:46:52 PST
Committed r144601: <http://trac.webkit.org/changeset/144601>