RESOLVED FIXED31116
WebInspector: Corrects InspectorBackent::platform() on Windows.
https://bugs.webkit.org/show_bug.cgi?id=31116
Summary WebInspector: Corrects InspectorBackent::platform() on Windows.
Jocelyn Turcotte
Reported 2009-11-04 06:33:42 PST
This allows Qt on Windows to use platform-qt in the inspector.
Attachments
Patch (1.14 KB, patch)
2009-11-04 06:38 PST, Jocelyn Turcotte
no flags
Alternate solution patch: webkit port identifier (5.59 KB, patch)
2009-11-04 13:23 PST, Jocelyn Turcotte
no flags
Jocelyn Turcotte
Comment 1 2009-11-04 06:38:08 PST
Jocelyn Turcotte
Comment 2 2009-11-04 06:39:13 PST
I suppose that Gtk and Wx would expect the same behavior.
Eric Seidel (no email)
Comment 3 2009-11-04 10:11:44 PST
Looks OK, but I would think better would be to move the WIN_OS option to the end of the list, if it really should be a WIN_OS fallback for platforms based on WIN_OS.
Timothy Hatcher
Comment 4 2009-11-04 10:17:48 PST
I am not sure what the difference between WIN and WIN_OS is.
Adam Roben (:aroben)
Comment 5 2009-11-04 10:23:20 PST
(In reply to comment #4) > I am not sure what the difference between WIN and WIN_OS is. WIN_OS is true for any platform building on the Windows operating system. WIN is mostly only true for Apple's Windows port, though it's possible Brent Fulgham's Cairo/libCurl-based Windows port also sets WIN to true.
Eric Seidel (no email)
Comment 6 2009-11-04 10:25:15 PST
Oh, you're not alone. :) Sadly our PLATFORM macros are horribly confusing and you might get different answers from different people on different days. :) My understanding is that PLATFORM(WIN) is the Apple windows port, and PLATFORM(WIN_OS) is platforms which sit on top of the win32 api. The story is even more confusing on the mac. Maciej talked about a proposal to fix this long ago, I'm not sure what happened to that.
Jocelyn Turcotte
Comment 7 2009-11-04 13:23:35 PST
Created attachment 42516 [details] Alternate solution patch: webkit port identifier If we want to keep a WIN_OS wide platform identifier, I would rather use this solution instead. Unlike the PLATFORM macro on the C++ side, InspectorController.platform() returns a single value that must identify both the webkit flavor and the OS. Tell me if you prefer this solution or the first one, which should use identifers like qt-windows, qt-mac, gtk-linux if needed to switch different behavior/appearance of the inspector on different OS.
Jocelyn Turcotte
Comment 8 2009-11-04 13:27:57 PST
Details that might be usefull: currently, the only values returned by platform() that gets used in the code are "mac-*" and "qt"
WebKit Commit Bot
Comment 9 2009-11-04 13:44:15 PST
Comment on attachment 42516 [details] Alternate solution patch: webkit port identifier Clearing flags on attachment: 42516 Committed r50528: <http://trac.webkit.org/changeset/50528>
WebKit Commit Bot
Comment 10 2009-11-04 13:44:20 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.