Bug 181908 - Safari Tech Preview can't use GitHub login at forums.swift.org
Summary: Safari Tech Preview can't use GitHub login at forums.swift.org
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: youenn fablet
URL: https://forums.swift.org
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-20 14:27 PST by Jon
Modified: 2018-01-22 12:22 PST (History)
9 users (show)

See Also:


Attachments
Patch (11.99 KB, patch)
2018-01-22 07:39 PST, youenn fablet
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-sierra-wk2 (3.03 MB, application/zip)
2018-01-22 08:49 PST, EWS Watchlist
no flags Details
Archive of layout-test-results from ews100 for mac-sierra (2.99 MB, application/zip)
2018-01-22 08:52 PST, EWS Watchlist
no flags Details
Patch (12.02 KB, patch)
2018-01-22 08:58 PST, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (12.04 KB, patch)
2018-01-22 10:36 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon 2018-01-20 14:27:54 PST
Release 47 (Safari 11.1, WebKit 13605.1.19.1)

When trying to login using GitHub on the new Discourse forums at forums.swift.org, Safari Technology Preview shows the attached error. Relevant text is likely "Response served by service worker is opaque" (WebKitInternal:0). Login works normally in release Safari (Version 11.0.2 (13604.4.7.1.6)).
Comment 1 Radar WebKit Bug Importer 2018-01-21 14:02:01 PST
<rdar://problem/36715111>
Comment 2 youenn fablet 2018-01-22 07:39:59 PST
Created attachment 331925 [details]
Patch
Comment 3 EWS Watchlist 2018-01-22 08:49:20 PST
Comment on attachment 331925 [details]
Patch

Attachment 331925 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/6169869

New failing tests:
http/tests/security/contentSecurityPolicy/function-constructor-allowed.html
http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html
http/tests/security/contentSecurityPolicy/object-redirect-blocked2.html
http/tests/security/contentSecurityPolicy/embed-redirect-blocked.html
http/tests/security/contentSecurityPolicy/1.1/form-action-src-redirect-blocked.html
http/tests/security/contentSecurityPolicy/object-redirect-blocked.html
http/tests/security/contentSecurityPolicy/iframe-redirect-blocked-by-frame-src.html
http/tests/security/contentSecurityPolicy/1.1/child-src/frame-src-takes-precedence-over-child-src.html
Comment 4 EWS Watchlist 2018-01-22 08:49:21 PST
Created attachment 331929 [details]
Archive of layout-test-results from ews107 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 5 EWS Watchlist 2018-01-22 08:51:58 PST
Comment on attachment 331925 [details]
Patch

Attachment 331925 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/6169880

New failing tests:
http/tests/security/contentSecurityPolicy/embed-redirect-blocked3.html
http/tests/security/contentSecurityPolicy/1.1/child-src/frame-redirect-blocked.html
http/tests/security/mixedContent/redirect-https-to-http-iframe-in-main-frame.html
http/tests/security/contentSecurityPolicy/object-redirect-blocked2.html
http/tests/security/contentSecurityPolicy/object-redirect-blocked3.html
http/tests/security/contentSecurityPolicy/iframe-redirect-blocked-by-child-src.html
http/tests/security/blocked-on-redirect.html
http/tests/security/contentSecurityPolicy/frame-src-redirect-blocked.html
http/tests/security/contentSecurityPolicy/embed-redirect-blocked.html
http/tests/security/contentSecurityPolicy/1.1/form-action-src-redirect-blocked.html
http/tests/security/contentSecurityPolicy/object-redirect-blocked.html
http/tests/security/contentSecurityPolicy/iframe-redirect-blocked-by-frame-src.html
http/tests/security/contentSecurityPolicy/embed-redirect-blocked2.html
Comment 6 EWS Watchlist 2018-01-22 08:52:00 PST
Created attachment 331930 [details]
Archive of layout-test-results from ews100 for mac-sierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-sierra  Platform: Mac OS X 10.12.6
Comment 7 youenn fablet 2018-01-22 08:58:19 PST
Created attachment 331932 [details]
Patch
Comment 8 Chris Dumez 2018-01-22 10:13:38 PST
Comment on attachment 331932 [details]
Patch

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

r=me with comment.

> Source/WebCore/loader/DocumentLoader.cpp:488
> +    auto tryLoadingThroughServiceWorker = !frameLoader()->isReloadingFromOrigin() && m_frame->page() && RuntimeEnabledFeatures::sharedFeatures().serviceWorkerEnabled() && SchemeRegistry::canServiceWorkersHandleURLScheme(url.protocol().toStringWithoutCopying());

Variable name would be better with a *should* prefix.
Comment 9 Chris Dumez 2018-01-22 10:18:29 PST
(In reply to Chris Dumez from comment #8)
> Comment on attachment 331932 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=331932&action=review
> 
> r=me with comment.
> 
> > Source/WebCore/loader/DocumentLoader.cpp:488
> > +    auto tryLoadingThroughServiceWorker = !frameLoader()->isReloadingFromOrigin() && m_frame->page() && RuntimeEnabledFeatures::sharedFeatures().serviceWorkerEnabled() && SchemeRegistry::canServiceWorkersHandleURLScheme(url.protocol().toStringWithoutCopying());
> 
> Variable name would be better with a *should* prefix.

Youenn, will you be able to make this change today? Otherwise, I'll do it and land.
Comment 10 Chris Dumez 2018-01-22 10:36:39 PST
Created attachment 331942 [details]
Patch
Comment 11 youenn fablet 2018-01-22 10:44:10 PST
Thanks!
Comment 12 Chris Dumez 2018-01-22 12:22:48 PST
Comment on attachment 331942 [details]
Patch

Clearing flags on attachment: 331942

Committed r227348: <https://trac.webkit.org/changeset/227348>
Comment 13 Chris Dumez 2018-01-22 12:22:49 PST
All reviewed patches have been landed.  Closing bug.