Closed Bug 1393056 Opened 7 years ago Closed 7 years ago

Count open WebSockets owned by an nsGlobalWindow

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: farre, Assigned: farre)

References

Details

Attachments

(1 file, 1 obsolete file)

To be able to not throttle timeouts in the TimeoutManager when there are active web sockets, we need to keep tabs on the amount of websockets opened, as well as closed.
Assignee: nobody → afarre
Blocks: 1377766
Comment on attachment 8900294 [details] [diff] [review]
0001-Bug-1393056-Make-it-possible-to-count-open-WebSocket.patch

Shouldn't we count this per top level inner window, similar to IDB connection.
We're supposed to throttle or not-throttle tabs after all, not some iframes in tabs, as far as I know.
Attachment #8900294 - Flags: feedback?(bugs) → feedback-
Depends on: 1393359
Comment on attachment 8903194 [details] [diff] [review]
0001-Bug-1393056-Make-it-possible-to-count-open-WebSocket.patch

In general, could you use -p -U 8 when generating patches.
Attachment #8903194 - Flags: review?(bugs) → review+
Pushed by afarre@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/448006f5fb18
Make it possible to count open WebSockets on the main thread. r=smaug
No longer depends on: 1393359
https://hg.mozilla.org/mozilla-central/rev/448006f5fb18
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Depends on: 1396368
Was the intention in this bug to avoid only budget based throttling of sites using websocket?  It seems this bug did not prevent our normal 1second background throttle if the site is using websockets.  Was this intentional?
Flags: needinfo?(afarre)
Yep, that was intentional. We're aligning with the behaviour of Chrome here in that we always, with the exception of audio, allow the 1s throttling.
Flags: needinfo?(afarre)
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: