Changeset 179828 in webkit


Ignore:
Timestamp:
Feb 9, 2015 8:37:41 AM (9 years ago)
Author:
Brian Burg
Message:

REGRESSION(r179705): 2nd-level inspector availability no longer controlled by DeveloperExtrasEnabled user default
https://bugs.webkit.org/show_bug.cgi?id=141343

Reviewed by Timothy Hatcher.

The regression was caused by the switch to using WKWebViewConfiguration and
its default WebPreferences object, which is used to populate the inspector page's
Settings object. This WebPreferences is initialized with no identifier, so
only preferences in the FOR_EACH_WEBKIT_DEBUG_*_PREFERENCE macros are populated
from NSUserDefaults.

The simplest fix is to move DeveloperExtrasEnabled into the DEBUG group.

Previously, each inspector level had a unique identifier such as
WebInspectorPageGroupLevelN, and the n+1 level inspector was enabled
by toggling WebInspectorPageGroupLevelN.WebKit2DeveloperExrasEnabled.
With the move to the DEBUG group, the preference becomes simply
WebKitDeveloperExtrasEnabled, which enables any level of inspector.
(This does not clash with Safari's "Show Develop Menu" preference, which uses
the key "WebKitDeveloperExtrasEnabledPreferenceKey")

  • Shared/WebPreferencesDefinitions.h:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r179823 r179828  
     12015-02-09  Brian J. Burg  <burg@cs.washington.edu>
     2
     3        REGRESSION(r179705): 2nd-level inspector availability no longer controlled by DeveloperExtrasEnabled user default
     4        https://bugs.webkit.org/show_bug.cgi?id=141343
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        The regression was caused by the switch to using WKWebViewConfiguration and
     9        its default WebPreferences object, which is used to populate the inspector page's
     10        Settings object. This WebPreferences is initialized with no identifier, so
     11        only preferences in the FOR_EACH_WEBKIT_DEBUG_*_PREFERENCE macros are populated
     12        from NSUserDefaults.
     13
     14        The simplest fix is to move DeveloperExtrasEnabled into the DEBUG group.
     15
     16        Previously, each inspector level had a unique identifier such as
     17        __WebInspectorPageGroupLevelN__, and the n+1 level inspector was enabled
     18        by toggling __WebInspectorPageGroupLevelN__.WebKit2DeveloperExrasEnabled.
     19        With the move to the DEBUG group, the preference becomes simply
     20        WebKitDeveloperExtrasEnabled, which enables any level of inspector.
     21        (This does not clash with Safari's "Show Develop Menu" preference, which uses
     22        the key "WebKitDeveloperExtrasEnabledPreferenceKey")
     23
     24        * Shared/WebPreferencesDefinitions.h:
     25
    1262015-02-08  Antti Koivisto  <antti@apple.com>
    227
  • trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h

    r179380 r179828  
    9696    macro(XSSAuditorEnabled, xssAuditorEnabled, Bool, bool, true) \
    9797    macro(FrameFlatteningEnabled, frameFlatteningEnabled, Bool, bool, DEFAULT_FRAME_FLATTENING_ENABLED) \
    98     macro(DeveloperExtrasEnabled, developerExtrasEnabled, Bool, bool, false) \
    9998    macro(JavaScriptExperimentsEnabled, javaScriptExperimentsEnabled, Bool, bool, false) \
    10099    macro(PrivateBrowsingEnabled, privateBrowsingEnabled, Bool, bool, false) \
     
    227226    macro(TiledScrollingIndicatorVisible, tiledScrollingIndicatorVisible, Bool, bool, false) \
    228227    macro(SimpleLineLayoutDebugBordersEnabled, simpleLineLayoutDebugBordersEnabled, Bool, bool, false) \
     228    macro(DeveloperExtrasEnabled, developerExtrasEnabled, Bool, bool, false) \
    229229    macro(LogsPageMessagesToSystemConsoleEnabled, logsPageMessagesToSystemConsoleEnabled, Bool, bool, false) \
    230230    macro(IgnoreViewportScalingConstraints, ignoreViewportScalingConstraints, Bool, bool, false) \
Note: See TracChangeset for help on using the changeset viewer.