Closed Bug 1400898 Opened 7 years ago Closed 7 years ago

Nix some nsIDOMChromeWindow stuff

Categories

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

53 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(4 files)

There's no good reason for nsIDOMChromeWindow to be scriptable, for example.
Actually, I guess it needs to be scriptable so it shows up in Ci.nsIDOMChromeWindow.... :(
MozReview-Commit-ID: I31eceiJP55
Attachment #8909353 - Flags: review?(afarre)
MozReview-Commit-ID: 4FuJSgha5y3
Attachment #8909354 - Flags: review?(afarre)
C++ code only reads this attribute.  Code that sets it comes via WebIDL bindings.

MozReview-Commit-ID: 2itFAxUVTBo
Attachment #8909355 - Flags: review?(afarre)
Priority: -- → P3
Attachment #8909353 - Flags: review?(afarre) → review+
Comment on attachment 8909354 [details] [diff] [review]
part 2.  Get rid of the interface constants on nsIDOMChromeWindow

Review of attachment 8909354 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/base/nsGlobalWindow.cpp
@@ +14076,5 @@
>    return NS_OK;
>  }
>  
> +enum WindowState {
> +  // These constants need to match the cosntants in Window.webidl

s/cosntants/constants/
Attachment #8909354 - Flags: review?(afarre) → review+
Attachment #8909355 - Flags: review?(afarre) → review+
Attachment #8909356 - Flags: review?(afarre) → review+
> s/cosntants/constants/

Good catch, fixed.
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a4ef5b6299e5
part 1.  Remove the one script use of nsIDOMChromeWindow.  r=farre
https://hg.mozilla.org/integration/mozilla-inbound/rev/aa4d0a9412c0
part 2.  Get rid of the interface constants on nsIDOMChromeWindow.  r=farre
https://hg.mozilla.org/integration/mozilla-inbound/rev/081034bdc4d4
part 3.  Make nsIDOMChromeWindow.browserDOMWindow readonly.  r=farre
https://hg.mozilla.org/integration/mozilla-inbound/rev/5af3e3b70198
part 4.  Get rid of nsIDOMChromeWindow methods that are unused from C++, and mark the rest [noscript].  r=farre
Depends on: 1401487
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: