Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:sbradnick
surf
notifications-surf.c.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File notifications-surf.c.diff of Package surf
--- surf.c.orig 2022-10-24 14:28:26.811090906 -0400 +++ surf.c 2022-10-24 14:35:29.744634666 -0400 @@ -72,6 +72,7 @@ KioskMode, LoadImages, MediaManualPlay, + Notifications, PreferredLanguages, RunInFullscreen, ScrollBars, @@ -675,6 +675,7 @@ togglestats[6] = curconfig[Style].val.i ? 'M' : 'm'; togglestats[8] = curconfig[Certificate].val.i ? 'X' : 'x'; togglestats[9] = curconfig[StrictTLS].val.i ? 'T' : 't'; + togglestats[10] = curconfig[Notifications].val.i ? 'L' : 'l'; } void @@ -828,6 +830,9 @@ webkit_settings_set_media_playback_requires_user_gesture( c->settings, a->i); break; + case Notifications: + refresh = 0; + return; case PreferredLanguages: return; /* do nothing */ case RunInFullscreen: @@ -1028,6 +1033,7 @@ cmd[i++] = curconfig[Geolocation].val.i ? "-G" : "-g" ; cmd[i++] = curconfig[LoadImages].val.i ? "-I" : "-i" ; cmd[i++] = curconfig[KioskMode].val.i ? "-K" : "-k" ; + cmd[i++] = curconfig[Notifications].val.i ? "-L" : "-l" ; cmd[i++] = curconfig[Style].val.i ? "-M" : "-m" ; cmd[i++] = curconfig[Inspector].val.i ? "-N" : "-n" ; if (scriptfile && g_strcmp0(scriptfile, "")) { @@ -1628,6 +1634,8 @@ else if (webkit_user_media_permission_is_for_video_device( WEBKIT_USER_MEDIA_PERMISSION_REQUEST(r))) param = AccessWebcam; + } else if (WEBKIT_IS_NOTIFICATION_PERMISSION_REQUEST(r)) { + param = Notifications; } else { return FALSE; } @@ -2092,6 +2100,14 @@ defconfig[KioskMode].val.i = 1; defconfig[KioskMode].prio = 2; break; + case 'l': + defconfig[Notifications].val.i = 0; + defconfig[Notifications].prio = 2; + break; + case 'L': + defconfig[Notifications].val.i = 1; + defconfig[Notifications].prio = 2; + break; case 'm': defconfig[Style].val.i = 0; defconfig[Style].prio = 2;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor