Closed
Bug 1897400
Opened 1 year ago
Closed 1 year ago
Move mWindow out of TimeoutManager, in order to reuse it for the Workers case (refactor)
Categories
(Core :: DOM: Workers, enhancement)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
129 Branch
| Tracking | Status | |
|---|---|---|
| firefox129 | --- | fixed |
People
(Reporter: aiunusov, Assigned: aiunusov)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Possible solutions:
1 put them into https://searchfox.org/mozilla-central/source/dom/base/nsIGlobalObject.h
2 create hierarchy of TimeoutManager classes (i.e.: generic TimeoutManager with the specialization for the window and worker cases)
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → aiunusov
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Attachment #9402915 -
Attachment description: WIP: Bug 1897400 - make mWindow to be a RefPtr → WIP: Bug 1897400 - Move mWindow out of TimeoutManager, in order to reuse it for the Workers case
| Assignee | ||
Comment 2•1 year ago
|
||
Affected methods:
WindowID ()
GetExtantDoc ()
IsDocumentLoaded ()
GetBrowsingContextGroup ()
GetContextInternal ()
IsSuspended ()
IsFrozen ()
IsDying ()
HasActiveIndexedDBDatabases ()
HasActivePeerConnections ()
HasOpenWebSockets ()
IsChromeWindow ()
IsPlayingAudio ()
IsBackgroundInternal ()
Updated•1 year ago
|
Attachment #9402915 -
Attachment description: WIP: Bug 1897400 - Move mWindow out of TimeoutManager, in order to reuse it for the Workers case → Bug 1897400 - Move mWindow out of TimeoutManager, in order to reuse it for the Workers case, r=smaug
Updated•1 year ago
|
Attachment #9402915 -
Attachment description: Bug 1897400 - Move mWindow out of TimeoutManager, in order to reuse it for the Workers case, r=smaug → WIP: Bug 1897400 - Move mWindow out of TimeoutManager, in order to reuse it for the Workers case, r=smaug
Updated•1 year ago
|
Attachment #9402915 -
Attachment description: WIP: Bug 1897400 - Move mWindow out of TimeoutManager, in order to reuse it for the Workers case, r=smaug → WIP: Bug 1897400 - change the type for mWindow to from nsGlobalWindowInner to nsIGlobalObject, in order to reuse TimeoutManager for the workers case in the future, r=smaug
Updated•1 year ago
|
Attachment #9402915 -
Attachment description: WIP: Bug 1897400 - change the type for mWindow to from nsGlobalWindowInner to nsIGlobalObject, in order to reuse TimeoutManager for the workers case in the future, r=smaug → Bug 1897400 - prepare TimeoutManager for reuse in workers via nsIGlobalObject, r=smaug
Pushed by aiunusov@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f479ecc1133d
prepare TimeoutManager for reuse in workers via nsIGlobalObject, r=smaug
Comment 4•1 year ago
|
||
Backed out for causing build bustages TimeoutManager.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line: /builds/worker/checkouts/gecko/dom/base/TimeoutManager.cpp(687,3): error: Unused "kungFuDeathGrip" 'RefPtr<nsIGlobalObject>' objects constructed from temporary values are prohibited
Flags: needinfo?(aiunusov)
| Assignee | ||
Comment 5•1 year ago
|
||
this was intentional, from the existing code.
But I will try to avoid it
Flags: needinfo?(aiunusov)
Pushed by aiunusov@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eba0d1690226
prepare TimeoutManager for reuse in workers via nsIGlobalObject, r=smaug
Comment 7•1 year ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox129:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•