# US 2019/0356748 A1 · Service Worker Push Violation Enforcement

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0356748 A1
- Document ID: US20190356748A1
- Status: Published application
- Kind: A1
- Application number: 15/980,359
- Filed: 2018-05-15
- Published: 2019-11-21
- Earliest claimed: 2018-05-15
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Ali ALABBAS; Steven J. BECKER
- Web page: https://patentgrep.com/patent/US20190356748A1

## CPC

- H04L 67/55: Push-based network services
- G06Q 10/063114: {Status monitoring or status determination for a person or group}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- H04L 67/75: Indicating network or usage conditions on the user display
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

In one embodiment, a computer system detects a notification for a service worker. The service worker being configured to process the notification for a website. The computer system monitors a behavior of the service worker in response to receiving the notification and compares the behavior to one or more policies for the notification to determine that the behavior violated at least one of the one or more policies. The one or more policies describe restrictions on behavior for producing a visible result for the notification or responding to the notification within a time period. The computer system then performs a mitigation action based on the service worker violating the at least one of the one or more policies, the mitigation action restricting an aspect of use of the notification for the website.

## Claims

### Claim 1

A computer system comprising:
a processor; and
a computer readable storage medium having stored thereon program code that, when executed by the processor, causes the processor to:
detect a notification for a service worker, the service worker being configured to process the notification for a website;
monitor a behavior of the service worker in response to receiving the notification;
compare the behavior to one or more policies for the notification to determine that the behavior violated at least one of the one or more policies, wherein the one or more policies describe restrictions on behavior for producing a visible result for the notification or responding to the notification within a time period; and
perform a mitigation action based on the service worker violating the at least one of the one or more policies, the mitigation action restricting an aspect of use of the notification for the website.

### Claim 2 (depends on 1)

The computer system of claim 1, further configured for:
receive the notification at an operating system; and
send the notification to the service worker, the service worker running at an application level to process the notification.

### Claim 3 (depends on 1)

The computer system of claim 1, wherein monitoring the behavior of the service worker comprises monitor whether the service worker executes a function associated with the notification.

### Claim 4 (depends on 3)

The computer system of claim 3, wherein the function comprises a function to display the notification to a user.

### Claim 5 (depends on 3)

The computer system of claim 3, wherein the function comprises an action to perform within the time limit.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the action directs focus to a webpage associated with the notification or opens a window for the webpage associated with the notification.

### Claim 7 (depends on 1)

The computer system of claim 1, wherein comparing the behavior to one or more policies for the notification comprises:
compare the behavior to a policy that tests whether the notification is displayed.

### Claim 8 (depends on 1)

The computer system of claim 1, wherein comparing the behavior to one or more policies for notifications comprises:
compare the behavior to a policy that tests whether a response to the notification is processed within the time limit to display the application.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the policy tests whether a function that opens a window or directs focus to a window is executed.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein the policy tests whether the function that opens the window or directs focus to the window is executed within the time period.

### Claim 11 (depends on 1)

The computer system of claim 1, further configured for:
accumulate a policy specific violation count if a policy is violated based on the comparing of the behavior to one or more policies, the policy specific violation count accumulating violations for a single policy, wherein the mitigation action is performed when the policy specific violation count meets a threshold.

### Claim 12 (depends on 1)

The computer system of claim 1, further configured for:
accumulate a total violation count if a policy is violated based on the comparing of the behavior to one or more policies, the total violation count accumulating a total amount of violations for a plurality of policies, wherein the mitigation action is performed when the total violation count violates meets a threshold.

### Claim 13 (depends on 1)

The computer system of claim 1, further configured for:
accumulate a policy specific violation count if a policy is violated based on the comparing of the behavior to the one or more policies;
accumulate a total violation count if a policy is violated based on the comparing of the behavior to the one or more policies; and
determine when one of the policy specific violations meets a first threshold or the total violations meets a second threshold, wherein the mitigation action is performed when the policy specific violation count meets the first threshold or the total violation count meets the second threshold.

### Claim 14 (depends on 1)

The computer system of claim 1, wherein performing the mitigation action comprises:
send an unsubscribe message to unsubscribe the service worker from receiving notifications.

### Claim 15 (depends on 1)

The computer system of claim 1, wherein performing the mitigation action comprises:
not sending a future notification to the service worker when the future notification is received for the service worker.

### Claim 16 (depends on 1)

The computer system of claim 1, further configured for:
adjust the amount of violations when the behavior of the service worker does not violate the one or more policies.

### Claim 17 (depends on 1)

The computer system of claim 1, wherein the service worker is running in the background of the computer system to process the notification.

### Claim 18 (depends on 1)

The computer system of claim 1, wherein the notification is a push notification from the website, the push notification being initiated by the website based on a change at the website.

### Claim 19

A method comprising:
detecting, by a computer system, a notification for a service worker, the service worker being configured to process the notification for a website;
monitoring, by the computer system, a behavior of the service worker in response to receiving the notification;
comparing, by the computer system, the behavior to one or more policies for the notification to determine that the behavior violated at least one of the one or more policies, wherein the one or more policies describe restrictions on behavior for producing a visible result for the notification or responding to the notification within a time period; and
performing, by the computer system, a mitigation action based on the service worker violating the at least one of the one or more policies, the mitigation action restricting an aspect of use of the notification for the website.

### Claim 20

A computer readable storage medium having stored thereon program code executable by a computer system, the program code causing the computer system to:
detect a notification for a service worker, the service worker being configured to process the notification for a website;
monitor a behavior of the service worker in response to receiving the notification;
compare the behavior to one or more policies for the notification to determine that the behavior violated at least one of the one or more policies, wherein the one or more policies describe restrictions on behavior for producing a visible result for the notification or responding to the notification within a time period; and
perform a mitigation action based on the service worker violating the at least one of the one or more policies, the mitigation action restricting an aspect of use of the notification for the website.
