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

Issue 779048 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Not on Chrome anymore
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression : Weird symbols are seen in "Amazon FBA calculator" extension overlay.

Reported by avsha...@etouch.net, Oct 27 2017

Issue description

Chrome version : 64.0.3251.0 (Official Build) 1ea7bc61dc1711a388b6031047506fc6e2a58051-refs/heads/master@{#512036} 32/64 bit
OS : Windows (7,8,10), Linux(14.04 LTS), Mac(10.12.6)

Test URL 1 : https://chrome.google.com/webstore/detail/amazon-fba-calculator-by/bkdkbhjcfhfkmkbffkdklaiepfbllbgg/related?hl=en-US&utm_source=chrome-ntp-launcher
Test URL 2 : https://www.amazon.in/dp/B01NAKTR2H?pf_rd_p=a7b32b8d-e36a-4c7a-bd46-8f0c1e2fceaf&pf_rd_r=Q09DKK3BJ7J3TX4H5Z5J

What steps will reproduce the problem?
1. Launch chrome, navigate to test URL 1 and install "Amazon FBA calculator.." extension.
2. Open another NTP, navigate to test URL 2 and launch "Amazon FBA calculator" extension on the same page.
3. Click on 'Continue without login' link and observe extension overlay.

Actual Result : Weird symbols are seen in "Amazon FBA calculator" extension overlay.

Expected Result : All symbols should load properly in "Amazon FBA calculator" extension overlay.

This is a regression issue broken in ‘M-64’ and using the per-revision bisect providing the bisect results,
Good build : 64.0.3241.0 (Revision : 508935)
Bad build : 64.0.3242.0 (Revision : 509211)

You are probably looking for a change made after 509095 (known good), but no later than 509096 (first known bad).

CHANGELOG URL:
The script might not always return single CL as suspect as some perf builds might get missing due to failure.

https://chromium.googlesource.com/chromium/src/+log/e4488e203ff33223f228dd2359383d2085a76c07..30168b99604c48a32828f26b5acb2674beea1a5d

Suspect : https://chromium.googlesource.com/chromium/src/+/30168b99604c48a32828f26b5acb2674beea1a5d

@m.jethani : Could you please look into the issue, pardon me if it has nothing to do with your changes and if possible please assign it to concern owner.

Thank you.
 
Actual_Result.mp4
1.6 MB View Download
Expected_Result.mp4
1.5 MB View Download
Actual_Extension.png
74.0 KB View Download
Expected_Extension.png
58.9 KB View Download
Labels: ReleaseBlock-Beta
Tagging with blocker label, please undo if not the case.

Comment 2 by nainar@chromium.org, Oct 27 2017

Hmm I think reverting the change is the best case since it has 2 regressions filed on it. What do you think m.jethani@ ?

Comment 3 by m.jeth...@eyeo.com, Oct 27 2017

Let me revert the change locally to see if this is in fact a regression due to that change.

It's possibly related to the fact that we forgot about @font-face rules. Do you think I should upload a patch instead, as I did for @keyframes?

Comment 4 by nainar@chromium.org, Oct 27 2017

Yup, if you can do the same with relative ease then why not?

Comment 5 by m.jeth...@eyeo.com, Oct 27 2017

OK, let me confirm that's what it is, then I'll start working on a patch. I'll post an update here.

Comment 6 by m.jeth...@eyeo.com, Oct 28 2017

I have confirmed that this issue is a regression from crrev.com/30168b9 because that change did not account for @font-face rules.

nainar@ can you land https://crrev.com/c/735263 so I can make my changes on top of it?
nainar@,
Could you please respond as per C#6 as we have scheduled beta release on 11/01 and this is marked as Beta blocker. Requesting to plan the fix or revert the CL.

Thanks in advance..!
Hi, I wanted to ask what time (SFO time) will the beta release take place? We are having some issues landing a change and even a revert will take some time.

Comment 10 by ajha@chromium.org, Nov 1 2017

Correction in C#7> This is marked as Beta blocker for M-64 which does't happen before Dec. 

nainar@: Please feel free to land the fix as per your convenience. 

Thank you!
Project Member

Comment 11 by bugdroid1@chromium.org, Nov 1 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3857f5dccf0f16288947c8c3c79b2a9a5bbd72b5

commit 3857f5dccf0f16288947c8c3c79b2a9a5bbd72b5
Author: Manish Jethani <m.jethani@eyeo.com>
Date: Wed Nov 01 16:46:46 2017

Support @font-face rules in user style sheets

@font-face rules in author style sheets are passed back to StyleEngine
via ScopedStyleResolver. With crrev.com/c/641294 we started treating
style sheets injected by extensions as user style sheets instead. Since
user style sheets apply to all scopes, they never go via
ScopedStyleResolver but are rather managed by StyleEngine directly.

crrev.com/c/641294 broke extensions using custom fonts because
StyleEngine fails to account for @font-face rules in user style sheets.

Fonts from both user and author style sheets must be maintained in the
same font cache. Even though style sheets can be added in any order,
@font-face rules in author style sheets must appear after those in user
style sheets. In order to achieve this result efficiently, we use a
"dirty" flag and refresh the font cache only once per cycle.

StyleEngine::ApplyRuleSetChanges may be called twice, once for user
style sheets (all scopes) and once for author style sheets (document
scope). If fonts have changed in user style sheets, we simply set the
dirty flag. If fonts have changed in author style sheets, we set the
dirty flag but also then refresh the font cache by first adding all the
@font-face rules from the active user style sheets and then re-adding
all the new author style sheets. This ensures that the font cache is
refreshed only once while the fonts are added in the correct order.

BUG= 632009 , 779048 

Change-Id: I58c1070af3ecae925e4afb91cbbb7cb00ee187fd
Reviewed-on: https://chromium-review.googlesource.com/743642
Commit-Queue: nainar <nainar@chromium.org>
Reviewed-by: nainar <nainar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513154}
[modify] https://crrev.com/3857f5dccf0f16288947c8c3c79b2a9a5bbd72b5/third_party/WebKit/Source/core/css/StyleEngine.cpp
[modify] https://crrev.com/3857f5dccf0f16288947c8c3c79b2a9a5bbd72b5/third_party/WebKit/Source/core/css/StyleEngine.h
[modify] https://crrev.com/3857f5dccf0f16288947c8c3c79b2a9a5bbd72b5/third_party/WebKit/Source/core/css/StyleEngineTest.cpp

Labels: TE-Verified-64.0.3256.0 TE-Verified-M64
Tested this issue on Windows 7, mac 10.12.6 & Ubuntu 14.04 using chrome latest Canary-64.0.3256.0 as per C#0.

Observed all the symbols loaded properly in "Amazon FBA calculator" extension overlay.As it as working as intended,adding TE Verified labels.

Please find the attached screencast for reference.

Thanks..!



779048.mp4
1.2 MB View Download
nainar@,
This issue working as intended as per C#12,Could you please confirm is there any further work to be done here?.Please confirm.

Thanks..!
Status: Fixed (was: Assigned)

Sign in to add a comment