Menu

#896 (in 2.5.2) Safari: Browser font sizes on Mac too big

2.5.1
fixed
1
2013-06-11
2003-06-11
No

The font size for Safari should be the same as for Opera
and Omniweb. Its user-agent is :

Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/
74 (KHTML, like Gecko) Safari/74

"74" is part of the version number : "1.0 Beta 2 (v74)"

Safari is not a marginal browser, it will probably become the
default in Mac OS X 10.3.

Discussion

  • Garvin Hicking

    Garvin Hicking - 2003-06-12

    Logged In: YES
    user_id=473563

    Because I have no Mac to test this, could you please to the
    following:

    Open your libraries/common.lib.php file. Search for this string:

    -----------------
    && (PMA_USR_BROWSER_AGENT == 'OMNIWEB'
    || PMA_USR_BROWSER_AGENT == 'OPERA')) {
    -----------------

    and replace this with:

    -----------------
    && (PMA_USR_BROWSER_AGENT == 'OMNIWEB'
    || PMA_USR_BROWSER_AGENT == 'OPERA'
    || PMA_USR_BROWSER_AGENT == 'SAFARI')) {
    -----------------

    Then open your libraries/defines.lib.php file and search for:

    -----------------
    } else if (ereg('Mozilla/([0-9].[0-9]{1,2})',
    $HTTP_USER_AGENT, $log_version)) {
    define('PMA_USR_BROWSER_VER', $log_version[1]);
    define('PMA_USR_BROWSER_AGENT', 'MOZILLA');
    } else {
    -----------------

    and replace that with:

    -----------------
    } else if (ereg('Mozilla/([0-9].[0-9]{1,2})',
    $HTTP_USER_AGENT, $log_version) && ereg('Safari/([0-9]*)',
    $HTTP_USER_AGENT, $log_version2)) {
    define('PMA_USR_BROWSER_VER', $log_version[1] . '.'
    . $log_version2[1]);
    define('PMA_USR_BROWSER_AGENT', 'SAFARI');
    } else if (ereg('Mozilla/([0-9].[0-9]{1,2})',
    $HTTP_USER_AGENT, $log_version)) {
    define('PMA_USR_BROWSER_VER', $log_version[1]);
    define('PMA_USR_BROWSER_AGENT', 'MOZILLA');
    } else {
    -----------------

    Then please tell if this works out for you, so we can put it
    in our official release... Thanks!

     
  • Garvin Hicking

    Garvin Hicking - 2003-06-12
    • priority: 5 --> 3
    • summary: The font size is too big when using Apple's Safari browser. --> Safari: Browser font sizes on Mac too big
    • assigned_to: nobody --> garvinhicking
    • labels: 317619 --> Browser/W3C/JS compatibility
    • status: open --> open-accepted
     
  • Garvin Hicking

    Garvin Hicking - 2003-06-20

    Logged In: YES
    user_id=473563

    Hello?

    Has anybody gotten to try the new safari detection? :)

     
  • Alexander M. Turek

    • milestone: --> 2.5.1
     
  • Marcus Bointon

    Marcus Bointon - 2003-07-02

    Logged In: YES
    user_id=602594

    Default text size in the 1.0 release of Safari changed to Times 16.
    the agent string is now:
    "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85
    (KHTML, like Gecko) Safari/85"
    All versions prior to this are expiring betas, so no effort should be
    made to retain compatibility with them.
    Now that MacIE is deprecated, Safari should be considered
    definitive for MacOS X compatibility. Conveniently enough, it's
    most like Mozilla in rendering habits.

     
  • Marcus Bointon

    Marcus Bointon - 2003-07-02

    Logged In: YES
    user_id=602594

    I manually pasted in those changes - I can't actually tell if it's
    doing anything different to before, but it seems to work OK in
    Safari, but I didn't have a problem with text size before.

     
  • Marcus Bointon

    Marcus Bointon - 2003-07-02

    Logged In: YES
    user_id=602594

    Actually, revise that - must have had some cached pages or
    something. It now appears with smaller text in Safari, so the
    changes must be working.

     
  • Garvin Hicking

    Garvin Hicking - 2003-07-07

    Logged In: YES
    user_id=473563

    Okay, I've put the detection into cvs.

     
  • Garvin Hicking

    Garvin Hicking - 2003-07-07
    • summary: Safari: Browser font sizes on Mac too big --> (in 2.5.2) Safari: Browser font sizes on Mac too big
    • priority: 3 --> 1
    • status: open-accepted --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2003-07-22
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed