Closed
Bug 1137025
Opened 11 years ago
Closed 11 years ago
Add a telemetry probe for whether showModalDialog is used
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: mrbkap, Assigned: mrbkap)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.95 KB,
patch
|
jst
:
review+
lsblakk
:
approval-mozilla-aurora+
bkerensa
:
approval-mozilla-esr31+
|
Details | Diff | Splinter Review |
For bug 981796, we should probably figure out how often showModalDialog is used on the web.
Given that Chrome already ripped this out, there shouldn't be too many uses out there.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8569559 -
Flags: review?(jst)
Updated•11 years ago
|
Attachment #8569559 -
Flags: review?(jst) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
It would probably be a good idea to backport this patch to ESR as well, and get some data from that channel. When Blink removed this API, a lot of the objections came from enterprise intranet apps that used this.
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8569559 [details] [diff] [review]
patch
Approval Request Comment
[Risks and why]: No risk. It would be good to get as much telemetry data on this on the ESR branches as possible.
Attachment #8569559 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 8570239 [details] [diff] [review]
Patch for esr24
This isn't needed.
Attachment #8570239 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 8569559 [details] [diff] [review]
patch
[Approval Request Comment]
Please see comment 3 and comment 4.
Attachment #8569559 -
Flags: approval-mozilla-esr31?
Comment 8•11 years ago
|
||
Triage drive-by: will wait for this to land on central before approving uplift.
status-firefox38:
--- → affected
status-firefox39:
--- → affected
status-firefox-esr31:
--- → affected
tracking-firefox38:
--- → +
tracking-firefox-esr31:
--- → 38+
Comment 9•11 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Updated•11 years ago
|
Attachment #8569559 -
Flags: approval-mozilla-esr31? → approval-mozilla-esr31+
Comment 11•11 years ago
|
||
Updated•11 years ago
|
Attachment #8569559 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
The telemetry for DOM_WINDOW_SHOWMODALDIALOG_USED for beta 38 right now shows usage in 1.6% of sessions. (I think that's what it means.)
Comment 14•11 years ago
|
||
That's terrible :(
Comment 15•11 years ago
|
||
Blake, how difficult would it be to implement showModalDialog for e10s?
| Assignee | ||
Comment 16•11 years ago
|
||
Probably not terrible, but I'd really like to avoid it if at all possible.
Andrew, what's the policy about stuff like this? This API has been slated for removal for a while now. Clearly it's still used on more than a few sites in the wild, but it isn't terribly popular.
Flags: needinfo?(overholt)
Comment 17•11 years ago
|
||
Is it possible that some addons or even chrome code uses showModalDialog and we're counting that too?
1.6% is very high number, we can't really think of removing API used that often.
Comment 18•11 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #17)
> Is it possible that some addons or even chrome code uses showModalDialog and
> we're counting that too?
At a glance, I don't see any in mozilla-central outside of testing code. I do 145 uses of it in addons MXR, in around maybe 60 addons. I don't know how popular those addons are.
Comment 19•11 years ago
|
||
(In reply to Blake Kaplan (:mrbkap) (please use needinfo!) from comment #16)
> Probably not terrible, but I'd really like to avoid it if at all possible.
>
> Andrew, what's the policy about stuff like this? This API has been slated
> for removal for a while now. Clearly it's still used on more than a few
> sites in the wild, but it isn't terribly popular.
Yeah 1.6% is way too much. Modulo the e10s piece, showModalDialog is much less problematic for us than it was for Chrome (I can explain why offline), so I don't think we need to hurry it.
Put another way, it was never a beautiful web feature. We implemented it (and paid a cost) for a compat win, and I don't think we should take a compat hit like that by removing it too early.
There may be more to this story though, and it would be nice to have more data to get a clearer picture of what's going on.
Comment 20•11 years ago
|
||
Can we get a different telemetry probe based on whether the function is accessed from chrome or content to see if this coming from some popular add-ons, or from actual websites?
Comment 21•11 years ago
|
||
(In reply to Bobby Holley (:bholley) from comment #19)
> showModalDialog is much
> less problematic for us than it was for Chrome (I can explain why offline),
Oh, I guess this is public now:
https://code.google.com/p/chromium/issues/detail?id=350535
Basically, showModalDialog was the only place that Blink spun the event loop, whereas Gecko spins it in a lot of places. They also handled it much worse than Gecko do, so it was a lot more of a win for them to get rid of it.
Comment 22•11 years ago
|
||
(In reply to Blake Kaplan (:mrbkap) (please use needinfo!) from comment #16)
> Andrew, what's the policy about stuff like this? This API has been slated
> for removal for a while now. Clearly it's still used on more than a few
> sites in the wild, but it isn't terribly popular.
We don't have an explicit policy for cases like this, sorry.
Flags: needinfo?(overholt)
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•