Closed
Bug 1343874
Opened 8 years ago
Closed 8 years ago
make some nsGlobalWindow methods non-virtual
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: bkelly, Assigned: bkelly)
References
Details
Attachments
(1 file)
(deleted),
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
I noticed last night that I accidentally made some methods on nsGlobalWindow virtual in bug 1303167. We can remove the virtual keyword here since we proxy from the nsPIDOMWindowInner via an inline method instead of using a virtual call.
Assignee | ||
Comment 1•8 years ago
|
||
This patch removes some virtual keywords that I accidentally left in when I implemented bug 1303167. They turned out to be unnecessary.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1fceb3a215a49cfcca3c9848e0ad9db03f5bda7a
Attachment #8842865 -
Flags: review?(bugs)
Comment 2•8 years ago
|
||
Comment on attachment 8842865 [details] [diff] [review]
Remove unnecessary virtual keyword from some nsGlobalWindow methods. r=smaug
oh, the setup is a bit unusual. Parent class calling subclass' methods via casting.
Attachment #8842865 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #2)
> oh, the setup is a bit unusual. Parent class calling subclass' methods via
> casting.
Yes, but its an established pattern here. Its the best way to expose methods on nsPIDOMWindowInner, but not on nsPIDOMWindowOuter. Since we do the weird casting thing between nsPIDOMWindow[Inner|Outer] and nsGlobalWindow they must all have the same vtbl.
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8c90ca8335b1
Remove unnecessary virtual keyword from some nsGlobalWindow methods. r=smaug
Comment 5•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•