Closed Bug 295770 Opened 20 years ago Closed 6 years ago

Should load Privacy policy asynchronously (or from a local resource)

Categories

(Other Applications Graveyard :: Reporter, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: asqueella, Assigned: raccettura)

References

Details

Attachments

(1 file, 2 obsolete files)

Currently [Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050527 Firefox/1.0+] when you open Reporter using a slow connection,
there's a noticable lag (up to three seconds) before the window is shown. That's
because the remote resource, http://reporter.mozilla.org/privacy/ , is fetched
synchronously before the first page of wizard is shown.

Calling this code using setTimeout(., 0) solves the problem.
var privacyURL = getCharPref("privacyURL","http://reporter.mozilla.org/privacy/");
document.getElementById("privacyStatement").setAttribute("src",
privacyURL+"?plain");', 0);
Depends on: 295209
No longer depends on: 295209
Blocks: 315750
Attached patch Patch v1 (obsolete) — Splinter Review
Status: NEW → ASSIGNED
Comment on attachment 237861 [details] [diff] [review]
Patch v1

Shouldn't the dontShowPrivacyStatement checkbox be disabled until the privacy policy loads (you can't accept a policy that hasn't loaded yet)? You should be able to do that by disabling it by default and then enabling it again after the call to setAttribute in the timeout.
ok, lets do that... I'll upload a new patch in a minute or two.
Attached patch Patch v2 (obsolete) — Splinter Review
Attachment #237861 - Attachment is obsolete: true
Attachment #237873 - Flags: review?(gavin.sharp)
Attached patch Patch v2.1Splinter Review
Don't dynamically disable checkbox
Attachment #237873 - Attachment is obsolete: true
Attachment #237875 - Flags: review?
Attachment #237873 - Flags: review?(gavin.sharp)
Attachment #237875 - Flags: review? → review?(gavin.sharp)
Comment on attachment 237875 [details] [diff] [review]
Patch v2.1

r=me, assuming you've tested it, but I'd move the "var dontShowPrivacyStatement" to right above where it's needed, and I'd probably take the "var privacyURL = getCharPref" outside of the timeout.
Attachment #237875 - Flags: review?(gavin.sharp) → review+
Was this patch forgotten?
Reporter isn't a maintained project. Closing!
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: