Skip to content

Commit 699f9c6

Browse files
committed
Add new browser: Norton Private Browser - https://us.norton.com/products/norton-private-browser
1 parent 74814c6 commit 699f9c6

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

src/enums/ua-parser-enums.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const BrowserName = Object.freeze({
107107
NETSCAPE: 'Netscape',
108108
NETSURF: 'Netsurf',
109109
NOKIA: 'Nokia Browser',
110+
NORTON: 'Norton Private Browser',
110111
OBIGO: 'Obigo',
111112
OCULUS: 'Oculus Browser',
112113
OMNIWEB: 'OmniWeb',

src/main/ua-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@
403403
], [VERSION, [NAME, 'Smart ' + LENOVO + SUFFIX_BROWSER]], [
404404
/(avast|avg)\/([\w\.]+)/i // Avast/AVG Secure Browser
405405
], [[NAME, /(.+)/, '$1 Secure' + SUFFIX_BROWSER], VERSION], [
406+
/norton\/([\w\.]+)/i // Norton Private Browser
407+
], [VERSION, [NAME, 'Norton Private' + SUFFIX_BROWSER]], [
406408
/\bfocus\/([\w\.]+)/i // Firefox Focus
407409
], [VERSION, [NAME, FIREFOX+' Focus']], [
408410
/ mms\/([\w\.]+)$/i // Opera Neon

test/data/ua-ch/headers.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,20 @@ const UACHTests = [
139139
}
140140
}
141141
},
142+
{
143+
desc: 'Norton Private Browser',
144+
headers : {
145+
'sec-ch-ua': '"Chromium";v="124", "Norton Private Browser";v="124", "Not-A.Brand";v="99"'
146+
},
147+
expect: {
148+
browser : {
149+
name : 'Norton Private Browser',
150+
version : '124',
151+
major : '124',
152+
type : undefined
153+
}
154+
}
155+
},
142156
{
143157
desc: 'Oculus Browser',
144158
headers : {

test/data/ua/browser/browser-all.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,16 @@
11061106
"major" : "undefined"
11071107
}
11081108
},
1109+
{
1110+
"desc" : "Norton",
1111+
"ua" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Norton/130.0.0.0",
1112+
"expect" :
1113+
{
1114+
"name" : "Norton Private Browser",
1115+
"version" : "130.0.0.0",
1116+
"major" : "130"
1117+
}
1118+
},
11091119
{
11101120
"desc" : "Otter",
11111121
"ua" : "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/602.1 (KHTML, like Gecko) Otter/1.0.81",

0 commit comments

Comments
 (0)