Closed
Bug 1419144
Opened 7 years ago
Closed 7 years ago
Remove some functions / classes from nsGlobalWindow.cpp
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: nika, Assigned: nika)
References
Details
Attachments
(20 files, 2 obsolete files)
I'm going to be doing a few passes of cleanup on the code relating to nsGlobalWindow and nsPIDOMWindow. These are probably going to occur as a large number of small patches split across a few bugs whenever I feel like I've accumulated enough of them. This patch set is focused on removing some of the functions/classes from nsGlobalWindow.cpp.
Assignee | ||
Updated•7 years ago
|
Blocks: window-divorce
Assignee | ||
Comment 1•7 years ago
|
||
MozReview-Commit-ID: 7m5ZJ52bkRs
Attachment #8930224 -
Flags: review?(bugs)
Assignee | ||
Comment 2•7 years ago
|
||
MozReview-Commit-ID: GGMJC6HuCLa
Attachment #8930225 -
Flags: review?(afarre)
Assignee | ||
Comment 3•7 years ago
|
||
MozReview-Commit-ID: 1yftLoS3eo2
Attachment #8930226 -
Flags: review?(bugs)
Assignee | ||
Comment 4•7 years ago
|
||
MozReview-Commit-ID: KxJgYeOQPyH
Attachment #8930227 -
Flags: review?(afarre)
Assignee | ||
Comment 5•7 years ago
|
||
MozReview-Commit-ID: L41gwz19vBq
Attachment #8930228 -
Flags: review?(bugs)
Assignee | ||
Comment 6•7 years ago
|
||
MozReview-Commit-ID: LRhNfAdljYJ
Attachment #8930229 -
Flags: review?(bugs)
Assignee | ||
Comment 7•7 years ago
|
||
MozReview-Commit-ID: HZDX84ktgiy
Attachment #8930230 -
Flags: review?(bugs)
Assignee | ||
Comment 8•7 years ago
|
||
MozReview-Commit-ID: 8vi1mAzmQUU
Attachment #8930231 -
Flags: review?(bugs)
Assignee | ||
Comment 9•7 years ago
|
||
MozReview-Commit-ID: 9KwK7GyXZN3
Attachment #8930232 -
Flags: review?(bugs)
Assignee | ||
Comment 10•7 years ago
|
||
MozReview-Commit-ID: 7AhgZLIvcZ5
Attachment #8930233 -
Flags: review?(bugs)
Assignee | ||
Comment 11•7 years ago
|
||
MozReview-Commit-ID: CQI6eWIHzsT
Attachment #8930234 -
Flags: review?(bugs)
Assignee | ||
Comment 12•7 years ago
|
||
MozReview-Commit-ID: 6PNWjgE8vgq
Attachment #8930235 -
Flags: review?(bugs)
Assignee | ||
Comment 13•7 years ago
|
||
MozReview-Commit-ID: C3lK4TORumy
Attachment #8930236 -
Flags: review?(bugs)
Assignee | ||
Comment 14•7 years ago
|
||
MozReview-Commit-ID: 5SuLQZqtzJf
Attachment #8930238 -
Flags: review?(bugs)
Assignee | ||
Comment 15•7 years ago
|
||
MozReview-Commit-ID: Kt2moF5nsDg
Attachment #8930239 -
Flags: review?(bugs)
Assignee | ||
Comment 16•7 years ago
|
||
MozReview-Commit-ID: 1ATfmoN0oue
Attachment #8930240 -
Flags: review?(bugs)
Assignee | ||
Comment 17•7 years ago
|
||
MozReview-Commit-ID: HxjJ43UyecW
Attachment #8930241 -
Flags: review?(bugs)
Assignee | ||
Comment 18•7 years ago
|
||
MozReview-Commit-ID: IA29zmacrJ4
Attachment #8930242 -
Flags: review?(bugs)
Assignee | ||
Comment 19•7 years ago
|
||
MozReview-Commit-ID: Cgh1Cbb60Zk
Attachment #8930243 -
Flags: review?(bugs)
Comment 20•7 years ago
|
||
You can remove nsGlobalWindowOuter::RiskyUnlink, in case you haven't noticed that.
Assignee | ||
Comment 21•7 years ago
|
||
I haven't gone through with a fine toothed comb and removed unused methods, but I figure there's no reason not to remove a method when someone brings it up ^.^. MozReview-Commit-ID: 3BZIKFc5noK
Attachment #8930250 -
Flags: review?(continuation)
Comment 22•7 years ago
|
||
Comment on attachment 8930250 [details] [diff] [review] Part 20: Remove nsGlobalWindowOuter::RiskyUnlink Review of attachment 8930250 [details] [diff] [review]: ----------------------------------------------------------------- Thanks.
Attachment #8930250 -
Flags: review?(continuation) → review+
Updated•7 years ago
|
Attachment #8930224 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930226 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930228 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930229 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930230 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930231 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930232 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930233 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930234 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930235 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930236 -
Flags: review?(bugs) → review+
Comment 23•7 years ago
|
||
Comment on attachment 8930238 [details] [diff] [review] Part 14: Move some debug defines to the places where they are used You can kill + +#if defined(DEBUG_bryner) || defined(DEBUG_chb) +#define DEBUG_PAGE_CACHE +#endif +
Attachment #8930238 -
Flags: review?(bugs) → review+
Comment 24•7 years ago
|
||
Comment on attachment 8930239 [details] [diff] [review] Part 15: Move gOpenPopupSpamCount to nsGlobalWindowOuter GetPopupControlState() is not inner only
Attachment #8930239 -
Flags: review?(bugs) → review-
Updated•7 years ago
|
Attachment #8930240 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930243 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930242 -
Flags: review?(bugs) → review+
Updated•7 years ago
|
Attachment #8930241 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 25•7 years ago
|
||
MozReview-Commit-ID: Kt2moF5nsDg
Attachment #8930727 -
Flags: review?(bugs)
Assignee | ||
Updated•7 years ago
|
Attachment #8930239 -
Attachment is obsolete: true
Assignee | ||
Comment 26•7 years ago
|
||
MozReview-Commit-ID: 5SuLQZqtzJf
Assignee | ||
Updated•7 years ago
|
Attachment #8930238 -
Attachment is obsolete: true
Updated•7 years ago
|
Attachment #8930225 -
Flags: review?(afarre) → review+
Updated•7 years ago
|
Attachment #8930227 -
Flags: review?(afarre) → review+
Comment 27•7 years ago
|
||
Comment on attachment 8930727 [details] [diff] [review] Part 15: Move PopupControlState into nsContentUtils This is a bit confusing to have nsContentUtils::GetPopupControlState and nsGlobalWindow*::GetPopupControlState() Could we just have the first one? Or at least I would just make nsGlobalWindowInner::GetPopupControlState() to return nsContentUtils::GetPopupControlState() and then there wasn't need to change nsGlobalWindowInner::DialogsAreBeingAbused() With that, r+
Attachment #8930727 -
Flags: review?(bugs) → review+
Comment 28•7 years ago
|
||
Pushed by nika@thelayzells.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7b4fc8a5f472 Part 1: Move ShouldShowFocusRingIfFocusedByMouse into nsGlobalWindowInner.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/e863c2b5a8d3 Part 2: Remove unused gThrottledIdlePeriodLength, r=farre https://hg.mozilla.org/integration/mozilla-inbound/rev/61d666efd282 Part 3: Move pref caches into nsGlobalWindowInner where they are used, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/4435161ad0bc Part 4: Remove RemoveIdleCallback from outer window, r=farre https://hg.mozilla.org/integration/mozilla-inbound/rev/98490bf58d1b Part 5: Move CommandDispatcher and ChildCommandDispatcher into nsGlobalWindowOuter.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/53bc343fcf1b Part 6: Move IsInterval into nsGlobalWindowInner.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/5d92f87daafa Part 7: Move WindowDestroyedEvent into its own file, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/752c1ff4c3a4 Part 8: Move TryGetTabChildGlobalAsEventTarget into nsContentUtils, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/f44b0454c43e Part 9: Move CreateNativeGlobalForInner into nsGlobalWindowOuter.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/0f9298059e50 Part 10: Move PushPopupControlState and PopPopupControlState into nsGlobalWindowOuter.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/dcb748bda970 Part 11: Remove some unused defines, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/965e9680ca56 Part 12: Move kXULControllersCID into nsGlobalWindowOuter.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/0f54c70b06fa Part 13: Move some defines into nsGlobalWindowInner.cpp, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/b0be253b85aa Part 14: Move some debug defines to the places where they are used, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/3db4f6535159 Part 15: Move PopupControlState into nsContentUtils, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/ba08fd3b33d2 Part 16: Move gDumpFile into nsGlobalWindowInner, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/8fa06e5b80ba Part 17: Split gDOMLeakPRLog into Inner/Outer variants, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/9291e7d4b268 Part 18: Move AsInner() and AsOuter() off of nsPIDOMWindow<T>, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/4b7ee0d7ade8 Part 19: Move IsRootOuterWindow to nsPIDOMWindowOuter, r=smaug https://hg.mozilla.org/integration/mozilla-inbound/rev/cb55e8d55ff9 Part 20: Remove nsGlobalWindowOuter::RiskyUnlink, r=mccr8
Comment 29•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7b4fc8a5f472 https://hg.mozilla.org/mozilla-central/rev/e863c2b5a8d3 https://hg.mozilla.org/mozilla-central/rev/61d666efd282 https://hg.mozilla.org/mozilla-central/rev/4435161ad0bc https://hg.mozilla.org/mozilla-central/rev/98490bf58d1b https://hg.mozilla.org/mozilla-central/rev/53bc343fcf1b https://hg.mozilla.org/mozilla-central/rev/5d92f87daafa https://hg.mozilla.org/mozilla-central/rev/752c1ff4c3a4 https://hg.mozilla.org/mozilla-central/rev/f44b0454c43e https://hg.mozilla.org/mozilla-central/rev/0f9298059e50 https://hg.mozilla.org/mozilla-central/rev/dcb748bda970 https://hg.mozilla.org/mozilla-central/rev/965e9680ca56 https://hg.mozilla.org/mozilla-central/rev/0f54c70b06fa https://hg.mozilla.org/mozilla-central/rev/b0be253b85aa https://hg.mozilla.org/mozilla-central/rev/3db4f6535159 https://hg.mozilla.org/mozilla-central/rev/ba08fd3b33d2 https://hg.mozilla.org/mozilla-central/rev/8fa06e5b80ba https://hg.mozilla.org/mozilla-central/rev/9291e7d4b268 https://hg.mozilla.org/mozilla-central/rev/4b7ee0d7ade8 https://hg.mozilla.org/mozilla-central/rev/cb55e8d55ff9
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•