Changeset 84841 in webkit
- Timestamp:
- Apr 25, 2011 4:43:04 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r84824 r84841 1 2011-04-25 Brian Weinstein <bweinstein@apple.com> 2 3 Reviewed by Adam Roben. 4 5 WebKit2: Should be able to inspect Web Inspector in Debug Builds 6 https://bugs.webkit.org/show_bug.cgi?id=59378 7 8 * UIProcess/WebInspectorProxy.cpp: 9 (WebKit::createInspectorPageGroup): Creates an inspector page group and enables 10 developer extras in a debug build. 11 (WebKit::WebInspectorProxy::inspectorPageGroup): Calls createInspectorPageGroup. 12 1 13 2011-04-25 Brian Weinstein <bweinstein@apple.com> 2 14 -
trunk/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
r84785 r84841 32 32 #include "WebPageProxy.h" 33 33 #include "WebPageCreationParameters.h" 34 #include "WebPreferences.h" 34 35 #include "WebProcessProxy.h" 35 36 #include "WebPageGroup.h" … … 45 46 namespace WebKit { 46 47 48 static PassRefPtr<WebPageGroup> createInspectorPageGroup() 49 { 50 RefPtr<WebPageGroup> pageGroup = WebPageGroup::create("__WebInspectorPageGroup__", false, false); 51 52 #ifndef NDEBUG 53 // Allow developers to inspect the Web Inspector in debug builds. 54 pageGroup->preferences()->setDeveloperExtrasEnabled(true); 55 #endif 56 57 return pageGroup.release(); 58 } 59 47 60 WebPageGroup* WebInspectorProxy::inspectorPageGroup() 48 61 { 49 static WebPageGroup* pageGroup = WebPageGroup::create("__WebInspectorPageGroup__", false, false).leakRef();62 static WebPageGroup* pageGroup = createInspectorPageGroup().leakRef(); 50 63 return pageGroup; 51 64 }
Note: See TracChangeset
for help on using the changeset viewer.