"warning: 'beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:' is deprecated" in nsCocoaWindow.mm
Categories
(Core :: Widget: Cocoa, task, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
10:04.52 /Users/mstange/code/mozilla/widget/cocoa/nsCocoaWindow.mm:817:18: warning: 'beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:' is deprecated: first deprecated in macOS 10.10 - Use -[NSWindow beginSheet:completionHandler:] instead [-Wdeprecated-declarations]
10:04.52 [NSApp beginSheet:mWindow
10:04.52 ^
10:04.52 /Users/mstange/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:584:1: note: 'beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:' has been explicitly marked deprecated here
10:04.52 - (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(nullable id)modalDelegate didEndSelector:(nullable SEL)didEndSelector contextInfo:(null_unspecified void *)contextInfo NS_DEPRECATED_MAC(10_0, 10_10, "Use -[NSWindow beginSheet:completionHandler:] instead");
10:04.53 ^
Assignee | ||
Comment 1•5 years ago
|
||
Depends on D104302
Comment 3•5 years ago
|
||
bugherder |
Comment 4•4 years ago
|
||
Reopening. Per Magnus Melin, the Thunderbird team would like to ask for a backout of this patch from mozilla-central and mozilla-esr91.
Please see bug 1737489 and bug 1715740 for the justifications.
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 6•4 years ago
|
||
Backing out is a question for Markus as the bugs in question aren't a Firefox issue (and frankly, I'm worried about unintended consequences for Firefox as we enter RC week).
Comment 7•4 years ago
|
||
Also, we generally don't reopen bugs for backouts until the backout has actually landed.
Comment 8•4 years ago
|
||
(In reply to Kai Engert (:KaiE:) from comment #4)
Reopening. Per Magnus Melin, the Thunderbird team would like to ask for a backout of this patch from mozilla-central and mozilla-esr91.
Please see bug 1737489 and bug 1715740 for the justifications.
In bug 1737489 Comment 1 I have summarized some of the impact.
Assignee | ||
Comment 9•4 years ago
•
|
||
I'm not comfortable uplifting this backout to RC at this stage. Firefox has been running with this patch for 8 months and may have introduced implicit dependencies on the new behavior. When I wrote this fix I did not anticipate any change in behavior, but clearly there is a change in behavior, so the risk of depending on the new behavior exists.
If we do land this backout (or if we find a different fix) I would recommend two weeks of Nightly testing before we uplift it, and a bunch of manual testing with various dialog windows. And we'll also need an automated test in Firefox mochitest-chrome that exercises the code path that Thunderbird depends on.
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
try run for backout started:
https://treeherder.mozilla.org/jobs?repo=try&revision=6f2a56506ada6ca98c66aa6b54f685a47b6231d4
(patch should only affect macos, so I canceled other platforms)
Comment 11•4 years ago
|
||
Markus, do you have any hints of
- what the root problem might be, what to look at
- if there are existing similar tests somewhere that could be built upon
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Given comment 9, the earliest we could backout from mozilla-esr91 is in 3 weeks.
I think Thunderbird needs a quicker fix.
Magnus had the idea to change the code to use #ifdef MOZ_THUNDERBIRD (old code) #else (new code) #endif,
this way we could backout for Thunderbird immediately, and avoid immediate changes for Firefox.
I'll submit such a patch to bug 1737489, and maybe we should continue the discussions in bug 1737489.
Description
•