Bug 226670 - REGRESSION(r275765) When ignoring HSTS, sometimes loads fail
Summary: REGRESSION(r275765) When ignoring HSTS, sometimes loads fail
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar
Depends on:
Blocks: 224340
  Show dependency treegraph
 
Reported: 2021-06-04 17:41 PDT by Alex Christensen
Modified: 2021-06-04 21:10 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.32 KB, patch)
2021-06-04 17:42 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (1.35 KB, patch)
2021-06-04 17:43 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2021-06-04 17:41:47 PDT
REGRESSION(r275765) When ignoring HSTS, sometimes loads fail
Comment 1 Alex Christensen 2021-06-04 17:42:41 PDT
Created attachment 430635 [details]
Patch
Comment 2 Alex Christensen 2021-06-04 17:43:20 PDT
Created attachment 430636 [details]
Patch
Comment 3 Chris Dumez 2021-06-04 17:44:06 PDT
Comment on attachment 430636 [details]
Patch

Why don't we treat warnings as errors in WebKit2? Seems we should have gotten an unused parameter warning here..
Comment 4 Alex Christensen 2021-06-04 17:45:30 PDT
Comment on attachment 430636 [details]
Patch

We don't treat unused parameters as warnings in ObjC because the language requires unused parameters to be named in selector calls.  We ought to be able to do it for non-selector functions like this, though.
Comment 5 Chris Dumez 2021-06-04 17:50:04 PDT
<rdar://78066692>
Comment 6 EWS 2021-06-04 19:16:05 PDT
Committed r278517 (238516@main): <https://commits.webkit.org/238516@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 430636 [details].
Comment 7 Darin Adler 2021-06-04 21:10:53 PDT
Alex is right. When I turned on unused parameter warnings, I didn’t do it for Objective-C because we’d have to add UNUSED_PARAM in so many places. And I really prefer the "leave out the variable name" over the "use the UNUSED_PARAM macro" style. But that wasn’t a great decision for the ages. I’d love to turn it on now even for the Objective-C files.