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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: bryner)

Details

Attachments

(1 file)

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.
sounds fine by me. that ForceData code was needed because it was written LONG before there was a shutdown notification mechanism.
Attached patch patchSplinter Review
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: bsmedberg → bryner
Status: NEW → ASSIGNED
Attachment #150328 - Flags: superreview?(blizzard)
Attachment #150328 - Flags: review?(bsmedberg)
Attachment #150328 - Flags: review?(bsmedberg) → review+
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.
Attachment #150328 - Flags: superreview?(blizzard) → superreview+
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
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: