Closed Bug 1033340 Opened 10 years ago Closed 10 years ago

Uplift recent PSL changes to Firefox 24

Categories

(Firefox :: General, defect)

24 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 24
Tracking Status
firefox-esr24 --- verified

People

(Reporter: gerv, Assigned: Gijs)

Details

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #1024964 +++

We recently made two large batches of changes to the Public Suffix List, clearing a several-month backlog. These changes included a change for .uk to reflect the fact that they have now gone live with top-level registration. .uk is a busy TLD, and errors here will get noticed. The impact if the uplift doesn't happen is that sites using the new wibble.uk domain names may not be able to set cookies across their multiple servers. 

We should uplift the current PSL file en masse to Firefox 24. The file is known to pass tests on mozilla-central and so the risk is minimal.

Here's the .uk change:
https://hg.mozilla.org/mozilla-central/rev/8597415940ed
although I'd want to take the file wholesale, including all the updates.

Gerv
Attached patch Patch v.1Splinter Review
This patch ports the current trunk PSL to ESR 24. Because the ESR 24 branch is old, there are quite a few changes. However, this PSL file has been tested on trunk, and was recently uplifted to Aurora and Beta in bug 1024964.

Gerv
Comment on attachment 8449372 [details] [diff] [review]
Patch v.1

[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration:

-- The most high-profile issue is that the new foo.uk domains are having cookie-setting problems. But almost all of these changes fix a problem for someone somewhere.

User impact if declined: 

-- See above.

Fix Landed on Version:

-- Already on central, aurora and beta.

Risk to taking this patch (and alternatives if risky): 

-- Low - static data file, already in use on all other current branches.

String or UUID changes made by this patch: 

-- None.

Gerv
Attachment #8449372 - Flags: approval-mozilla-esr24?
Comment on attachment 8449372 [details] [diff] [review]
Patch v.1

We only have two more ESR24 but can take this since it's low risk and has positive impact to the channel.
Attachment #8449372 - Flags: approval-mozilla-esr24? → approval-mozilla-esr24+
Not tracking since this is not actually a concern for ESR to the level of tracking.
https://hg.mozilla.org/releases/mozilla-esr24/rev/34182c54281a

Gerv
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Thanks, Ryan. Sorry about that. My machine can't build ESR24 at the moment; I will soon order a new SSD so I can move to a 64-bit OS. I assumed this was simple, and in one sense it is - the list is fine, and the code will parse it fine. It's just the wretched test which needs fiddling. The stuff which is breaking is not the PSL, it's test infra.

Gerv
Backing out the backout (ie recommitting the previous 3 csets landed for this bug), and adding:

const Cc = Components.classes;
const Ci = Components.interfaces;

at the top of the test_psl.js file makes this test pass on my local copy of esr24 (on mac).

FWIW, the debug (but not opt, because... opt?) failures indicate:

ReferenceError: Cc is not defined

e.g. https://tbpl.mozilla.org/php/getParsedLog.php?id=43053178&tree=Mozilla-Esr24

These were all added in head_cache2.js for the http cache v2 that was added "relatively recently" ( bug 913807, https://hg.mozilla.org/mozilla-central/rev/0c91d9aa9476 ).

I don't believe there's anything else necessary to fix this up, judging from tbpl, and I can be around on Monday to help out if you're comfortable relanding then, Gerv? :-)
Flags: needinfo?(gerv)
Stealing per discussion on IRC.
Assignee: gerv → gijskruitbosch+bugs
Flags: needinfo?(gerv)
In fact, these two lines are already in the test, but the uplift of the test changes removed them... so this is a single commit that folds the 3 that landed on esr24 originally, minus the removal of the Cc and Ci declarations.
Attachment #8452289 - Flags: review?(gerv)
Comment on attachment 8452289 [details] [diff] [review]
, uplift PSL changes to ESR 24,

LGTM. The test did pass, right? :-)

Gerv
Attachment #8452289 - Flags: review?(gerv) → review+
(In reply to Gervase Markham [:gerv] from comment #11)
> Comment on attachment 8452289 [details] [diff] [review]
> , uplift PSL changes to ESR 24,
> 
> LGTM. The test did pass, right? :-)
> 
> Gerv

Yup.

remote:   https://hg.mozilla.org/releases/mozilla-esr24/rev/9f424948b2aa
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
I pulled changeset 31b0c1ff3c0b and ensured that "effective_tld_names.dat" located under "/home/kjozwiak/mozilla/mozilla-esr24/netwerk/dns" matched the patch that has been provided in comment #1.

Because there are so many changes, I went through about half of them and ensured that they were present in the current changeset. Checked the ones that had the bigger changes associated with them like .uk, .ar and .it.
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa!]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: