Changeset 285130 in webkit


Ignore:
Timestamp:
Nov 1, 2021 2:04:45 PM (9 months ago)
Author:
pvollan@apple.com
Message:

[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:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r285114 r285130  
     12021-11-01  Per Arne  <pvollan@apple.com>
     2
     3        [macOS] Opening local html files is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=232572
     5        <rdar://81330442>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Declare sandbox flag.
     10
     11        * wtf/spi/darwin/SandboxSPI.h:
     12
    1132021-11-01  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WTF/wtf/spi/darwin/SandboxSPI.h

    r277104 r285130  
    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);
  • trunk/Source/WebKit/ChangeLog

    r285127 r285130  
     12021-11-01  Per Arne  <pvollan@apple.com>
     2
     3        [macOS] Opening local html files is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=232572
     5        <rdar://81330442>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        On some macOS versions, opening local html files is failing. In order for the WebContent process
     10        to successfully issue the file extension to the Networking process, the flags for the extension
     11        in the WebContent process must include the user intent flag when the extension is issued with an
     12        audit token.
     13
     14        * Shared/Cocoa/SandboxExtensionCocoa.mm:
     15        (WebKit::SandboxExtensionImpl::sandboxExtensionForType):
     16
    1172021-11-01  Fujii Hironori  <Hironori.Fujii@sony.com>
    218
  • trunk/Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm

    r281277 r285130  
    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.