Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Meizu Browser #2295

Merged
merged 1 commit into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions resources/browsers/browser.json
Original file line number Diff line number Diff line change
Expand Up @@ -2942,5 +2942,14 @@
},
"lite": false,
"standard": true
},
"meizu-browser": {
"type": "browser",
"properties": {
"Browser": "Meizu Browser",
"Browser_Maker": "Meizu Technology Co., Ltd."
},
"lite": false,
"standard": true
}
}
11 changes: 11 additions & 0 deletions resources/devices/mobile-phone/meizu.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,16 @@
"Device_Brand_Name": "Meizu"
},
"standard": false
},
"Meizu M6 Note": {
"type": "mobile-phone",
"properties": {
"Device_Name": "M6 Note",
"Device_Code_Name": "M6 Note",
"Device_Maker": "Meizu Technology Co., Ltd.",
"Device_Pointing_Method": "touchscreen",
"Device_Brand_Name": "Meizu"
},
"standard": false
}
}
37 changes: 37 additions & 0 deletions resources/user-agents/browsers/meizu-browser/meizu-browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"division": "Meizu Browser",
"sortIndex": 1110,
"lite": false,
"standard": true,
"userAgents": [
{
"userAgent": "Meizu Browser",
"browser": "meizu-browser",
"platform": "Android",
"engine": "Blink",
"device": "general Mobile Phone (Touch)",
"properties": {
"Parent": "DefaultProperties",
"Comment": "Meizu Browser"
},
"children": [
{
"match": "Mozilla/5.0 (#PLATFORM##DEVICE# Build/*) applewebkit* (*khtml*like*gecko*) Version/* Chrome/* MZBrowser/* Safari/*",
"devices": {
"MZ-M6 Note": "Meizu M6 Note"
},
"platforms": [
"Android_7_1"
]
},
{
"match": "Mozilla/5.0 (#PLATFORM#) applewebkit* (*khtml*like*gecko*) Version/* Chrome/* MZBrowser/* Safari/*",
"platforms": [
"Android_7_1",
"Android"
]
}
]
}
]
}
47 changes: 47 additions & 0 deletions tests/issues/issue-2239.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

return [
'issue-2239-A' => [
'ua' => 'Mozilla/5.0 (Linux; U; Android 7.1.2; zh-CN; MZ-M6 Note Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/62.0.3202.97 MZBrowser/8.5.1 Mobile Safari/537.36',
'properties' => [
'Comment' => 'Meizu Browser',
'Browser' => 'Meizu Browser',
'Browser_Type' => 'Browser',
'Browser_Bits' => '32',
'Browser_Maker' => 'Meizu Technology Co., Ltd.',
'Browser_Modus' => 'unknown',
'Version' => '0.0',
'Platform' => 'Android',
'Platform_Version' => '7.1',
'Platform_Description' => 'Android OS',
'Platform_Bits' => '32',
'Platform_Maker' => 'Google Inc',
'Alpha' => false,
'Beta' => false,
'Frames' => true,
'IFrames' => true,
'Tables' => true,
'Cookies' => true,
'JavaScript' => true,
'VBScript' => false,
'JavaApplets' => false,
'isSyndicationReader' => false,
'isFake' => false,
'isAnonymized' => false,
'isModified' => false,
'CssVersion' => '3',
'Device_Name' => 'M6 Note',
'Device_Maker' => 'Meizu Technology Co., Ltd.',
'Device_Type' => 'Mobile Phone',
'Device_Pointing_Method' => 'touchscreen',
'Device_Code_Name' => 'M6 Note',
'Device_Brand_Name' => 'Meizu',
'RenderingEngine_Name' => 'Blink',
'RenderingEngine_Version' => 'unknown',
'RenderingEngine_Maker' => 'Google Inc',
],
'lite' => false,
'standard' => true,
'full' => true,
],
];