WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
34469
Web Inspector: Separate OS type from OS version (WebInspector.platform)
https://bugs.webkit.org/show_bug.cgi?id=34469
Summary
Web Inspector: Separate OS type from OS version (WebInspector.platform)
Alexander Pavlov (apavlov)
Reported
2010-02-02 03:15:43 PST
Currently the WebInspector.platform value holds both the OS type (mac, windows, etc.) and the OS version (vista-or-later, leopard, etc.) This complicates the stylesheet rules and results in a lot of duplication. This should be split up into two properties, say, WebInspector.osType and WebInspector.osVersion.
Attachments
[PATCH] Suggested solution
(7.46 KB, patch)
2010-02-02 08:05 PST
,
Alexander Pavlov (apavlov)
pfeldman
: review+
pfeldman
: commit-queue-
Details
Formatted Diff
Diff
[PATCH] Comments addressed
(7.63 KB, patch)
2010-02-02 08:43 PST
,
Alexander Pavlov (apavlov)
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2010-02-02 08:05:58 PST
Created
attachment 47931
[details]
[PATCH] Suggested solution
Pavel Feldman
Comment 2
2010-02-02 08:27:55 PST
Comment on
attachment 47931
[details]
[PATCH] Suggested solution
> +body.detached.platform-snowleopard #toolbar {
I'd suggest to rename "platform-snowleopard" to "platform-mac-snowleopard" or "mac-snowleopard"
> + return WebInspector.PlatformFlavor.WindowsVistaOrLater;
We don't seem to be consistent. We have vista or later, but don't have snow leopard or later. Should Vista imply newer platforms?
Alexander Pavlov (apavlov)
Comment 3
2010-02-02 08:43:45 PST
Created
attachment 47936
[details]
[PATCH] Comments addressed
Pavel Feldman
Comment 4
2010-02-02 08:48:14 PST
Comment on
attachment 47936
[details]
[PATCH] Comments addressed
> + this._isMac = (WebInspector.platform === "mac");
No need for () here.
Alexander Pavlov (apavlov)
Comment 5
2010-02-02 09:10:52 PST
"(...)" fixed. Committing to
http://svn.webkit.org/repository/webkit/trunk
... M WebCore/ChangeLog M WebCore/inspector/front-end/InspectorBackendStub.js M WebCore/inspector/front-end/InspectorFrontendHostStub.js M WebCore/inspector/front-end/inspector.css M WebCore/inspector/front-end/inspector.js Committed
r54240
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug