Bug 94647

Summary: Web Inspector: [regression] Settings panel fails to open
Product: WebKit Reporter: johnjbarton <johnjbarton>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description johnjbarton 2012-08-21 16:39:16 PDT
After
Bug 94416 - Web Inspector: load scripts panel lazily
the Settings fails to open unless the user happens to open the Sources panel first.

SettingScreen.js uses WebInspector.settings.searchInContentScripts

    p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Search in content scripts"), WebInspector.settings.searchInContentScripts));

But the value is not define until ScriptsPanel.js imports ScriptsSearchScope.js

Source/WebCore/inspector/front-end/ScriptsPanel.js:importScript("ScriptsSearchScope.js");

which creates the setting:

WebInspector.settings.searchInContentScripts = WebInspector.settings.createSetting("searchInContentScripts", false);
Comment 1 Pavel Feldman 2012-08-21 19:20:10 PDT
I'l fix it right away. Now that it squeezed into the Canary, the workaround is to open Sources tab first. Then settings will open.
Comment 2 Pavel Feldman 2012-08-21 19:37:49 PDT
Created attachment 159844 [details]
Patch
Comment 3 Pavel Feldman 2012-08-21 19:39:44 PDT
Committed r126253: <http://trac.webkit.org/changeset/126253>