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

Issue 671223 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Android MediaRouter only (left Chro...
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Add Use Counter for when processingOrientationChange is used to go fullscreen

Project Member Reported by mlamouri@chromium.org, Dec 5 2016

Issue description

We currently don't know how often an orientation change event is used to go fullscreen. It would be interesting to have a UseCounter for this to be able to see how successful it is.

Because it's a metric and it should be simple, it might be good to send this to M56.
 
Should we record the result for fullscreen requests and the corresponding reason (EnumerationHistogram) instead of UseCounter?

I think it would be better to have a number to compare with. I have the following in mind:
A) Fullscreen request allowed by user gesture.
B) Fullscreen request allowed by orientation change.
C) Fullscreen request blocked.

Another way is to have two UseCounters for A) and B) respectively.

WDYT?
Cc: foolip@chromium.org
In our specific case, I think B is fine. We want to know whether the feature we added is used. The benefit from using a UseCounter is that we know the information "per document" instead of every time it happens so I would prefer to have a UseCounter for A and B instead of an histogram.

+foolip@ to see if he is interested in a UseCounter for A.
Measuring just B would be fine with me.

(There are plenty of things that go wrong before actually being in fullscreen, so if we suspected that FullscreenSecureOrigin was overcounting and not representative of the real risk to something that happens after entering fullscreen, then maybe a use counter in Fullscreen::pushFullscreenElementStack would be useful.)
Project Member

Comment 4 by bugdroid1@chromium.org, Dec 7 2016

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

commit 12268f9ed6ab22159f1b22ba9af1a6a5ec3faec0
Author: zqzhang <zqzhang@chromium.org>
Date: Wed Dec 07 13:51:19 2016

[Blink>Fullscreen] Add UseCounter for fullscreen on orientation change

This CL adds UseCounter to record the number of requests for
fullscreen on device orientation change.

BUG= 671223 

Review-Url: https://codereview.chromium.org/2557443002
Cr-Commit-Position: refs/heads/master@{#436935}

[modify] https://crrev.com/12268f9ed6ab22159f1b22ba9af1a6a5ec3faec0/third_party/WebKit/Source/core/dom/Fullscreen.cpp
[modify] https://crrev.com/12268f9ed6ab22159f1b22ba9af1a6a5ec3faec0/third_party/WebKit/Source/core/frame/UseCounter.h
[modify] https://crrev.com/12268f9ed6ab22159f1b22ba9af1a6a5ec3faec0/tools/metrics/histograms/histograms.xml

Labels: Merge-Request-56

Comment 6 by dimu@chromium.org, Dec 8 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)
Project Member

Comment 7 by bugdroid1@chromium.org, Dec 8 2016

Labels: -merge-approved-56 merge-merged-2924
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/eb670ebd58eaa60a612192ce6f0f80aec0038eb5

commit eb670ebd58eaa60a612192ce6f0f80aec0038eb5
Author: Zhiqiang Zhang <zqzhang@google.com>
Date: Thu Dec 08 15:50:57 2016

[Blink>Fullscreen] Add UseCounter for fullscreen on orientation change

This CL adds UseCounter to record the number of requests for
fullscreen on device orientation change.

BUG= 671223 

Review-Url: https://codereview.chromium.org/2557443002
Cr-Commit-Position: refs/heads/master@{#436935}
(cherry picked from commit 12268f9ed6ab22159f1b22ba9af1a6a5ec3faec0)

Review URL: https://codereview.chromium.org/2564573002 .

Cr-Commit-Position: refs/branch-heads/2924@{#404}
Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059}

[modify] https://crrev.com/eb670ebd58eaa60a612192ce6f0f80aec0038eb5/third_party/WebKit/Source/core/dom/Fullscreen.cpp
[modify] https://crrev.com/eb670ebd58eaa60a612192ce6f0f80aec0038eb5/third_party/WebKit/Source/core/frame/UseCounter.h
[modify] https://crrev.com/eb670ebd58eaa60a612192ce6f0f80aec0038eb5/tools/metrics/histograms/histograms.xml

Status: Fixed (was: Assigned)

Sign in to add a comment