WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
105722
Web Inspector: Make InspectorState instances per-agent, corresponding to JSON map entries in the cookie
https://bugs.webkit.org/show_bug.cgi?id=105722
Summary
Web Inspector: Make InspectorState instances per-agent, corresponding to JSON...
Alexander Pavlov (apavlov)
Reported
2012-12-24 08:34:57 PST
The blamed line is InspectorState.cpp:136 Patch to follow.
Attachments
Patch
(83.23 KB, patch)
2012-12-24 23:11 PST
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2012-12-24 21:03:06 PST
(In reply to
comment #0
)
> The blamed line is InspectorState.cpp:136 > > Patch to follow.
Could you provide more details or at least link to the corresponding revision where the line 136 would fail as on the current tot
r138449
InspectorState.cpp is only 131 line long?
Alexander Pavlov (apavlov)
Comment 2
2012-12-24 21:32:10 PST
(In reply to
comment #1
)
> (In reply to
comment #0
) > > The blamed line is InspectorState.cpp:136 > > > > Patch to follow. > > Could you provide more details or at least link to the corresponding revision where the line 136 would fail as on the current tot
r138449
InspectorState.cpp is only 131 line long?
As agreed with pfeldman, the offending change
r138436
was reverted, as the composite state should be implemented in a slightly different way.
Alexander Pavlov (apavlov)
Comment 3
2012-12-24 23:11:51 PST
Created
attachment 180703
[details]
Patch
Yury Semikhatsky
Comment 4
2012-12-24 23:38:08 PST
Comment on
attachment 180703
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=180703&action=review
> Source/WebCore/inspector/InspectorState.cpp:137 > + if (!agentStateObject) {
When can this happen? Also if some agent states may be missing there might be some extra states which we probably want to delete?
Alexander Pavlov (apavlov)
Comment 5
2012-12-25 00:39:21 PST
(In reply to
comment #4
)
> (From update of
attachment 180703
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=180703&action=review
> > > Source/WebCore/inspector/InspectorState.cpp:137 > > + if (!agentStateObject) { > > When can this happen?
This can happen if a cookie was written before all InspectorStates had been constructed.
> Also if some agent states may be missing there might be some extra states which we probably want to delete?
This means that the respective state is empty, which we handle by creating an empty object to pass into InspectorState::setFromCookie().
WebKit Review Bot
Comment 6
2012-12-25 01:01:41 PST
Comment on
attachment 180703
[details]
Patch Clearing flags on attachment: 180703 Committed
r138457
: <
http://trac.webkit.org/changeset/138457
>
WebKit Review Bot
Comment 7
2012-12-25 01:01:45 PST
All reviewed patches have been landed. Closing bug.
Alexander Pavlov (apavlov)
Comment 8
2012-12-28 23:56:25 PST
***
Bug 105438
has been marked as a duplicate of this bug. ***
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