Closed
Bug 239390
Opened 21 years ago
Closed 21 years ago
clipboard should watch "xpcom-shutdown" instead of forcing nsAppRunner.cpp to call ForceDataToClipboard
Categories
(Core Graveyard :: GFX, defect)
Core Graveyard
GFX
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Assigned: bryner)
Details
Attachments
(1 file)
13.97 KB,
patch
|
benjamin
:
review+
blizzard
:
superreview+
|
Details | Diff | Splinter Review |
Currently, nsAppRunner.cpp has to call ForceDataToClipboard before xpcom
shutdown. This seems really silly to me, and can hurt embedders. The clipboard
implementations that needs this functionality should just implement nsIObserver
and watch the "xpcom-shutdown" topic.
Comment 1•21 years ago
|
||
sounds fine by me. that ForceData code was needed because it was written LONG
before there was a shutdown notification mechanism.
Assignee | ||
Comment 2•21 years ago
|
||
This is actually the reason that making -register use ScopedXPCOMStartup on the
aviary branch made gtk warnings happen (we ended up creating a clipboard
instance without initializing gtk).
This patch is against the aviary branch, and has actually been in the last few
Linux branch nightlies.
Assignee | ||
Updated•21 years ago
|
Assignee: bsmedberg → bryner
Status: NEW → ASSIGNED
Assignee | ||
Updated•21 years ago
|
Attachment #150328 -
Flags: superreview?(blizzard)
Attachment #150328 -
Flags: review?(bsmedberg)
Reporter | ||
Updated•21 years ago
|
Attachment #150328 -
Flags: review?(bsmedberg) → review+
Assignee | ||
Comment 3•21 years ago
|
||
A couple of minor corrections to this patch:
- nsBaseClipboard::ForceDataToClipboard should be removed
- os2/ and windows/ nsClipboard::Observe should have |const| on the aData parameter.
Updated•21 years ago
|
Attachment #150328 -
Flags: superreview?(blizzard) → superreview+
Reporter | ||
Comment 4•21 years ago
|
||
This was fixed a while back:
nsAppRunner.cpp 1.32 bryner%brianryner.com 2004-06-10 13:39
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•