Closed Bug 1132753 Opened 10 years ago Closed 10 years ago

sdk/l10n/html uses CPOWs and shims

Categories

(Add-on SDK Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mossop, Assigned: mossop)

References

Details

Attachments

(2 files)

46 bytes, text/x-github-pull-request
jsantell
: review+
Details | Review
46 bytes, text/x-github-pull-request
evold
: review+
Details | Review
Since this module is loaded for every single add-on regardless of necessity this makes any and all SDK add-ons cause CPOW jank for every page load :(
Attached file pull request
This turns off l10n/html when the add-on has no l10n data.
Attachment #8563823 - Flags: review?(evold)
Assignee: nobody → dtownsend
Depends on: 1130529
Attachment #8563823 - Flags: review?(evold) → review+
Commits pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/83baec9d671b0fba173525e5c4e97b033dacc69d Bug 1132753: Disable html localisation when the add-on has no l10n data. https://github.com/mozilla/addon-sdk/commit/6fa2fa6dfa832046816e5dbeac6cc2d0ea3d88d5 Merge pull request #1861 from Mossop/bug1132753 Bug 1132753: Disable html localisation when the add-on has no l10n data. r=jsantell
Going to keep this bug open as we actually have to fix sdk/l10n/html to support e10s.
Priority: -- → P1
Blocks: 1129567
No longer blocks: 1129567
Depends on: 1139099
Blocks: 1141275
Attached file pull request
Attachment #8575498 - Flags: review?(evold)
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Comment on attachment 8575498 [details] [review] pull request I'd like to keep the page-worker test too, otherwise it looks good to me.
Attachment #8575498 - Flags: review?(evold) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/b81b54cf6078fde76ce50b6632e2c13527ee5c1a Bug 1132753: Fix sdk/l10n/html to not use CPOWs and shims. r=erikvold This reverts 83baec9d671b0fba173525e5c4e97b033dacc69d which had the unintentional side-effect of breaking l10n/html in jpm. It also makes the code that loads locales in test/addons/l10n handle the missing json file in the same way as sdk/addon/runner. To get the l10n test add-on working in jpm tests I've moved the en-GB locale to en-US. This is because of bug 1141696. l10n-properties is still disabled but that is essentially testing the jpm behaviour in cfx so we shouldn't need to worry about it. Splits off the document listening code to run in content processes allowing us to avoid CPOWs. Added a test that pages loaded in tabs are localized and copied the entire l10n add-on to an e10s test add-on so we verify that remote pages are localized too.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: