RESOLVED INVALID 93133
Web Inspector: Clarify what Settings features require the tools to be open
https://bugs.webkit.org/show_bug.cgi?id=93133
Summary Web Inspector: Clarify what Settings features require the tools to be open
Addy Osmani
Reported 2012-08-03 09:58:05 PDT
At present, users are unware of what features require the Inspector/DevTools to be open in order to function. These include 'Disable cache', 'Disable JavaScript' and so on. Ideally we should add a star next to features that require this and place a short note at the top of the relevant tab(s) letting users know they need to be open.
Attachments
Patch (9.57 KB, patch)
2012-08-03 10:40 PDT, Addy Osmani
pfeldman: review-
Addy Osmani
Comment 1 2012-08-03 10:40:02 PDT
Andrey Kosyakov
Comment 2 2012-08-06 01:40:46 PDT
Comment on attachment 156412 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=156412&action=review > Source/WebCore/English.lproj/localizedStrings.js:648 > +localizedStrings["* Requires Developer Tools to be open."] = "* Requires Developer Tools to be open."; We can't use vendor specific product names in WebCore -- this would have to be "Web Inspector". See WebInspector.clipboardAccessDeniedMessage (http://trac.webkit.org/browser/trunk/Source/WebKit/chromium/src/js/DevTools.js#L59) for an example of how we used to address this. I think we may want to generalize it to a function that either returns a product name or maps a message to a vendor-specific string. Pavel, WDYT? Also, I would change the wording to "Only effective while {product name} is open". > Source/WebCore/inspector/front-end/SettingsScreen.js:402 > + _createOnlyWhileOpenWarningSubsection: function() > + { > + var subsection = document.createElement("div"); > + var warning = subsection.createChild("span", "settings-experiments-warning-subsection-warning"); > + warning.textContent = WebInspector.UIString("WARNING:"); > + subsection.appendChild(document.createTextNode(" ")); > + var message = subsection.createChild("span", "settings-experiments-warning-subsection-message"); > + message.textContent = WebInspector.UIString("* Requires Developer Tools to be open."); > + return subsection; > + }, Can we generalize _createExperimentsWarningSubsection() instead so that it creates warnings with arbitrary text?
Addy Osmani
Comment 3 2012-08-06 01:43:33 PDT
> We can't use vendor specific product names in WebCore -- this would have to be "Web Inspector". See WebInspector.clipboardAccessDeniedMessage (http://trac.webkit.org/browser/trunk/Source/WebKit/chromium/src/js/DevTools.js#L59) for an example of how we used to address this. > I think we may want to generalize it to a function that either returns a product name or maps a message to a vendor-specific string. Pavel, WDYT? > Also, I would change the wording to "Only effective while {product name} is open". Agree on both counts. I'll update this. > > > Source/WebCore/inspector/front-end/SettingsScreen.js:402 > > + _createOnlyWhileOpenWarningSubsection: function() > > + { > > + var subsection = document.createElement("div"); > > + var warning = subsection.createChild("span", "settings-experiments-warning-subsection-warning"); > > + warning.textContent = WebInspector.UIString("WARNING:"); > > + subsection.appendChild(document.createTextNode(" ")); > > + var message = subsection.createChild("span", "settings-experiments-warning-subsection-message"); > > + message.textContent = WebInspector.UIString("* Requires Developer Tools to be open."); > > + return subsection; > > + }, > > Can we generalize _createExperimentsWarningSubsection() instead so that it creates warnings with arbitrary text? Absolutely. There's no need for replication when we can generalize it. I'll wait to see what Pavel thinks about the warning message before updating the patch.
Pavel Feldman
Comment 4 2012-08-06 02:33:12 PDT
> Also, I would change the wording to "Only effective while {product name} is open". Sounds good to me. We could add WebInspector.productName() into the UIUtils.js and override it in the DevTools.js under WebKit/chromium/src/js/ to keep things simple.
Pavel Feldman
Comment 5 2012-08-06 06:16:00 PDT
Comment on attachment 156412 [details] Patch r- per Andrey's comments.
Brian Burg
Comment 6 2014-12-12 14:37:25 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests. Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.
Note You need to log in before you can comment on or make changes to this bug.