Open Bug 1899348 Opened 1 month ago Updated 26 days ago

[DNR] Remove MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES

Categories

(WebExtensions :: Request Handling, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

In bug 1894128, the MAX_NUMBER_OF_SESSION_RULES and MAX_NUMBER_OF_DYNAMIC_RULES constants were introduced to supersede MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES.

We should remove the old MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES. The only reason for having it was for compatibility with Chrome, which had the constant to define the limit on the combined number of dynamic + session rules. Firefox has always treated this as the separate limits of dynamic and session rules, and Chrome has followed this implementation since then. The MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES constant is now undocumented in Chrome and should not be used.
Safari is also willing to drop the MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES constant.

The impact of dropping this would be minimal. There are only a few extensions that reference this constant in their source, and only one extension with 3 users would have a logical change in behavior if the constant were to be dropped. Here are all public AMO extensions with the declarativeNetRequest or declarativeNetRequestWithHostAccess permission that contain MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES in their source. The number at the front is the number of users.

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.