WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
80903
Web Inspector: InspectorDOMStorageAgent creates a Storage object which is a DOMWindowProperty - Should use the StorageArea directly
https://bugs.webkit.org/show_bug.cgi?id=80903
Summary
Web Inspector: InspectorDOMStorageAgent creates a Storage object which is a D...
Brady Eidson
Reported
2012-03-12 15:56:20 PDT
Web Inspector: InspectorDOMStorageAgent creates a Storage object which is a DOMWindowProperty - Should use the StorageArea directly DOMWindowProperties are a mechanism for registering with the DOMWindow which has one specific lifetime. WebInspector resources have a completely distinct lifetime, and should not be instantiating DOMWindowProperties. It seems that there is no reason the Inspector resource couldn't use the StorageArea directly. This was discovered while fixing
https://bugs.webkit.org/show_bug.cgi?id=34679
and is currently blocking it.
Attachments
Make it use the StorageArea directly
(6.71 KB, patch)
2012-03-12 16:12 PDT
,
Brady Eidson
timothy
: review+
timothy
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2012-03-12 16:12:56 PDT
Created
attachment 131437
[details]
Make it use the StorageArea directly
WebKit Review Bot
Comment 2
2012-03-12 16:14:58 PDT
Attachment 131437
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InspectorDOMStorageResource.h:43: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Timothy Hatcher
Comment 3
2012-03-12 16:15:45 PDT
Comment on
attachment 131437
[details]
Make it use the StorageArea directly View in context:
https://bugs.webkit.org/attachment.cgi?id=131437&action=review
> Source/WebCore/inspector/InspectorDOMStorageAgent.cpp:115 > + Frame* frame = storageResource->frame(); > if (storageResource) {
These lines need flipped so the Frame is inside the null check. Fix before landing.
Brady Eidson
Comment 4
2012-03-12 16:34:58 PDT
http://trac.webkit.org/changeset/110500
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug