Bug 236516

Summary: Regression(r285501) Microsoft teams meeting URLs fail to open the app
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, darin, ews-watchlist, ggaren, hi, kkinnunen, mkwst, sihui_liu, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 231727    
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2022-02-11 10:21:51 PST
Microsoft teams meeting URLs fail to open the app since r287684.
Comment 1 Chris Dumez 2022-02-11 10:22:01 PST
<rdar://88678598>
Comment 2 Chris Dumez 2022-02-11 10:24:10 PST
Created attachment 451721 [details]
Patch
Comment 3 Geoffrey Garen 2022-02-11 10:34:52 PST
Comment on attachment 451721 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=451721&action=review

> Source/WebCore/page/Quirks.cpp:1419
> +bool Quirks::shouldAllowNavigationToCustomProtocolWithoutUserGesture(StringView protocol, const SecurityOriginData& requesterOrigin)

Can we disable the quirk when quirks are disabled in the Develop menu?
Comment 4 Chris Dumez 2022-02-11 10:40:13 PST
(In reply to Geoffrey Garen from comment #3)
> Comment on attachment 451721 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=451721&action=review
> 
> > Source/WebCore/page/Quirks.cpp:1419
> > +bool Quirks::shouldAllowNavigationToCustomProtocolWithoutUserGesture(StringView protocol, const SecurityOriginData& requesterOrigin)
> 
> Can we disable the quirk when quirks are disabled in the Develop menu?

It is not as easy as usually since we're in the UIProcess but I'll see if I can get the setting value from there.
Comment 5 Chris Dumez 2022-02-11 10:43:03 PST
Created attachment 451724 [details]
Patch
Comment 6 Chris Dumez 2022-02-11 11:10:38 PST
(In reply to Geoffrey Garen from comment #3)
> Comment on attachment 451721 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=451721&action=review
> 
> > Source/WebCore/page/Quirks.cpp:1419
> > +bool Quirks::shouldAllowNavigationToCustomProtocolWithoutUserGesture(StringView protocol, const SecurityOriginData& requesterOrigin)
> 
> Can we disable the quirk when quirks are disabled in the Develop menu?

Done before landing.
Comment 7 EWS 2022-02-11 12:20:57 PST
Committed r289658 (247150@main): <https://commits.webkit.org/247150@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 451724 [details].
Comment 8 Sihui Liu 2022-02-11 14:54:00 PST
Is the regression point in the title correct?
Comment 9 Chris Dumez 2022-02-11 14:54:47 PST
(In reply to Sihui Liu from comment #8)
> Is the regression point in the title correct?

Hmm, no. I'll fix it, thanks.