Closed Bug 1525834 Opened 5 years ago Closed 5 years ago

ReferenceError: reference to undefined property "STATE_SECURE_HIGH" in specialTabs.js:151:1

Categories

(MailNews Core :: General, enhancement)

enhancement
Not set
normal

Tracking

(thunderbird66 fixed, thunderbird67 fixed)

RESOLVED FIXED
Thunderbird 67.0
Tracking Status
thunderbird66 --- fixed
thunderbird67 --- fixed

People

(Reporter: aceman, Assigned: aceman)

References

()

Details

Attachments

(2 files)

Opening Help->Troubleshooting info I get:
ReferenceError: reference to undefined property "STATE_SECURE_HIGH" in specialTabs.js:151:1

Looks like STATE_SECURE_HIGH constant does not exist anymore in m-c.
See
https://searchfox.org/comm-central/search?q=STATE_SECURE&case=false&regexp=false&path= these constants are aonly used in c-c a multiple places. This needs some update.

Trangely the STATE_SECURE_* constants are still mentioned in m-c comment at https://searchfox.org/comm-central/source/mozilla/uriloader/base/nsIWebProgressListener.idl#171 , but defined nowhere.

Looks like bug 1095602.

Assignee: nobody → acelists
Status: NEW → ASSIGNED
Attachment #9042742 - Flags: ui-review?(richard.marti)
Attachment #9042742 - Flags: review?(philipp)
Attachment #9042742 - Flags: review?(mkmelin+mozilla)
Attachment #9042742 - Flags: review?(frgrahl)
Comment on attachment 9042742 [details] [diff] [review]
1525834.patch [landed in comment #7 without the Calendar hunks]

Could the attributes be "secure" and "insecure" instead of "secure" and "broken"?
Attachment #9042742 - Flags: ui-review?(richard.marti) → ui-review+

According to https://searchfox.org/comm-central/source/mozilla/uriloader/base/nsIWebProgressListener.idl#156 "insecure" and "broken" are different states. I think the patch keeps all 3 states distinguished (insecure sets no level and hides securitybutton, e.g. https://searchfox.org/comm-central/source/mail/base/content/browserRequest.js#71).

Depends on: 1095602
Comment on attachment 9042742 [details] [diff] [review]
1525834.patch [landed in comment #7 without the Calendar hunks]

Looks good Thanks+++

IanN: No change needed for the status bar I think. Only uses high.
Attachment #9042742 - Flags: review?(philipp) → review+
Comment on attachment 9042742 [details] [diff] [review]
1525834.patch [landed in comment #7 without the Calendar hunks]

Upps set wrong reviewer
Attachment #9042742 - Flags: review?(frgrahl) → review?(philipp)
Attachment #9042742 - Flags: review?(mkmelin+mozilla) → review+

I don't think the gData bit is right. gData tries to maintain compatibility with earlier versions of TB. You might also want to ask MMD for review. I'm going to land the non-Calendar bits now.

Keywords: leave-open
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/25a47ea601f0
Port bug 1095602: Remove STATE_SECURE flags from nsIWebProgressListener. r=mkmelin,frg ui-r=Paenglab
Target Milestone: --- → Thunderbird 67.0

Yes, thanks.

Attachment #9042769 - Flags: review?(philipp)
Attachment #9042742 - Flags: review?(philipp)
Attachment #9042742 - Attachment description: 1525834.patch → 1525834.patch [landed in comment #7 without the Calendar hunks]
Comment on attachment 9042769 [details] [diff] [review]
1525834-cal.patch

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

Generally you are right, I try to maximize the compatibility for gdata. In this case I think it is fine nevertheless, the new code works with the old m-c code as well, we are just a bit less granular.
Attachment #9042769 - Flags: review?(philipp) → review+

Right, reading bug 1095602 comment #0 and https://hg.mozilla.org/mozilla-central/rev/b83cac4f938a, there was only ever a combination of "secure + high" used. "High" didn't occur alone and the other two were never used. I'll get this landed.

Comment on attachment 9042769 [details] [diff] [review]
1525834-cal.patch

Gotta love the spurious "y" at the end of the patch :-)
Attachment #9042742 - Flags: approval-comm-beta+
Attachment #9042769 - Flags: approval-comm-beta+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/6eac5062e8a1
Port bug 1095602: Remove STATE_SECURE flags from nsIWebProgressListener in calendar/. r=philipp

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: