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)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: asqueella, Assigned: raccettura)
References
Details
Attachments
(1 file, 2 obsolete files)
|
2.13 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
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);
| Assignee | ||
Comment 1•18 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Comment 2•18 years ago
|
||
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.
| Assignee | ||
Comment 3•18 years ago
|
||
ok, lets do that... I'll upload a new patch in a minute or two.
| Assignee | ||
Comment 4•18 years ago
|
||
Attachment #237861 -
Attachment is obsolete: true
Attachment #237873 -
Flags: review?(gavin.sharp)
| Assignee | ||
Comment 5•18 years ago
|
||
Don't dynamically disable checkbox
Attachment #237873 -
Attachment is obsolete: true
Attachment #237875 -
Flags: review?
Attachment #237873 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•18 years ago
|
Attachment #237875 -
Flags: review? → review?(gavin.sharp)
Comment 6•18 years ago
|
||
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+
| Reporter | ||
Comment 7•18 years ago
|
||
Was this patch forgotten?
Comment 8•6 years ago
|
||
Reporter isn't a maintained project. Closing!
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•