This is related to Bug 88500, but another case. Select from "fuga 4" to "hoge 1". This will trigger ASSERT_NOT_REACHED().
Created attachment 147526 [details] Repro
Non-content-editable <table> became content-editable here again... We should fix that problem before this. I believe that problem causes this problem.
See also Bug 89077.
> Non-content-editable <table> became content-editable here again... According to the spec, <table> should be contenteditable... So this sentent is wrong, I'm sorry.
(In reply to comment #4) > > Non-content-editable <table> became content-editable here again... > > According to the spec, <table> should be contenteditable... > So this sentent is wrong, I'm sorry. NO... <table> in Shadow DOM should not be contenteditable here. This is not the same as another cases. This is a real BUG. Let's investigate this more.
(In reply to comment #5) > (In reply to comment #4) > > > Non-content-editable <table> became content-editable here again... > > > > According to the spec, <table> should be contenteditable... > > So this sentent is wrong, I'm sorry. > > NO... <table> in Shadow DOM should not be contenteditable here. > This is not the same as another cases. This is a real BUG. > > Let's investigate this more. Oh sorry.... it's wrong... not a real bug... sorry for confusing...
Created attachment 148895 [details] Patch
Again, please cc darin & enrica on these bugs. Also there's no need to add [Editing] since this bug in the editing component.
Comment on attachment 148895 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=148895&action=review > Source/WebCore/editing/htmlediting.cpp:267 > + Why the blank line? I'd rather have blank lines in both functions or not have in either one. Doing different things in firstEditablePositionAfterPositionInRoot and lastEditablePositionBeforePositionInRoot is confusing. > LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow-expected.txt:1 > +PASS It's odd to see PASS before the description. > LayoutTests/editing/shadow/adjusting-editing-boundary-with-table-in-shadow.html:15 > +<p>Placing this sentence before table won't trigger an asertion.</p> > +<p>Selecting around a table which is distributed from shadow subtree to nested shadow subtree will trigger an assertion. To try manually, select from "shadow 2" to around "after" and confirm a crash does not occur.</p> Please place this description before the container.
Created attachment 148903 [details] Patch for landing
Comment on attachment 148903 [details] Patch for landing Clearing flags on attachment: 148903 Committed r120991: <http://trac.webkit.org/changeset/120991>
All reviewed patches have been landed. Closing bug.