Closed Bug 794443 Opened 12 years ago Closed 12 years ago

Port | Bug 781588 - URLBarSetURI takes about 63ms to SeaMonkey

Categories

(SeaMonkey :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

(seamonkey2.15 fixed)

RESOLVED FIXED
seamonkey2.15
Tracking Status
seamonkey2.15 --- fixed

People

(Reporter: mz+bugzilla, Assigned: mz+bugzilla)

Details

Attachments

(1 file, 3 obsolete files)

Attached patch urlbarBindings patch (obsolete) — Splinter Review
"Blind" patch for not-shared parts of that bug
Attachment #664919 - Flags: review?(neil)
Comment on attachment 664919 [details] [diff] [review]
urlbarBindings patch

>+              if (!domain.contains(baseDomain)) {
[I wonder whether they meant endsWith.]

>+                let IDNService = Cc["@mozilla.org/network/idn-service;1"]
>+                                 .getService(Ci.nsIIDNService);
>+                baseDomain = IDNService.convertACEtoUTF8(baseDomain);
We don't have Cc/Ci so you'll need to write that out in full.
Attached patch Patch v2 (obsolete) — Splinter Review
Fixed review comment
Attachment #664919 - Attachment is obsolete: true
Attachment #664919 - Flags: review?(neil)
Attachment #664930 - Flags: review?(neil)
> +              if (!domain.contains(baseDomain)) {

Neil says: [I wonder whether they meant endsWith.]
And the answer is yes they did.

> +                // getBaseDomainFromHost converts its resultant to ACE.
> +                let IDNService = Components.classes["@mozilla.org/network/idn-service;1"]
> +                                 .getService(Components.interfaces.nsIIDNService);
Line up the dots. Like. This.
let IDNService = Components.classes["@mozilla.org/network/idn-service;1"]
                           .getService(Components.interfaces.nsIIDNService);
Attached patch Patch v3 (obsolete) — Splinter Review
Fixed indentation and incorporate Bug 794520 change
Attachment #664930 - Attachment is obsolete: true
Attachment #664930 - Flags: review?(neil)
Attachment #665306 - Flags: review?(neil)
Attachment #665306 - Flags: review?(neil) → review+
Keywords: checkin-needed
Comment on attachment 665306 [details] [diff] [review]
Patch v3

Bah, missed these first time:

>-              var baseDomain = Services.eTLD.getBaseDomainFromHost(domain);
>+              baseDomain = Services.eTLD.getBaseDomainFromHost(domain);
This change is wrong.

>-              if (baseDomain != domain) {
...
>+          if (baseDomain != domain) {
>+            subDomain = domain.slice(0, -baseDomain.length);
>+          }
Code needs to be moved back inside the try/catch.

r=me with those fixed.
Attached patch Patch v4Splinter Review
Attachment #665306 - Attachment is obsolete: true
Attachment #665327 - Flags: review?(neil)
(In reply to neil@parkwaycc.co.uk from comment #5)
> Comment on attachment 665306 [details] [diff] [review]
> Patch v3
> 
> Bah, missed these first time:
> 
> >-              var baseDomain = Services.eTLD.getBaseDomainFromHost(domain);
> >+              baseDomain = Services.eTLD.getBaseDomainFromHost(domain);
> This change is wrong.
Heh, I thought that I revert this, but...

> >-              if (baseDomain != domain) {
> ...
> >+          if (baseDomain != domain) {
> >+            subDomain = domain.slice(0, -baseDomain.length);
> >+          }
> Code needs to be moved back inside the try/catch.
Done. So, they made another mistake or this difference in implementation?

> r=me with those fixed.
Just in case, check last time plz :)
Attachment #665327 - Flags: review?(neil) → review+
(In reply to Phoenix from comment #7)
> So, they made another mistake or this difference in implementation?
Both the "changes" are because of a subtle difference in implementation. Sorry about that.
https://hg.mozilla.org/comm-central/rev/d8e9fe83bd2b

Thanks for the patch, Phoenix! One request - please make sure that future patches follow the guidelines below so that all the needed commit information is present in them. It makes life easier for those checking in on your behalf. Thanks!
https://developer.mozilla.org/en-US/docs/Creating_a_patch_that_can_be_checked_in
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.15
Comment on attachment 665327 [details] [diff] [review]
Patch v4

Eek! The "s" of components vanished on line 129 :-(

Also the patch got checked in with DOS line endings. Oops.
Pushed comm-central changeset 0226b8750d2a to address the above issues.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: