Closed
Bug 1184936
Opened 9 years ago
Closed 9 years ago
[e10s] Printing with "Print To File" fails, if Ubuntu system language is set to non English language
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: alice0775, Assigned: m_kato)
Details
(Keywords: jp-critical)
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
karlt
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details |
Similar to Bug 1156742, but this is on Linux.
This problem is occurred on only e10s.
Steps to reproduce
1. Enable e10s
2. File > Print and then select "Print To File"
Actual Results:
No file is created. Printing is silently failed
Expected Results
pdf or postscript file shpuld be created
Reporter | ||
Updated•9 years ago
|
Summary: Bug 1156742 - [e10s] Printing with "Print To File" fails → [e10s] Printing with "Print To File" fails
Updated•9 years ago
|
Assignee: nobody → mconley
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment hidden (obsolete) |
Comment 6•9 years ago
|
||
(In reply to Adrian Florinescu [:AdrianSV] from comment #5)
> Yup, apologies for the mistake. Only after submitting the change I noticed
> the mistake.
>
> However I can confirm on Aurora46, print to file behaves as expected.
> (Version 46.0a2 Build ID 20160205004003 User Agent Mozilla/5.0 (X11; Linux
> i686; rv:46.0)
No problem, thanks for testing.
Alice - can you still reproduce this?
Flags: needinfo?(alice0775)
Reporter | ||
Comment 7•9 years ago
|
||
Nightly47.0a1 works as expected.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox42:
affected → ---
tracking-e10s:
+ → ---
Flags: needinfo?(alice0775)
Resolution: --- → WORKSFORME
Reporter | ||
Comment 8•9 years ago
|
||
Oops,
On Ubuntu, It still reproducible on Nightly47.0a1.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Reporter | ||
Updated•9 years ago
|
tracking-e10s:
--- → ?
Comment 9•9 years ago
|
||
Version 47.0a1 Build ID 20160205030204 User Agent Mozilla/5.0 (X11; Linux i686; rv:47.0) Gecko/20100101
Alice, it works for me on 47 as well, are the STR from the user story complete?
Flags: needinfo?(alice0775)
Comment 10•9 years ago
|
||
Forgot to mention, the OS is Ubuntu 14.04.
Reporter | ||
Comment 11•9 years ago
|
||
(In reply to Adrian Florinescu [:AdrianSV] from comment #9)
> Version 47.0a1 Build ID 20160205030204 User Agent Mozilla/5.0 (X11; Linux
> i686; rv:47.0) Gecko/20100101
> Alice, it works for me on 47 as well, are the STR from the user story
> complete?
On Nightly47.0a1 Ubuntu14.04LTS 32bit
STR
1. "System Tools" > "System Setting" > "Language Support"
Select "日本語"(Japanese) > click "Apply System-Wide" and close
2. Re-login
3. Start Nightly47.01 with Enabled e10s profile
4. Open Webpage (e.g https://addons.mozilla.org/en-US/firefox/?utm_source=snippet&utm_medium=snippet&utm_campaign=addons )
5. File > Print
6. Select "Print To File"
7. Make sure, File: ~/desktop/aaaaa.pdf
8. Click "Print"
Actual Results:
No thing is created.
Expected Results:
aaaaa.pdf should be created on desktop.
Disable e10s fixes the problem.
***Strange thing***, if Ubuntu system language is "English" at Step1 fixes the problem.
Flags: needinfo?(alice0775)
Summary: [e10s] Printing with "Print To File" fails → [e10s] Printing with "Print To File" fails, if Ubuntu system language is "Japanese"
Reporter | ||
Updated•9 years ago
|
Keywords: jp-critical
Comment 12•9 years ago
|
||
Thanks Alice for the STR update.
I have reproduced the issue as well on 47Nightly when the system language was set to JP.
I also did some additional tests and the conclusion i reached is that this behavior is not only JP related, but it reproduces on any language. I got the same malfunction when i set the language to Chinese or Romanian, so my assumption is that no matter what language you set, the print to file will fail.
Also I can confirm that when you set it back to english, print to file works w/o problems.
Note: The build used is the standard Nightly build and not an l10n.
Summary: [e10s] Printing with "Print To File" fails, if Ubuntu system language is "Japanese" → [e10s] Printing with "Print To File" fails, if Ubuntu system language is set to non English language
Updated•9 years ago
|
Assignee: mconley → sotaro.ikeda.g
Assignee | ||
Comment 13•9 years ago
|
||
Ikeda-san, although I have a fix, could you handle this?
Assignee | ||
Updated•9 years ago
|
Component: Printing: Output → Widget: Gtk
Assignee | ||
Comment 14•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/34131/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/34131/
Attachment #8717319 -
Flags: review?(karlt)
Updated•9 years ago
|
Attachment #8717319 -
Flags: review?(karlt) → review+
Comment 15•9 years ago
|
||
Comment on attachment 8717319 [details]
MozReview Request: Bug 1184936 - Need convert from UTF8 for printer name. r?karlt
https://reviewboard.mozilla.org/r/34131/#review30829
Thank you!
::: widget/gtk/nsPrintSettingsGTK.cpp:483
(Diff revision 1)
> - *aPrinter = ToNewUnicode(nsDependentCString(gtkPrintName));
> + *aPrinter = ToNewUnicode(NS_ConvertUTF8toUTF16(gtkPrintName));
*aPrinter = UTF8ToNewUnicode(nsDependentCString(gtkPrintName));
to save buffer copying and maybe an allocation.
Comment 16•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: sotaro.ikeda.g → m_kato
Comment 17•9 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #13)
> Ikeda-san, although I have a fix, could you handle this?
Kato-san, thanks a lot for taking the bug!
Comment 18•9 years ago
|
||
Yes, thank you!
Updated•9 years ago
|
Priority: -- → P2
Comment 19•9 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 20•9 years ago
|
||
Want to uplift this to aurora? It would be nice for printing to work on release for Ubuntu users
Flags: needinfo?(m_kato)
Assignee | ||
Comment 21•9 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #20)
> Want to uplift this to aurora? It would be nice for printing to work on
> release for Ubuntu users
When Firefox 46 turns on e10s, this is nice that users use non-ASCII printer name on Linux.
Flags: needinfo?(m_kato)
Assignee | ||
Comment 22•9 years ago
|
||
Comment on attachment 8717319 [details]
MozReview Request: Bug 1184936 - Need convert from UTF8 for printer name. r?karlt
Approval Request Comment
[Feature/regressing bug #]:
No
[User impact if declined]:
If printer name has non-ASCII character and users use e10s, Firefox for Linux cannot print web page by it.
[Describe test coverage new/current, TreeHerder]:
Landed in m-c
[Risks and why]:
No. Because convert string to correct name
[String/UUID change made/needed]:
No
Attachment #8717319 -
Flags: approval-mozilla-aurora?
Comment 23•9 years ago
|
||
Comment on attachment 8717319 [details]
MozReview Request: Bug 1184936 - Need convert from UTF8 for printer name. r?karlt
Fix for e10s printing regression, ok to uplift to aurora.
Attachment #8717319 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 24•9 years ago
|
||
bugherder uplift |
status-firefox46:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•