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)
SeaMonkey
Tabbed Browser
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)
1.49 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
"Blind" patch for not-shared parts of that bug
Attachment #664919 -
Flags: review?(neil)
Comment 1•12 years ago
|
||
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.
Fixed review comment
Attachment #664919 -
Attachment is obsolete: true
Attachment #664919 -
Flags: review?(neil)
Attachment #664930 -
Flags: review?(neil)
Comment 3•12 years ago
|
||
> + 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);
Fixed indentation and incorporate Bug 794520 change
Attachment #664930 -
Attachment is obsolete: true
Attachment #664930 -
Flags: review?(neil)
Attachment #665306 -
Flags: review?(neil)
Updated•12 years ago
|
Attachment #665306 -
Flags: review?(neil) → review+
Keywords: checkin-needed
Comment 5•12 years ago
|
||
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.
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 :)
Updated•12 years ago
|
Attachment #665327 -
Flags: review?(neil) → review+
Comment 8•12 years ago
|
||
(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.
Comment 9•12 years ago
|
||
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 10•12 years ago
|
||
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.
Comment 11•12 years ago
|
||
Pushed comm-central changeset 0226b8750d2a to address the above issues.
Updated•12 years ago
|
status-seamonkey2.15:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•