Skip to content

[generate-webkit-css-docs] Change shebang to Python 3 - #33

Closed
JonWBedard wants to merge 1 commit into
WebKit:mainfrom
JonWBedard:eng/85019719
Closed

JonWBedard wants to merge 1 commit into
WebKit:mainfrom
JonWBedard:eng/85019719

Conversation

@JonWBedard

@JonWBedard JonWBedard commented Nov 4, 2021 •

Copy link
Copy Markdown
Member

244d413

[generate-webkit-css-docs] Change shebang to Python 3
https://bugs.webkit.org/show_bug.cgi?id=232714
<rdar://problem/85019719 >

Reviewed by NOBODY (OOPS!).

* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/__init__.py: Bump version.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/library/css/generate-webkit-css-docs: Use Python 3 shebang.
* Tools/Scripts/libraries/resultsdbpy/setup.py: Bump version.

@ryanhaddad ryanhaddad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with comment.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here

https://bugs.webkit.org/show_bug.cgi?id=232714
<rdar://problem/85019719>

Reviewed by NOBODY (OOPS!).

* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/__init__.py: Bump version.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/library/css/generate-webkit-css-docs: Use Python 3 shebang.
* Tools/Scripts/libraries/resultsdbpy/setup.py: Bump version.
@JonWBedard

Copy link
Copy Markdown
Member Author

@JonWBedard JonWBedard closed this Nov 4, 2021
@JonWBedard
JonWBedard deleted the eng/85019719 branch November 4, 2021 18:17
webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Jul 24, 2023
https://bugs.webkit.org/show_bug.cgi?id=255872
rdar://108738795

Reviewed by Darin Adler.

It turns out that JSON, HTTP, and XML all use the same whitespace
definition, so let's make them share it. Also correct an existing
comment for that function as \v is not part of isASCIIWhitespace(), but
\f is.

Furthermore, remove the "optimization" from these whitespace functions
per a comment from Chris Dumez at
WebKit#13080 (comment):

> Just verified out of curiosity and llvm does generate the same code
> with -O2 (tried both arm64 and x86_64):
>
> isXMLSpace1(char):                       // @isXMLSpace1(char)
>         mov     x8, WebKit#9728                       // =0x2600
>         and     w9, w0, #0xff
>         movk    x8, WebKit#1, lsl WebKit#32
>         cmp     w9, WebKit#33
>         cset    w9, lo
>         lsr     x8, x8, x0
>         and     w0, w9, w8
>         ret
> isXMLSpace2(char):                       // @isXMLSpace2(char)
>         mov     x8, WebKit#9728                       // =0x2600
>         and     w9, w0, #0xff
>         movk    x8, WebKit#1, lsl WebKit#32
>         cmp     w9, WebKit#33
>         cset    w9, lo
>         lsr     x8, x8, x0
>         and     w0, w9, w8
>         ret
>
> Ahmad-S792 Let's simplify the code then.

* Source/WTF/wtf/ASCIICType.h:
(WTF::isASCIIWhitespace):
(WTF::isJSONOrHTTPOrXMLWhitespace):
(WTF::isJSONOrHTTPWhitespace): Deleted.
* Source/WTF/wtf/JSONValues.cpp:
(WTF::JSONImpl::Value::parseJSON):
* Source/WTF/wtf/text/StringToIntegerConversion.h:
* Source/WebCore/Modules/cache/DOMCache.cpp:
(WebCore::hasResponseVaryStarHeaderValue):
* Source/WebCore/Modules/cache/DOMCacheEngine.cpp:
(WebCore::DOMCacheEngine::queryCacheMatch):
* Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp:
(WebCore::parseParameters):
(WebCore::parseMIMEType):
(WebCore::FetchBodyConsumer::packageFormData):
* Source/WebCore/Modules/fetch/FetchHeaders.cpp:
(WebCore::canWriteHeader):
(WebCore::appendToHeaderMap):
(WebCore::FetchHeaders::set):
(WebCore::FetchHeaders::filterAndFill):
* Source/WebCore/mathml/MathMLPresentationElement.cpp:
(WebCore::MathMLPresentationElement::parseMathMLLength):
* Source/WebCore/mathml/MathMLTokenElement.cpp:
(WebCore::MathMLTokenElement::convertToSingleCodePoint):
* Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp:
(WebCore::ContentSecurityPolicyDirectiveList::parse):
* Source/WebCore/platform/ReferrerPolicy.cpp:
(WebCore::parseReferrerPolicy):
* Source/WebCore/platform/network/DataURLDecoder.cpp:
(WebCore::DataURLDecoder::DecodeTask::process):
* Source/WebCore/platform/network/HTTPParsers.cpp:
(WebCore::parseContentTypeOptionsHeader):
(WebCore::parseClearSiteDataHeader):
(WebCore::parseRange):
(WebCore::parseCrossOriginResourcePolicyHeader):
* Source/WebCore/platform/network/HTTPParsers.h:
(WebCore::addToAccessControlAllowList):
* Source/WebCore/platform/network/ParsedContentType.cpp:
(WebCore::skipSpaces):
(WebCore::parseToken):
(WebCore::ParsedContentType::create):
(WebCore::ParsedContentType::setContentType):
* Source/WebCore/platform/network/ResourceResponseBase.cpp:
(WebCore::ResourceResponseBase::containsInvalidHTTPHeaders const):
* Source/WebCore/platform/network/TimingAllowOrigin.cpp:
(WebCore::passesTimingAllowOriginCheck):
* Source/WebCore/xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::setRequestHeader):
* Source/WebCore/xml/XPathFunctions.cpp:
(WebCore::XPath::FunNormalizeSpace::evaluate const):
* Source/WebCore/xml/XPathParser.cpp:
(WebCore::XPath::Parser::skipWS):
* Source/WebCore/xml/XPathUtil.cpp:
(WebCore::XPath::isXMLSpace): Deleted.
* Source/WebCore/xml/XPathUtil.h:
* Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.cpp:
(WebKit::CacheStorage::updateVaryInformation):
* Source/WebKit/NetworkProcess/soup/WebSocketTaskSoup.cpp:
(WebKit::WebSocketTask::WebSocketTask):
* Source/WebKit/NetworkProcess/storage/CacheStorageRecord.h:
(WebKit::CacheStorageRecordInformation::updateVaryHeaders):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::shouldSkipDecidePolicyForResponse const):

Canonical link: https://commits.webkit.org/266253@main
Wowfunhappy referenced this pull request in Wowfunhappy/WebKit Jun 15, 2026
GraphicsContextCG drawFocusRing uses NSInitializeCGFocusRingStyleForTime (polyfill stub,
struct-layout mismatch) producing a degenerate CGStyle that floods the element shape solid
black. On <10.10 draw a plain stroked ring in the focus color instead.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Wowfunhappy referenced this pull request in Wowfunhappy/WebKit Jun 18, 2026
…ls> crash)

RenderThemeMac::systemColor invoked NSColor class selectors (systemBlueColor/systemRedColor/secondaryLabelColor/controlAccentColor/...) via wtfObjCMsgSend WITHOUT checking they exist. These are 10.10+/10.14+ APIs absent on 10.9, so any -apple-system-* color threw an unrecognized-selector crash in WebContent -- notably <video controls>, whose controls overlay uses -apple-system-blue, crashing the majority of video pages.

Guard both call sites (the systemAppearanceColor lambda + the cache path) with [NSColor respondsToSelector:selector] -- the file's own established pattern (cf lines 730/736). When a selector is absent on 10.9, map the named Apple system colors + labels to their stable system-palette constants (mirroring the existing hardcoded AppleSystemControlAccent) so -apple-system-blue/red/green/label/etc. render correctly instead of falling through to an invalid/transparent color.

Verified: <video controls> renders without crashing; getComputedStyle resolves -apple-system-blue->rgb(0,122,255), -apple-system-label->rgba(0,0,0,0.847), -apple-system-red->rgb(255,59,48). Independent hack-check approved the guards + recommended the palette hardcode. Same 10.9-API-absent pattern as #32/#33.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
webkit-commit-queue pushed a commit to colelao/WebKit that referenced this pull request Jul 24, 2026
… compile

https://bugs.webkit.org/show_bug.cgi?id=320132
rdar://183070350

Reviewed by Marcus Plutowski.

LayoutTests/imported/w3c/web-platform-tests/wasm/core/memory64/table64.wast.js
test WebKit#10 and WebKit#33 are failing because modules with tables with initial sizes
larger than Wasm::maxTableEntries fail to compile.

To fix this, I removed the compile-time check that is causing the failure.
Once the check is gone, the uint64_t initial is silently narrowed when
constructing TableInformation, so a value could overflow a uint32_t and wrap to a
small, valid-looking length.

Instead of rejecting a large initial at parse time, clamp the value to
maxTableEntries when narrowing it to the stored uint32_t. Out-of-range
declarations therefore stay out of range and are still rejected by
Table::tryCreate() at instantiation.

* JSTests/wasm/stress/table64-initial-truncation.js: Added.
(leb128):
(moduleBytesWithTableInitial):
* LayoutTests/imported/w3c/web-platform-tests/wasm/core/memory64/table64.wast.js-expected.txt:
* Source/JavaScriptCore/wasm/WasmSectionParser.cpp:
(JSC::Wasm::SectionParser::parseTableHelper):

Canonical link: https://commits.webkit.org/317888@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants