Closed Bug 290812 Opened 20 years ago Closed 20 years ago

Problems with firefox built from trunk

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allan, Assigned: doronr)

References

()

Details

Attachments

(2 files, 1 obsolete file)

I've just built firefox and an xforms.xpi from trunk, and there seems to be a
problem with xforms.properties. When I trigger an XForms error message, I get
this message on the JavaScript console once:
"No chrome package registered for chrome://xforms/locale/xforms.properties"
Can you verify this bug again Allan?  Seems to work ok on a firefox build I did
on Windows on 15/05.  Thanks.
(In reply to comment #1)
> Can you verify this bug again Allan?  Seems to work ok on a firefox build I did
> on Windows on 15/05.  Thanks.

Still there, on a build from this morning.
Attached file Testcase
Loading this form shows the "no chrome..." error from above, and:
nsXFormsModelElement::Rebuild()
nsXFormsModelElement::Recalculate()
nsXFormsModelElement::Revalidate()
nsXFormsUtils::ReportError() Failed to get message string for message id
'idRefError'!
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsXFormsUtils.cpp, line
490
WARNING: NS_ENSURE_TRUE(mModel) failed, file nsXFormsControlStub.cpp, line 228
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsStringBundle.cpp, line
273
nsXFormsUtils::ReportError() Failed to get message string for message id
'controlBindError'!
doron said that he's got some time to look at this.  I didn't see this with my
Firefox build running with the XBL patches.
Assignee: allan → doronr
I can reproduce this
Status: NEW → ASSIGNED
Attached patch patch (obsolete) — Splinter Review
Simple - install.rdf is missing the locale registration section.
Attachment #185064 - Flags: review?(allan)
I also bumped the version of the XPI to 0.2
(In reply to comment #7)
> I also bumped the version of the XPI to 0.2

While we're at it how about setting maxVersion to 1.1 instead of 1.0+? Or is
that not allowed?
Comment on attachment 185064 [details] [diff] [review]
patch

I do not know enough about extensions to say whether it is a correct fix, but
it fixes the bug.

r=me, but consider the maxVersion too
Attachment #185064 - Flags: review?(allan) → review+
(In reply to comment #7)
> I also bumped the version of the XPI to 0.2

You need to set PACKAGE_VERSION in Makefile.in too.

I tried to make it is as generic as possibly in bug 285418, but install.rdf
still needs to be modified and possibly other places too. Please check.
Bumped maxVersion and the makefile.

The reason the patch works is that you need to tell it what dirs in the jar
need to be registered, and we are missing the locales directory
Attachment #185064 - Attachment is obsolete: true
Attachment #185151 - Flags: review?(smaug)
Attachment #185151 - Flags: review?(smaug) → review+
checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: