[Webkit-unassigned] [Bug 28269] Inspector: Improve Cookie DataGrid to Show Hidden Data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 18 09:19:31 PDT 2009


--- Comment #19 from Joseph Pecoraro <joepeck02 at gmail.com>  2009-08-18 09:19:29 PDT ---
> Actually, things can be even simpler. Here is how I would do this:
> - Introduce non-Custom  InspectorBackend::getCookies that would make all
> necessary computations and call InspectorFrontend::setCookies(String,
> ScriptObject) that you introduce. Other InspectorFrontend methods for the
> reference + InspectorResource on how to create a ScriptObject with your data.
> - Implement WebInspector.setCookies that would receive and process the data.

This is certainly a different way of thinking for me.  I'd just rather call a
function and get a result.  This approach would mean storing the cookie data
somwhere (most likely in the WebInspector namespace), whenever getCookies is
called.  I'd rather just call getCookies and get a return value with the data. 
What is the advantage to calling a function over just returning a value?

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