Closed
Bug 841452
Opened 12 years ago
Closed 12 years ago
Error message for busy page shows "&Don't ask me again."
Categories
(Firefox OS Graveyard :: Gaia::Browser, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 821405
People
(Reporter: nhirata, Unassigned)
Details
Attachments
(1 file)
103.92 KB,
image/png
|
Details |
## Environment :
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/d1288313218e
Gaia 6544fdb8dddc56f1aefe94482402488c89eeec49
BuildID 20130214070203
Version 18.0
Unagi
## Repro :
1. go to an etherpad page such as https://etherpad.mozilla.org/gaia-meeting-notes
2. zoom and pan around
## Expected :
1. if the script busy message appears the checkbox should not have an &
## Actual :
1. & shown
## Note :
Reporter | ||
Comment 1•12 years ago
|
||
ccing pike and stas in the event this could end up impacting l10n. I recall a bug before that had a & and it did....
Comment 2•12 years ago
|
||
We should have disabled the hung-script prompt, you shouldn't manage to get to that screen. For exactly the reason that the prompt expects stuff we're not doing.
That was bug 820443.
Comment 3•12 years ago
|
||
Yes this was disabled in bug 820443, but in trying to find a regression window I discovered it was re-enabled in bug 820438.
Gabriele, can you explain the rationale behind this?
https://github.com/mozilla/mozilla-central/commit/12c35831833b6352257e6513260efec5c7d859f7
Comment 4•12 years ago
|
||
(In reply to Ben Francis [:benfrancis] from comment #3)
> Gabriele, can you explain the rationale behind this?
We disabled the hung-script prompt because there wasn't a way to dismiss it permanently. This was because when we set the "Don't ask me again" flag a preference would be set and the change then reflected in the caller by a pref observer. However since the browser is a content process it can't set preferences, the observer with the change would never trigger and so the prompt would show up again.
What my patch does is to immediately apply the change to the calling process even if it failed to set the pref; this way the prompt is permanently dismissed if you chose "Don't ask me again" (at least until you restart the browser since the pref has not been set).
The "Don't ask me again" string is obtained via the following code:
tmp = nsContentUtils::GetLocalizedString(nsContentUtils::eDOM_PROPERTIES,
"DontAskAgain",
neverShowDlg);
I can check if the returned string contains the '&' or if it's added by some other code.
Comment 5•12 years ago
|
||
It's in the strings, http://mxr.mozilla.org/l10n-mozilla-aurora/search?string=DontAskAgain&find=dom.properties$
It's used as accesskey in the desktop modal dialogs.
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•