New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 732864 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug

Blocked on:
issue 735089

Blocking:
issue 697259



Sign in to add a comment

All of the text after "Try the following tips:" in the new sad tab is missing

Project Member Reported by yyushkina@chromium.org, Jun 13 2017

Issue description

Chrome Version: 61.0.3129.0 (Official Build) canary (64-bit)
OS: MacOS Sierra 10.12.5 (16F73)

What steps will reproduce the problem?
(1) Go to chrome://crash. 
(2) Reload.
(3) Go to chrome://crash again.

What is the expected result? There should be a bullet list of tips after "Try the following tips:"

What happens instead? There is no additional text (see image)

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Screen Shot 2017-06-06 at 11.12.43 AM.png
56.6 KB View Download

Comment 1 Deleted

Comment 2 by wfh@chromium.org, Jun 14 2017

Labels: ReleaseBlock-Stable
Status: Started (was: Assigned)

Comment 3 by wfh@chromium.org, Jun 14 2017

Cc: peterlaurens@chromium.org sdy@chromium.org wfh@chromium.org
Owner: ----
Status: Available (was: Started)
macOS sab tab is implemented in Objective c++ in chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm which has not had the required changes to support the bulleted lists.

I don't know objective C++ so I'm probably not the best person to implement this code. We should either find someone to do this, and/or change the code to at least not display the "try the following tips" until the bullet code can be added.

Perhaps peterlaurens or sdy have ideas here? If nobody else can take it I can just stumble around in objc++ and try and guess the syntax to try and get something done - it seems to have a lot of square brackets, and I don't think they are arrays.

Comment 4 by shrike@chromium.org, Jun 15 2017

Perhaps sdy@ (once he's mostly done with the md downloads bar).

Comment 5 by sdy@chromium.org, Jun 15 2017

Cc: -sdy@chromium.org
Owner: sdy@chromium.org
Sure, since I know this code.

Comment 6 by sdy@chromium.org, Jun 15 2017

Status: Assigned (was: Available)

Comment 7 by wfh@chromium.org, Jun 15 2017

@sdy thanks! the code to generate the bullets in views is here -> https://cs.chromium.org/chromium/src/chrome/browser/ui/views/sad_tab_view.cc?q=sad_tab_view.cc you just call GetSubMessage in a loop until you get 0 back.

I was thinking if the sad tab used macviews then would this issue go away?
In case it helps, the iOS code is:

https://cs.chromium.org/chromium/src/ios/chrome/browser/ui/sad_tab/sad_tab_view.mm?q=sad_tab_view.mm&dr

... there are some interesting methods in there for concatenating lists of bullets, and for using paragraph styles to properly align the text in a textview. Should apply maybe with some tweaking to macOS.
Blocking: 697259

Comment 10 by sdy@chromium.org, Jun 16 2017

Status: Started (was: Assigned)
How does this look to everyone?

wfh@: You're right that MacViews would fix this. AFAIK, it can only be used for whole windows. So, bubbles, dialogs, etc. are OK, but not UI in the main window (as long as the main window is Cocoa).
Screen Shot 2017-06-16 at 7.46.47 PM.png
177 KB View Download
That looks great. And just confirming that that's the view with other tabs open. With no tabs open the first bullet should only say: "close other apps"

Comment 12 by sdy@chromium.org, Jun 17 2017

Yep! There was another window open when I took the screenshot.

Comment 13 by sdy@chromium.org, Jun 17 2017

CL is up: https://crrev.com/c/538220

Comment 14 by wfh@chromium.org, Jun 19 2017

Cc: msrchandra@chromium.org ranjitkan@chromium.org nyerramilli@chromium.org
 Issue 726249  has been merged into this issue.
This looks great in Canary - just tested it today. Can we request a merge into 60?

Comment 16 by sdy@chromium.org, Jun 20 2017

Blockedon: 735089

Comment 17 by sdy@chromium.org, Jun 20 2017

It looks like I broke it slightly — fixing it now! Then, sure.

Comment 18 by sdy@chromium.org, Jun 20 2017

Labels: Merge-Request-60
Status: Fixed (was: Started)
Requesting a merge for r480509 and r480890.
Project Member

Comment 19 by sheriffbot@chromium.org, Jun 20 2017

Labels: -Merge-Request-60 Hotlist-Merge-Review Merge-Review-60
This bug requires manual review: M60 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: manoranj...@chromium.org
+Mano to coordinate TE verification
Cc: rbasuvula@chromium.org
Labels: Needs-Feedback
Tested the issue on Mac OS 10.12.5 using chrome latest Canary M61-61.0.3138.0 by following steps mentioned in the original comment. Observed that issue seems to be fixed but different behaviour observed in chrome://crash page.Please find the screen casts for reference.

Note:If user types fast in ominibox bad page("Can't open this page") is displayed and user types slowly in ominibox bad page("Aw, Snap!") is displayed.

@sdy : Could you please let me know if i have missed anything, which would help us to verify the issue further.

Thanks in Advance.

732864(Working fine).mp4
1.1 MB View Download
732864(Observations).mp4
1.0 MB View Download

Comment 22 by sdy@chromium.org, Jun 22 2017

rbasuvula@: The "Can't open this page" version with the bullets is only shown if there are two crashes within 10 seconds. Your screencasts look right to me.
Labels: TE-Verified-M61 TE-Verified-61.0.3138.0
Thanks for immediate feedback.As per comment #21 & 22 Observed that Try the following tips are displaying as expected. Hence adding TE-Verified label.

Thank You!
Labels: -Merge-Review-60 Merge-Approved-60
Verified fix by TE. Approving merge to M60. 
Project Member

Comment 25 by bugdroid1@chromium.org, Jun 23 2017

Labels: -merge-approved-60 merge-merged-3112
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0d6c6c7d92389956c5894ea7b30012cb527cbd66

commit 0d6c6c7d92389956c5894ea7b30012cb527cbd66
Author: Sidney San Martín <sdy@chromium.org>
Date: Fri Jun 23 20:46:17 2017

Show suggestions on the Mac Sad Tab.

Already implemented on other platforms (crbug.com/697259).

TBR=sdy@chromium.org

(cherry picked from commit 34309956ae5a711ae2e1006fe4f5a6dea34bcfc4)

Bug:  732864 
Change-Id: I6ca9f742b3b41f49d21e1537dd5f566abf29662a
Reviewed-on: https://chromium-review.googlesource.com/538220
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Sidney San Martin <sdy@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#480509}
Reviewed-on: https://chromium-review.googlesource.com/546138
Reviewed-by: Sidney San Martin <sdy@chromium.org>
Cr-Commit-Position: refs/branch-heads/3112@{#450}
Cr-Branched-From: b6460e24cf59f429d69de255538d0fc7a425ccf9-refs/heads/master@{#474897}
[modify] https://crrev.com/0d6c6c7d92389956c5894ea7b30012cb527cbd66/chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm

Labels: TE-Verified-M60 TE-Verified-60.0.3112.50
Verified the fix on Mac 10.12.5 using Chrome beta version #60.0.3112.50 as per the comment #0.
Attaching screen cast for reference.
Observed a bullet list of tips after "Try the following tips:" as expected.
Hence, the fix is working as expected. 
Adding the verified labels.

Thanks...!!

732864.mp4
562 KB View Download

Sign in to add a comment