WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
30376
Web Inspector: Create and update frontend script objects only when web inspector is visible.
https://bugs.webkit.org/show_bug.cgi?id=30376
Summary
Web Inspector: Create and update frontend script objects only when web inspec...
Pavel Feldman
Reported
2009-10-14 22:28:00 PDT
All script objects should exist between populateScriptObjects and releaseScriptObjects (i.e. when web inspector window is visible). Replace a number of checks for m_frontend being defined with windowVisible. That actually fixes the following crash: 1. Open a page that has console output 2. Open and close web inspector for it 3. Refresh the page Console objects were pushed into the web inspector behind the m_frontend check (that was not enough). I actually think we should simplify the code and dispose the view (along with the m_frontend) when inspector window is closed. I don't like the state of InspectorController when m_frontend (along with the frontend scripts) exists while window is not visible. We are anyway not talking to frontend when it is not viisble. The downside of disposing frontend is that inspector would loose its state when re-opened. We already maintain active tab state though, so it won't be too bad. What do you think?
Attachments
patch
(8.29 KB, patch)
2009-10-14 22:30 PDT
,
Pavel Feldman
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2009-10-14 22:30:08 PDT
Created
attachment 41207
[details]
patch
Pavel Feldman
Comment 2
2009-10-15 02:16:11 PDT
Committing to
http://svn.webkit.org/repository/webkit/trunk
... M WebCore/ChangeLog M WebCore/inspector/InspectorController.cpp Committed
r49614
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