Skip to content

Commit

Permalink
Build fix when SERVICE_WORKER is disabled
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264902

Reviewed by Don Olmstead.

When SERVICE_WORKER is dsabled, building webkit fails.
Functions below in GeneratedSerializers.cpp should be disabled when SERVICE_WORKER is off.

isValidEnum<WebCore::BackgroundFetchFailureReason, void>
isValidEnum<WebCore::BackgroundFetchResult, void>

* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:

Canonical link: https://commits.webkit.org/270920@main
  • Loading branch information
tKnmori authored and donny-dont committed Nov 18, 2023
1 parent 5c9eac4 commit ed1571f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Original file line number Diff line number Diff line change
Expand Up @@ -6664,6 +6664,7 @@ enum class WebCore::ExceptionCode : uint8_t {
ExistingExceptionError,
}

#if ENABLE(SERVICE_WORKER)
header: <WebCore/BackgroundFetchFailureReason.h>
enum class WebCore::BackgroundFetchFailureReason : uint8_t {
EmptyString,
Expand All @@ -6673,13 +6674,16 @@ enum class WebCore::BackgroundFetchFailureReason : uint8_t {
QuotaExceeded,
DownloadTotalExceeded
};
#endif

#if ENABLE(SERVICE_WORKER)
header: <WebCore/BackgroundFetchResult.h>
enum class WebCore::BackgroundFetchResult : uint8_t {
EmptyString,
Success,
Failure
};
#endif

enum class WebCore::ResourceErrorBaseType : uint8_t {
Null,
Expand Down

0 comments on commit ed1571f

Please sign in to comment.