Bug 149623 - Writer does not allow to view source for HTML when opened from Writer
Summary: Writer does not allow to view source for HTML when opened from Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.4 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Web-Layout
  Show dependency treegraph
 
Reported: 2022-06-19 20:34 UTC by 10bxjfhf
Modified: 2022-12-20 13:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 10bxjfhf 2022-06-19 20:34:26 UTC
Description:
Version 7.3.3.2 Windows has the menu entry View -? {}HTML Source but version 7.3.4.3 for Linux/Mint
https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=728fec16bd5f605073805c3c9e7c4212a0120dc5

does NOT

Steps to Reproduce:
1.Load HTML file
2.Menu -> View -> no source view
3.

Actual Results:
no such entry, even in safe mode, cannot view HTML source under Linux

Expected Results:
provide the menu entry View -> HTML  Source

Alt-M shortcut does not work on Linux or Windows


Reproducible: Always


User Profile Reset: Yes



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Version: 7.3.4.2 / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 20; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-CA (en_CA.UTF-8); UI: en-US
Calc: threaded

OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CML GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
Comment 1 raal 2022-06-24 18:13:43 UTC
Works for me in Version: 7.2.7.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Ubuntu package version: 1:7.2.7-0ubuntu0.21.10.1
Calc: threaded
Comment 2 raal 2022-06-24 18:14:30 UTC
and Version: 7.4.0.0.beta1+ / LibreOffice Community
Build ID: 6ab56a4fc946f6294513f23a3ea47aa0aa154b7d
CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: x11
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo
Comment 3 Stéphane Guillou (stragu) 2022-12-20 13:35:27 UTC
Repro on both Windows and Ubuntu 20.04:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9b46020c262045aed0beace4708565235c2523cc
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ad387d5b984c6666906505d25685065f710ed55d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Note however that there's a difference:
- On both, can reproduce when opening the file from Writer (i.e. using the Open icon on the toolbar or File > Open)
- Only on Linux, I can reproduce when opening from the OS file browser, using Writer as the app. Not the case when using the general LibreOffice app, or on Windows with whatever option.
- On both, if the file is opened from the Start Center, it goes straight to Writer/Web mode (which can be seen in the titlebar) and allows looking at the source.

I guess this bug report could be reworded to "LibreOffice should always use Writer/Web when opening a HTML file" (if we do want to keep Writer/Web in LibreOffice) or "Writer should always allow seeing the source code of a HTML file" (if we don't). It already does switch to Writer/Web when creating a new HTML file.