Closed
Bug 946647
Opened 12 years ago
Closed 12 years ago
Remove bidi attributes in nsIMarkupDocumentViewer as dead code
Categories
(Core :: Internationalization, enhancement)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: hsivonen, Assigned: hsivonen)
Details
(Keywords: addon-compat, Whiteboard: [qa-])
Attachments
(1 file)
|
6.71 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
nsIMarkupDocumentViewer::bidiTextDirection looks like dead code:
https://mxr.mozilla.org/comm-central/search?string=bidiTextDirection
| Assignee | ||
Comment 1•12 years ago
|
||
Except it's used by this extension: https://addons.mozilla.org/en-US/firefox/addon/toolbar-buttons/ . Sigh. I wonder if that button in the button pack actually has users.
| Assignee | ||
Comment 2•12 years ago
|
||
Anyway, here's a patch.
| Assignee | ||
Updated•12 years ago
|
Keywords: addon-compat
| Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 8343007 [details] [diff] [review]
Zap the code
Requesting review anyway, since the add-on probably shouldn't be offering a directionality change button for all pages. The only use case is flipping between ISO-8859-8-I and ISO-8859-8, which the add-on could do via nsIDocShell::charset.
Attachment #8343007 -
Flags: review?(smontagu)
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Comment 5•12 years ago
|
||
> Requesting review anyway, since the add-on probably shouldn't be offering a
> directionality change button for all pages. The only use case is flipping
> between ISO-8859-8-I and ISO-8859-8, which the add-on could do via
> nsIDocShell::charset.
FWIW, that would be the use case of a button which toggled bidiTextType, not bidiTextDirection. I haven't tested, but I imagine that the add-on has already been broken by bug 151407. To fix it, it probably needs to do something similar to SwitchDocumentDirection in browser.js.
Comment 6•12 years ago
|
||
Comment on attachment 8343007 [details] [diff] [review]
Zap the code
Review of attachment 8343007 [details] [diff] [review]:
-----------------------------------------------------------------
In fact this is orthogonal to bug 867936, even though the patches overlap. Removing it doesn't affect the functionality of the prefs as far as I can tell. Thanks!
Attachment #8343007 -
Flags: review?(smontagu) → review+
Updated•12 years ago
|
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: Remove nsIMarkupDocumentViewer::bidiTextDirection as dead code → Remove bidi attributes in nsIMarkupDocumentViewer as dead code
| Assignee | ||
Comment 7•12 years ago
|
||
Assignee: nobody → hsivonen
Status: REOPENED → ASSIGNED
Comment 8•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•