Closed Bug 1510097 Opened 6 years ago Closed 6 years ago

Move bootstrapped extension and install.rdf handling to comm-central

Categories

(Thunderbird :: Add-Ons: Extensions API, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 65.0

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(2 files, 2 obsolete files)

      No description provided.
Attached patch 1510097-bootstrapped-move-1.diff (obsolete) — Splinter Review
Attached patch 1510097-diff-1.diff (obsolete) — Splinter Review
These are the differences between the files I've copied from mozilla-central (after part 3 of bug 857456), and how they are now.
Attachment #9028477 - Flags: review?(mkmelin+mozilla)
Attachment #9028477 - Flags: feedback?(aswan)
Comment on attachment 9028476 [details] [diff] [review]
1510097-bootstrapped-move-1.diff

There's a few new things in here that don't show up in the other diff.
Attachment #9028476 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9028476 [details] [diff] [review]
1510097-bootstrapped-move-1.diff

Review of attachment 9028476 [details] [diff] [review]:
-----------------------------------------------------------------

You really jumped right in!  Note that some things got renamed in the patches on bug 857456, sorry if it wasn't clear that those were works-in-progress that might change before landing.
Attachment #9028476 - Flags: feedback+
Attachment #9028477 - Flags: feedback?(aswan) → feedback+
Well, having this stuff working is rather important to us. Half of our tests die if it isn't. Now that I've figured out all the issues, rebasing should be easy enough.
This must land with the next inbound-to-central merge or Mozmill will die a horrible death.
Attachment #9028476 - Attachment is obsolete: true
Attachment #9028476 - Flags: review?(mkmelin+mozilla)
Attachment #9028796 - Flags: review?(mkmelin+mozilla)
Same as before, the difference between part 3 of bug 857456 and this bug. Probably not much use any more, but here we are.
Attachment #9028477 - Attachment is obsolete: true
Attachment #9028477 - Flags: review?(mkmelin+mozilla)
Attachment #9028797 - Flags: review?(mkmelin+mozilla)
Keywords: checkin-needed
(In reply to Geoff Lankow (:darktrojan) from comment #6)
> This must land with the next inbound-to-central merge or Mozmill will die a
> horrible death.
It wouldn't be the first time it stopped working for a while, like when non-bootstrapped extensions stopped working and we made MozMill and JS Bridge bootstrapped in a hurry. That said, I'll land it.
Comment on attachment 9028796 [details] [diff] [review]
1510097-bootstrapped-move-2.diff

Review of attachment 9028796 [details] [diff] [review]:
-----------------------------------------------------------------

::: common/src/BootstrapLoader.jsm
@@ +1,1 @@
> +

has a blank line on top. but, should add the MPL notice

::: common/test/xpcshell/data/BootstrapMonitor.jsm
@@ +1,1 @@
> +ChromeUtils.import("resource://gre/modules/Services.jsm");

this file too should have a license

::: common/test/xpcshell/head_addons.js
@@ +690,5 @@
> +                 actualValue.toSource() + ")");
> +      }
> +
> +      return;
> +    } else if (expectedValue && !actualValue) {

no else after return

@@ +1249,5 @@
> +Services.prefs.setBoolPref(PREF_XPI_SIGNATURES_REQUIRED, false);
> +
> +Services.prefs.setBoolPref("extensions.legacy.enabled", true);
> +
> +

extra blank line

@@ +1279,5 @@
> +  };
> +}
> +
> +/**
> + * Change the schema version of the JSON extensions database

these documentations could add a period at the end

::: common/test/xpcshell/test_bootstrap.js
@@ +31,5 @@
> +userExtDir.append("extensions2");
> +userExtDir.append(gAppInfo.ID);
> +registerDirectory("XREUSysExt", userExtDir.parent);
> +
> +

extra blank line

@@ +154,5 @@
> +  }
> +  equal(data.size, 0);
> +}
> +
> +

and here
Attachment #9028796 - Flags: review?(mkmelin+mozilla) → review+
Comment on attachment 9028797 [details] [diff] [review]
1510097-diff-2.diff

Review of attachment 9028797 [details] [diff] [review]:
-----------------------------------------------------------------

This is toolkit/ - someone from there should review
Attachment #9028797 - Flags: review?(mkmelin+mozilla)
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/9a6732b236da
Move bootstrapped extension and install.rdf handling to comm-central. r=mkmelin
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 65.0
That was just a *total success* !! \o/
Yes, thank you Andrew, for making that process so easy.
Cheers, I'm glad to hear that...

Is there a way to load restartless Add-ons in Tb69? it appears that version requires manifest.json, but adding the file breaks it too.

When trying to install the restartless Add-on with only install.rdf Tb 69 says "This add-on could not be installed because it is not compatible with Daily 69.0a1" - no such problem with conventional legacy Add-ons.

<em:targetApplication>
  <Description>
    <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
    <em:minVersion>60.0</em:minVersion>
    <em:maxVersion>69.0a1</em:maxVersion>
  </Description>
</em:targetApplication>
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: