Closed Bug 456892 Opened 16 years ago Closed 16 years ago

Removal TopLevelWindowIsModal

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: xfsunoles, Assigned: xfsunoles)

Details

Attachments

(1 file, 2 obsolete files)

I would like somebody else to remove any OS 9 code because it is unused and dead. There is a few under under the xpcom and xpfe directory.
Since I didn't give a specfic one but i found these two

1) http://mxr.mozilla.org/mozilla-central/source/xpfe/appshell/src/nsAppShellService.cpp#551

2) http://mxr.mozilla.org/mozilla-central/source/xpcom/MoreFiles/MoreFilesX.c#84

I believe there is more than these two that I didn't find.
Attached patch Removal under xpfe (obsolete) — Splinter Review
Assignee: nobody → xfsunoles
Summary: Removal OS 9 code → Removal TopLevelWindowIsModal
Status: NEW → ASSIGNED
Attachment #340384 - Flags: superreview?(neil)
Attachment #340384 - Flags: review?(neil)
Comment on attachment 340384 [details] [diff] [review]
Removal under xpfe

>-/* Old function, needs to be removed... it was only used on Mac OS9 */
>-NS_IMETHODIMP
>-nsAppShellService::TopLevelWindowIsModal(nsIXULWindow *aWindow, PRBool aModal)
>-{
>-  return NS_OK;
>-}
You need to remove the declaration (in nsIAppShellService.idl, and don't forget to create a new uuid).

>   mContinueModalLoop = PR_FALSE;
>   window->SetModal(PR_FALSE);
>-  if (appShellService)
>-      appShellService->TopLevelWindowIsModal(
>-                         static_cast<nsIXULWindow*>(this), PR_FALSE);
>+
>   /*   Note there's no EnableParent(PR_TRUE) here to match the PR_FALSE one
>      above. That's done in ExitModalLoop. It's important that the parent
>      be re-enabled before this window is made invisible; to do otherwise
Don't put in a blank line, the comment refers to the code above it.
Attachment #340384 - Flags: superreview?(neil)
Attachment #340384 - Flags: superreview-
Attachment #340384 - Flags: review?(neil)
Attached patch Make it so (obsolete) — Splinter Review
Attachment #340384 - Attachment is obsolete: true
Attachment #340965 - Flags: superreview?(neil)
Attachment #340965 - Flags: superreview?(neil)
Comment on attachment 340965 [details] [diff] [review]
Make it so

git-apply: fatal: corrupt patch at line 68
Comment on attachment 340965 [details] [diff] [review]
Make it so

>-[scriptable, uuid(93a28ba2-7e22-11d9-9b6f-000a95d535fa)]
>+[scriptable, uuid(8BEA00EE-8E55-11DD-BEB3-497956D89593)]
Oh, and I prefer lower case uuids ;-)
Attachment #340965 - Attachment is obsolete: true
Comment on attachment 341020 [details] [diff] [review]
Try Again, I hope it works this time

Sorry for not noticing it was just a trailing-newline bug, I didn't know git-apply wasn't as lenient as patch was.
Attachment #341020 - Flags: superreview+
Attachment #341020 - Flags: review+
Neil, are you planning to check this in? I don't have checkin access.
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/1c768ccee990
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
OS: Mac OS X → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: