Bug 186287

Summary: Rename "Cross-Origin-Options" HTTP header to "Cross-Origin-Window-Policy"
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dbates, esprehn+autocc, ews-watchlist, ggaren, japhet, joepeck, kangil.han, kondapallykalyan, rniwa, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Chris Dumez 2018-06-04 15:22:01 PDT
Rename "Cross-Origin-Options" HTTP header to "Cross-Origin-Window-Policy".
Comment 1 Radar WebKit Bug Importer 2018-06-04 15:22:23 PDT
<rdar://problem/40783352>
Comment 2 Chris Dumez 2018-06-04 15:49:04 PDT
Created attachment 341927 [details]
Patch
Comment 3 Chris Dumez 2018-06-04 16:00:54 PDT
Created attachment 341932 [details]
Patch
Comment 4 youenn fablet 2018-06-04 18:17:37 PDT
Comment on attachment 341932 [details]
Patch

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

> Source/WebCore/ChangeLog:9
> +        CrossOriginWindowPolicy

Not needed

> Source/WebCore/page/AbstractDOMWindow.cpp:41
>  AbstractDOMWindow::AbstractDOMWindow(GlobalWindowIdentifier&& identifier)

GlobalWindowIdentifier&& does not seem to bring any advantage over const GlobalWindowIdentifier& or is it special in some way?


> Source/WebCore/page/AbstractDOMWindow.h:57
> +    CrossOriginWindowPolicy crossOriginWindowPolicy() { return m_crossOriginWindowPolicy; }

const

> Source/WebCore/page/AbstractDOMWindow.h:69
> +    CrossOriginWindowPolicy m_crossOriginWindowPolicy;

Can we set the default value here instead of the constructor?

> Source/WebKitLegacy/mac/WebView/WebPreferences.mm:637
> +        [NSNumber numberWithBool:NO], WebKitCrossOriginWindowPolicySupportEnabledPreferenceKey,

Should we set it to true by default for WK1 as well?

> Source/WebKitLegacy/win/WebPreferences.cpp:252
> +    CFDictionaryAddValue(defaults, CFSTR(WebKitCrossOriginWindowPolicySupportEnabledPreferenceKey), kCFBooleanFalse);

Is there anything preventing us from aligning windows with other ports?

> Tools/DumpRenderTree/mac/DumpRenderTree.mm:865
> +    [preferences setCrossOriginWindowPolicySupportEnabled:YES];

If we set it to true in Mac/win, we could remove these lines
Comment 5 Chris Dumez 2018-06-04 20:31:05 PDT
Created attachment 341951 [details]
Patch
Comment 6 WebKit Commit Bot 2018-06-04 21:11:57 PDT
Comment on attachment 341951 [details]
Patch

Clearing flags on attachment: 341951

Committed r232499: <https://trac.webkit.org/changeset/232499>
Comment 7 WebKit Commit Bot 2018-06-04 21:11:58 PDT
All reviewed patches have been landed.  Closing bug.