Bug 197275 - [iOS] Add internal setting to force -webkit-text-size-adjust to "auto"
Summary: [iOS] Add internal setting to force -webkit-text-size-adjust to "auto"
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on: 197320
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-24 22:35 PDT by Myles C. Maxfield
Modified: 2019-05-02 15:48 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.60 KB, patch)
2019-04-24 22:44 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (5.66 KB, patch)
2019-04-25 15:00 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (5.68 KB, patch)
2019-04-25 15:10 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (5.69 KB, patch)
2019-04-25 15:12 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews122 for ios-simulator-wk2 (2.69 MB, application/zip)
2019-04-25 17:03 PDT, EWS Watchlist
no flags Details
Rebased (5.98 KB, patch)
2019-05-02 13:54 PDT, Myles C. Maxfield
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews122 for ios-simulator-wk2 (17.95 MB, application/zip)
2019-05-02 15:48 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2019-04-24 22:35:46 PDT
[iOS] Add internal setting to force -webkit-text-size-adjust to "auto"
Comment 1 Myles C. Maxfield 2019-04-24 22:44:23 PDT
Created attachment 368215 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2019-04-25 10:53:53 PDT
<rdar://problem/50211019>
Comment 3 Simon Fraser (smfr) 2019-04-25 11:31:42 PDT
Comment on attachment 368215 [details]
Patch

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

> Source/WebCore/page/Settings.yaml:443
> +honorTextSizeAdjust:

This is a confusing name. Does it mean "honor the style property", so "off" means "always do text size adjust"? Why not "textSizeaAdjustForcedOn" or something?
Comment 4 Myles C. Maxfield 2019-04-25 15:00:55 PDT
Created attachment 368272 [details]
Patch
Comment 5 Myles C. Maxfield 2019-04-25 15:10:13 PDT
Created attachment 368275 [details]
Patch
Comment 6 Myles C. Maxfield 2019-04-25 15:12:43 PDT
Created attachment 368276 [details]
Patch
Comment 7 Simon Fraser (smfr) 2019-04-25 15:21:15 PDT
Comment on attachment 368276 [details]
Patch

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

> Source/WebKit/Shared/WebPreferences.yaml:450
> +  humanReadableName: "Text Autosizing"
> +  humanReadableDescription: "Enable text autosizing, which increases text size so as to be more easily read"
> +  category: internal
> +
> +ForceAutoBehaviorForTextSizeAdjust:
> +  type: bool
> +  defaultValue: false
> +  condition: ENABLE(TEXT_AUTOSIZING)
> +  humanReadableName: "Force text-size-adjust to auto"
> +  humanReadableDescription: "Force -webkit-text-size-adjust to behave like auto, which means web authors can't opt-out of text autosizing heuristics"
> +  category: internal

I think you should move these down to the  bottom with the other Internal features.
Comment 8 EWS Watchlist 2019-04-25 17:03:43 PDT
Comment on attachment 368276 [details]
Patch

Attachment 368276 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/11999181

New failing tests:
fast/css/first-letter-anonymous-block-crash.html
Comment 9 EWS Watchlist 2019-04-25 17:03:45 PDT
Created attachment 368289 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.6
Comment 10 Myles C. Maxfield 2019-04-25 22:15:17 PDT
Test failure is unrelated.
Comment 11 Myles C. Maxfield 2019-04-25 23:39:36 PDT
Committed r244683: <https://trac.webkit.org/changeset/244683>
Comment 12 Shawn Roberts 2019-04-26 09:22:59 PDT
The crash on iOS Sim does appear to be related to https://trac.webkit.org/changeset/244683 . I can narrow the test list down if needed, but if you run the test from the worker of the runs it will reproduce.

Crashes locally with r244683, passes with r244682

Will attach full crash log to Radar.

0   com.apple.WebCore             	0x00000003ff10eb90 WebCore::RenderBlockFlow::createLineBoxes(WebCore::RenderObject*, WebCore::LineInfo const&, WebCore::InlineBox*) + 176
1   com.apple.WebCore             	0x00000003ff10ef7c WebCore::RenderBlockFlow::constructLine(WebCore::BidiRunList<WebCore::BidiRun>&, WebCore::LineInfo const&) + 476
2   com.apple.WebCore             	0x00000003ff111e53 WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns(unsigned int, WebCore::BidiRunList<WebCore::BidiRun>&, WebCore::InlineIterator const&, WebCore::LineInfo&, WebCore::VerticalPositionCache&, WebCore::BidiRun*, WTF::Vector<WebCore::WordMeasurement, 64ul, WTF::CrashOnOverflow, 16ul>&) + 67
3   com.apple.WebCore             	0x00000003ff115180 WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange(WebCore::LineLayoutState&, WebCore::BidiResolverWithIsolate<WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun>&, WebCore::InlineIterator const&, WebCore::BidiStatus const&, unsigned int) + 6080
Comment 13 Shawn Roberts 2019-04-26 09:47:11 PDT
Reproduces like this

run-webkit-tests fast/constructors/constructor-as-function-crash.html fast/css/first-letter-and-float-crash.html fast/css/first-letter-anonymous-block-crash.html --ios-simulator --child-process 1

Myles if EWS hits the same test pattern it will bog down other patches, and it's crashing on iOS Simulator 

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fcss%2Ffirst-letter-anonymous-block-crash.html

Please let us know if this is a quick fix.
Comment 14 Shawn Roberts 2019-04-26 11:29:29 PDT
Is causing failures on EWS https://webkit-queues.webkit.org/results/12007549
Comment 15 WebKit Commit Bot 2019-04-26 11:30:03 PDT
Re-opened since this is blocked by bug 197320
Comment 16 Myles C. Maxfield 2019-04-30 18:12:17 PDT
Having real trouble reproducing the crash.
Comment 17 Myles C. Maxfield 2019-05-02 13:54:54 PDT
Created attachment 368817 [details]
Rebased
Comment 18 EWS Watchlist 2019-05-02 15:48:48 PDT
Comment on attachment 368817 [details]
Rebased

Attachment 368817 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/12065529

New failing tests:
fast/css/first-letter-anonymous-block-crash.html
Comment 19 EWS Watchlist 2019-05-02 15:48:51 PDT
Created attachment 368832 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.14.4