[Webkit-unassigned] [Bug 98924] Web Inspector: [CSS Regions] Move the Regions support out of experiments
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 11 00:10:31 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=98924
--- Comment #2 from Alexander Pavlov (apavlov) <apavlov at chromium.org> 2012-10-11 00:11:10 PST ---
(In reply to comment #1)
> You can introduce a new command "CSS.supportsRegions" and query it post-load or upon context menu.
The most common way to do this is through the concept of "capabilities". See:
- Settings.js, var Capabilities = {...} - the default values (yours should be "false")
- inspector.js, WebInspector.doLoadedDone() queries agents for their supported capabilities and initializes their values according to the response. The last one should provide bound WebInspector._doLoadedDoneWithCapabilities as the callback. Your call will most probably look similar to:
CSS.supportsRegions(WebInspector._initializeCapability.bind(WebInspector, "cssRegionsSupported", null)); // not the last capability initializer
Afterwards, you just check:
if (Capabilities.cssRegionsSupported) {
// do something
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list