Closed Bug 1472829 Opened 6 years ago Closed 6 years ago

Add some use counters for document.open

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox62 --- fixed
firefox63 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

We want to have use counters for the following things:

1)  Calls to the 2-arg version of document.open()
2)  Calls to that 2-arg version that pass "replace" as the second arg.

#1 can't be a webidl counter because we only want to count one overload.  The idea of #1 is to have a better context for understanding the numbers from #2 as a fraction of all document.open calls.
The idea is to count non-no-op document.open and to count how many times that's
done with the replace argument set to "replace".
Attachment #8989299 - Flags: review?(bugs)
Priority: -- → P2
Comment on attachment 8989299 [details] [diff] [review]
Add use counters for document.open

>+// document.open information
>+custom DocumentOpen calls document.open in a way that creates a new Window
>+custom DocumentOpenReplace calls document.open in a way that creates a new Window and replaces the old history entry.
Nit, perhaps easier to understand if s/Window/Window object/
just to make it more clear that this isn't about the variant which opens new windows
Attachment #8989299 - Flags: review?(bugs) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bc6abadce397
Add use counters for document.open.  r=smaug
Comment on attachment 8989299 [details] [diff] [review]
Add use counters for document.open

Approval Request Comment
[Feature/Bug causing the regression]: Not a regression.
[User impact if declined]: It will take us several more months to get this data,
   given the extra-long nightly cycle we have right now.
[Is this code covered by automated tests?]: Yes.
[Has the fix been verified in Nightly?]: No, in that I don't have telemetry
   pings with this patch yet.
[Needs manual test from QE? If yes, steps to reproduce]: No.
[List of other uplifts needed for the feature/fix]: None.
[Is the change risky?]: No.
[Why is the change risky/not risky?]: It's adding two use counters, and the code
   changes are pretty safe.
[String changes made/needed]: None, unless we use UseCounters.conf for
   localization.
Attachment #8989299 - Flags: approval-mozilla-beta?
https://hg.mozilla.org/mozilla-central/rev/bc6abadce397
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment on attachment 8989299 [details] [diff] [review]
Add use counters for document.open

Add telemetry counters, let's uplift for beta 7. 
bz, can you confirm this worked for you once beta 7 is out next week?
Attachment #8989299 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: