Closed
Bug 802668
Opened 13 years ago
Closed 13 years ago
Use Service.jsm in toolkit/content/contentAreaUtils.js
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
Firefox 19
People
(Reporter: tetsuharu, Assigned: tetsuharu)
Details
Attachments
(1 file, 2 obsolete files)
9.30 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #672360 -
Flags: review?(josh)
Comment 2•13 years ago
|
||
Comment on attachment 672360 [details] [diff] [review]
patch
>diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js
> var ContentAreaUtils = {
>+
>+ // this is backwards /compatibility.
> get ioService() {
>- delete this.ioService;
You need to keep this, otherwise the getter stays in place, I think.
Comment 3•13 years ago
|
||
Comment on attachment 672360 [details] [diff] [review]
patch
Review of attachment 672360 [details] [diff] [review]:
-----------------------------------------------------------------
This will have to be reviewed by somebody else; I'm not a toolkit peer. See https://wiki.mozilla.org/Modules/Toolkit for options.
Attachment #672360 -
Flags: review?(josh) → review?(dao)
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #2)
>
> > var ContentAreaUtils = {
> >+
> >+ // this is backwards /compatibility.
> > get ioService() {
> >- delete this.ioService;
>
> You need to keep this, otherwise the getter stays in place, I think.
Do you means "not delete 'delete this.ioService;'" ?
(In reply to Josh Matthews [:jdm] from comment #3)
> This will have to be reviewed by somebody else; I'm not a toolkit peer. See
> https://wiki.mozilla.org/Modules/Toolkit for options.
Oops. I'm sorry in every times.
Comment 5•13 years ago
|
||
Comment on attachment 672360 [details] [diff] [review]
patch
Review of attachment 672360 [details] [diff] [review]:
-----------------------------------------------------------------
That being said, this looks fine to me (with gavin's comment addressed). Dao, is my review sufficient?
Attachment #672360 -
Flags: review?(dao) → review+
Comment 6•13 years ago
|
||
Comment on attachment 672360 [details] [diff] [review]
patch
Just a couple of minor nits...
>diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js
> function urlSecurityCheck(aURL, aPrincipal, aFlags)
>+ var secMan = Services.scriptSecurityManager;
>+ if (aFlags === undefined) {
>+ aFlags = Components.interfaces.nsIScriptSecurityManager.STANDARD;
You could use secMan.STANDARD here.
>+// This is for backwords compatibility.
> function getPrefsBrowserDownload(branch)
I don't think we need to keep this; it's very specifically-named, and https://mxr.mozilla.org/addons/search?string=getPrefsBrowserDownload returns no useful hits (just wholesale copies of the file).
r=me too with those addressed.
Attachment #672360 -
Flags: review+
Assignee | ||
Comment 7•13 years ago
|
||
Thank you for your speedy reviews. I reflect them.
How about this?
Attachment #672360 -
Attachment is obsolete: true
Attachment #672399 -
Flags: review?(gavin.sharp)
Updated•13 years ago
|
Attachment #672399 -
Flags: review?(gavin.sharp) → review+
Comment 8•13 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #2)
> Comment on attachment 672360 [details] [diff] [review]
> patch
>
> >diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js
>
> > var ContentAreaUtils = {
> >+
> >+ // this is backwards /compatibility.
> > get ioService() {
> >- delete this.ioService;
>
> You need to keep this, otherwise the getter stays in place, I think.
This still isn't addressed.
Assignee | ||
Comment 9•13 years ago
|
||
Attachment #672399 -
Attachment is obsolete: true
Attachment #672638 -
Flags: review?(gavin.sharp)
Comment 10•13 years ago
|
||
Comment on attachment 672638 [details] [diff] [review]
patch v3
I guess this is fine too, this is just a compat shim after all (and getter overhead is negligible).
Attachment #672638 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Updated•13 years ago
|
Comment 11•13 years ago
|
||
Keywords: checkin-needed
Target Milestone: --- → Firefox 19
Comment 12•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•