Commit Graph

35 Commits

Author SHA1 Message Date
f4dffb28cf ews-I#295 - itip-formatter: Import of forwarded meeting as bare event
This part adds an "Import as Event" button to the meeting request
window when the selected calendar claims it can add only meetings
organized by the calendar owner, which will remove the organizer
and all the attendees before the import.

Related to https://gitlab.gnome.org/GNOME/evolution-ews/-/issues/295
2025-01-29 12:25:40 +01:00
4c00eb2ee6 M!147 - Set project-wide emacs formatting rules
Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/147
2024-11-04 14:50:38 +00:00
7e57e2dd31 EWebView: Just loaded remote images may be left invisible
While calculating image size for the preview width, the images which are
being loaded report their width as 0px, which can be preserved due to it
can fix the preview width constraint, even though the image is 0px because
it's not loaded yet. The image does not enlarge to its expected size after
it's loaded due to this, effectively making the image invisible.
2024-07-23 15:23:47 +02:00
bcc15a818c I#2442 - Correct color of expand/collapse buttons in preview in Dark mode
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2442
2023-08-09 17:25:48 +02:00
32fd6557c3 I#203 - Improve handling of suspiciously signed/encrypted emails (multiparts)
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/203
2023-07-18 15:32:59 +02:00
5d0e2bd97f itip-formatter: Move JavaScript code from C to e-web-view.js
This is cleaner than having the code in the C and recompile the project
for any simple change. There is also added a call to

   window.webkit.messageHandlers.scheduleIFramesHeightUpdate.postMessage(0);

at the end, which caused trouble when being in the C code (there had been
issued an "Unsupported return type" error).
2023-06-16 12:31:18 +02:00
c559e9bff2 I#2400 - HTML attachment viewport is tiny
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2400
2023-06-16 12:18:39 +02:00
033db86f61 I#2382 - Mail: Workaround recursion in iframe height computation
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2382
2023-05-30 08:19:15 +02:00
974d13a5d9 I#2380 - Mail: Preview content sometimes grows indefinitely
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2380
2023-05-29 16:59:54 +02:00
feea689556 I#2310 - Mail: Preview panel has too many vertical scrollbars
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2310
2023-05-22 11:53:16 +02:00
1885854264 M!118 - iTIP-formatter: respect the color-scheme in HTML MIME parts
Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/2275
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2284
Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/118
2023-04-18 10:30:28 +00:00
f9551bdef2 I#2302 - Mail: Space bar no longer scrolls preview messages
This started with WebKitGTK 2.40.0.

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2302
2023-03-27 13:54:02 +02:00
dc2ccec4ca I#2210 - Scale embedded images in HTML messages to respect viewport ][
Follow-up change, to catch smaller images than the window width, to keep
their original size.

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2210
2023-01-20 09:27:38 +01:00
fcacec1fdc I#2210 - Scale embedded images in HTML messages to respect viewport
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2210
2023-01-20 08:49:54 +01:00
a037d582a2 I#2204 - itip-formatter: iframe height miscalculated without frame flattening
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2204
2023-01-03 18:22:20 +01:00
33f71e3790 I#2167 - e-web-view.js: Check for instantiated iframe document
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2167
2022-11-29 17:36:39 +01:00
8c20556a10 I#2001 - Mail: Update preview's iframe height to match its content
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2001
2022-09-16 08:47:07 +02:00
ac15857f14 I#1835 - Mail: Preview uses wrong colors for HTML mail with dark theme
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1835
2022-03-18 09:45:20 +01:00
ed36776c40 Add option to unset colors provided in HTML mails for preview into Preferences
It's located in Edit->Preferences->Mail Preferences->HTML Messages->Unset
colors provided in HTML mails in message preview.

Related to https://gitlab.gnome.org/GNOME/evolution/issues/695
2022-02-01 11:23:40 +01:00
04a326cec9 I#1791 - itip-view: Incorrect calendar used in certain corner case
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1791
2022-01-31 15:44:31 +01:00
a019ade24d Load JavaScript plugins for message preview and WebKit editor
This allows to save JavaScript plugins, files with .js extension,
into `$PREFIX/share/evolution/webkit/preview-plugins/` or into
`~/.local/share/evolution/preview-plugins/` for the message preview
and into `$PREFIX/share/evolution/webkit/webkit-editor-plugins/` or
into `~/.local/share/evolution/webkit-editor-plugins/` for
the WebKit composer.

The plugin is an object, which contains two members:
* `name` - a string with a name of the plugin
* `setup(doc)` - a setup function

The argument of the `setup` function is a `document`, which can
be either the main document or an iframe document. The function
can be called multiple times for the same document.

The preview plugin registers itself by calling `Evo.RegisterPlugin(plugin_instance)`.

The WebKit editor plugin registers itself by calling `EvoEditor.RegisterPlugin(plugin_instance)`.
2021-11-25 11:01:38 +01:00
3570977408 I#1068 - Attached event invitation not properly displayed ][
This change covers when there's a message attached, which contains
the invitation, which can be inline or also attached.

Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1068
2020-09-03 15:23:57 +02:00
337d913629 I#1068 - Attached event invitation not properly displayed
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1068
2020-09-03 12:41:05 +02:00
485a33882b I#908 - Focus body in message window when caret mode is enabled
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/908
2020-09-02 15:47:24 +02:00
7efeb63b63 e-web-view.js: Check iframe property validity in Evo.initialize()
This is to workaround runtime warning:

(evolution:769567): evolution-util-WARNING **: 12:21:17.882: Failed to
call 'Evo.EnsureMainDocumentInitialized();' function: WebKitJavascriptError:699:
resource:///e-web-view.js:587:32: TypeError: null is not an object
(evaluating 'elems[ii].contentDocument.body')

Mentioned in https://gitlab.gnome.org/GNOME/evolution/-/issues/1041
2020-07-30 09:44:46 +02:00
c07bca12e0 M!53 - data/webkit/*.js: change the emacs mode to JavaScript
Closes: https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/53
2020-05-12 07:52:23 +00:00
fcd4768b2e EWebKitEditor: Switch to JavaScriptCore API
The C DOM API had been deprecated since WebKitGTK 2.22. This is
the editor rewrite to use the new API.
2020-04-27 15:06:56 +02:00
5d36289399 M!48 - EWebView: Show the destination of hyperlinks as tooltip
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/827
Closes https://gitlab.gnome.org/GNOME/evolution/-/merge_requests/48
2020-04-15 12:17:40 +02:00
456cf10ec5 I#824 - EWebView: Should not force EWebView colors on IFrame body
Closes https://gitlab.gnome.org/GNOME/evolution/issues/824
2020-03-13 10:09:53 +01:00
c99f8d2378 I#813 - Improve styling of cited text in HTML mails
Closes https://gitlab.gnome.org/GNOME/evolution/issues/813
2020-02-27 15:02:23 +01:00
4dad3e4c5b I#695 - Option to unset colors provided in HTML mails for preview
Closes https://gitlab.gnome.org/GNOME/evolution/issues/695
2020-02-12 15:31:40 +01:00
2e66c1ab70 e-web-view.js: Element::tagName is always in upper-case
...thus no need to "upper-case" it again.
2019-10-22 10:18:30 +02:00
8fa7bed23e e-web-view.js: Replace 'isEqualNode()' with '==='
The 'isEqualNode()' is not the thing meant to be done here, this is
rather 'isSameNode()', which is deprecated and replaced with '==='.
2019-10-17 11:21:44 +02:00
517d822714 Show Security Information for signed/encrypted mails in the preview panel
It used to be a dialog, which was unnecessary. Let it be shown inline,
in the message preview instead. As a side effect, it's easier to copy
information out of it.
2019-10-10 15:50:53 +02:00
1d7e3e75cc EWebView: Use JavaScriptCore API of WebKitGTK+
All the previews (in Mail, Contacts, Memos and Tasks) stop using
deprecated WebKitGTK+ DOM API through a WebExtension (and its D-Bus
API) and start using the JavaScriptCore API (and JavaScript as such).
This allows to lightweight the WebExtension for the EWebView
significantly, including drop of the D-Bus API of it, fully relying
on the Inter-Process-Communication of WebKitGTK+ itself.
2019-10-09 12:26:12 +02:00