⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286017 in webkit


Ignore:
Timestamp:
Nov 18, 2021, 11:19:20 AM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r285130. rdar://problem/85166839

[macOS] Opening local html files is failing
https://bugs.webkit.org/show_bug.cgi?id=232572
<rdar://81330442>

Reviewed by Brent Fulgham.

Source/WebKit:

On some macOS versions, opening local html files is failing. In order for the WebContent process
to successfully issue the file extension to the Networking process, the flags for the extension
in the WebContent process must include the user intent flag when the extension is issued with an
audit token.

  • Shared/Cocoa/SandboxExtensionCocoa.mm: (WebKit::SandboxExtensionImpl::sandboxExtensionForType):

Source/WTF:

Declare sandbox flag.

  • wtf/spi/darwin/SandboxSPI.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285130 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.3.6.1-branch/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.3.6.1-branch/Source/WTF/ChangeLog

    r285693 r286017  
     12021-11-18  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r285130. rdar://problem/85166839
     4
     5    [macOS] Opening local html files is failing
     6    https://bugs.webkit.org/show_bug.cgi?id=232572
     7    <rdar://81330442>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    Source/WebKit:
     12   
     13    On some macOS versions, opening local html files is failing. In order for the WebContent process
     14    to successfully issue the file extension to the Networking process, the flags for the extension
     15    in the WebContent process must include the user intent flag when the extension is issued with an
     16    audit token.
     17   
     18    * Shared/Cocoa/SandboxExtensionCocoa.mm:
     19    (WebKit::SandboxExtensionImpl::sandboxExtensionForType):
     20   
     21    Source/WTF:
     22   
     23    Declare sandbox flag.
     24   
     25    * wtf/spi/darwin/SandboxSPI.h:
     26   
     27   
     28    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     29
     30    2021-11-01  Per Arne  <pvollan@apple.com>
     31
     32            [macOS] Opening local html files is failing
     33            https://bugs.webkit.org/show_bug.cgi?id=232572
     34            <rdar://81330442>
     35
     36            Reviewed by Brent Fulgham.
     37
     38            Declare sandbox flag.
     39
     40            * wtf/spi/darwin/SandboxSPI.h:
     41
    1422021-11-11  Alan Coon  <alancoon@apple.com>
    243
  • branches/safari-612.3.6.1-branch/Source/WTF/wtf/spi/darwin/SandboxSPI.h

    r277104 r286017  
    6363extern const uint32_t SANDBOX_EXTENSION_NO_REPORT;
    6464extern const uint32_t SANDBOX_EXTENSION_CANONICAL;
     65extern const uint32_t SANDBOX_EXTENSION_USER_INTENT;
    6566
    6667char *sandbox_extension_issue_file(const char *extension_class, const char *path, uint32_t flags);
  • branches/safari-612.3.6.1-branch/Source/WebKit/ChangeLog

    r285891 r286017  
     12021-11-18  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r285130. rdar://problem/85166839
     4
     5    [macOS] Opening local html files is failing
     6    https://bugs.webkit.org/show_bug.cgi?id=232572
     7    <rdar://81330442>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    Source/WebKit:
     12   
     13    On some macOS versions, opening local html files is failing. In order for the WebContent process
     14    to successfully issue the file extension to the Networking process, the flags for the extension
     15    in the WebContent process must include the user intent flag when the extension is issued with an
     16    audit token.
     17   
     18    * Shared/Cocoa/SandboxExtensionCocoa.mm:
     19    (WebKit::SandboxExtensionImpl::sandboxExtensionForType):
     20   
     21    Source/WTF:
     22   
     23    Declare sandbox flag.
     24   
     25    * wtf/spi/darwin/SandboxSPI.h:
     26   
     27   
     28    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     29
     30    2021-11-01  Per Arne  <pvollan@apple.com>
     31
     32            [macOS] Opening local html files is failing
     33            https://bugs.webkit.org/show_bug.cgi?id=232572
     34            <rdar://81330442>
     35
     36            Reviewed by Brent Fulgham.
     37
     38            On some macOS versions, opening local html files is failing. In order for the WebContent process
     39            to successfully issue the file extension to the Networking process, the flags for the extension
     40            in the WebContent process must include the user intent flag when the extension is issued with an
     41            audit token.
     42
     43            * Shared/Cocoa/SandboxExtensionCocoa.mm:
     44            (WebKit::SandboxExtensionImpl::sandboxExtensionForType):
     45
    1462021-11-16  Kocsen Chung  <kocsen_chung@apple.com>
    247
  • branches/safari-612.3.6.1-branch/Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm

    r281032 r286017  
    116116            if (!auditToken)
    117117                return nullptr;
     118#if PLATFORM(MAC)
     119            extensionFlags |= SANDBOX_EXTENSION_USER_INTENT;
     120#endif
    118121            return sandbox_extension_issue_file_to_process(APP_SANDBOX_READ, path, extensionFlags, *auditToken);
    119122        }
Note: See TracChangeset for help on using the changeset viewer.