Closed Bug 486137 Opened 15 years ago Closed 15 years ago

less xpconnect stuff in browser.js

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: taras.mozilla, Assigned: taras.mozilla)

References

Details

Attachments

(1 file)

this halves the amount of time spent in resizehandler during fake resizes and otherwise speeds things up.
Attachment #370222 - Flags: review?(mark.finkle)
Attachment #370222 - Flags: review?(mark.finkle) → review+
Comment on attachment 370222 [details] [diff] [review]
less .interfaces .classes nonsense and some resize stuff

>       // Cache the override service the first time we need to check it
>       if (!this._overrideService)
>-        this._overrideService = Components.classes["@mozilla.org/security/certoverride;1"]
>-                                          .getService(Components.interfaces.nsICertOverrideService);
>+        this._overrideService = Cc["@mozilla.org/security/certoverride;1"]
>+                                          .getService(Ci.nsICertOverrideService);

put .getService on the same line as the Cc

>   toggleAllowPopupsForSite: function (aEvent)
>   {
>     var currentURI = Browser.selectedBrowser.webNavigation.currentURI;
>-    var pm = Components.classes["@mozilla.org/permissionmanager;1"]
>+    var pm = Cc["@mozilla.org/permissionmanager;1"]
>                        .getService(this._kIPM);

put .getService on the same line as the Cc
did this land?
yep: http://hg.mozilla.org/mobile-browser/rev/24e8e65471f7
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee: nobody → tglek
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: