Bug 189522
| Summary: | ASSERTION FAILED: size.width <= self.bounds.size.width && size.height <= self.bounds.size.height in -[WKWebView(WKPrivate) _setMaximumUnobscuredSizeOverride:] | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | koivisto, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 11 | ||
| URL: | data:text/html,<div%20style="border:1px%20solid%20black;%20width:%20300px;height:%20300px"%20contenteditable="true"></div> | ||
Daniel Bates
Seen using a debug build of WebKit r235897 for iOS Simulator.
Steps to reproduce:
1. Open an iPad simulator instance.
2. Rotate the iPad to landscape such that the home button is on the left. (Not sure this matters).
3. Visit <data:text/html,<div%20style="border:1px%20solid%20black;%20width:%20300px;height:%20300px"%20contenteditable="true"></div>>
4. Focus the editable <div>.
5. Click the + button to open a new tab.
Then MobileSafari will crash due because ASSERT(size.width <= self.bounds.size.width && size.height <= self.bounds.size.height) fails in -[WKWebView(WKPrivate) _setMaximumUnobscuredSizeOverride:].
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/44356255>
Daniel Bates
Triggered by notification UIKeyboardWillHideNotification:
#0 0x0000000109c79010 in ::WTFCrash() at /Volumes/.../Source/WTF/wtf/Assertions.cpp:267
#1 0x000000010d5de49b in WTFCrashWithInfo(int, char const*, char const*, int) at /Volumes/Scratch/WebKitBuild/Debug-iphonesimulator/usr/local/include/wtf/Assertions.h:551
#2 0x000000010dafb5d3 in ::-[WKWebView(WKPrivate) _setMaximumUnobscuredSizeOverride:](CGSize) at /Volumes/.../Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:5270
#3 0x000000010dafe210 in ::-[WKWebView(WKPrivate) _overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:](CGSize, CGSize) at /Volumes/.../Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:5539
...
At frame #2 I see:
(lldb) fr v size
(CGSize) size = (width = 1024, height = 728.5)
(lldb) p self.bounds
(CGRect) $0 = (origin = (x = 0, y = 0), size = (width = 0, height = 0))