Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message document rendering ignores our injected stylesheet #20

Closed
eyalroz opened this issue Aug 10, 2020 · 1 comment
Closed

Message document rendering ignores our injected stylesheet #20

eyalroz opened this issue Aug 10, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@eyalroz
Copy link
Owner

eyalroz commented Aug 10, 2020

With the TB-78-compatible - injected - versions, direction autodetection fails quietly; not sure why.

@eyalroz eyalroz added the bug Something isn't working label Aug 10, 2020
@eyalroz eyalroz self-assigned this Aug 10, 2020
@eyalroz eyalroz added this to the Thunderbird 78 compatibility milestone Aug 10, 2020
@eyalroz eyalroz changed the title Direction autodetection fails Message document rendering ignores our injected stylesheet Aug 12, 2020
@eyalroz
Copy link
Owner Author

eyalroz commented Aug 12, 2020

Status so far:

eyalroz pushed a commit that referenced this issue Aug 12, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Aug 12, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Aug 13, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Aug 14, 2020
…ment (and no need for the workaround)

* Removed the style-element-with-no-link workaround code.
* Other changes to the stylesheet-link-adding function; specifically, still using a non-namespaced link element.
* Apparently, Thunderbird _is_ willing to use linked chrome in content documents if it's via a `resource://` URI; so - doing that:
   * Registering our chrome folder for use as a "resource"
   * Tweaked the stylesheet injector function to use a `resource://` URI
eyalroz pushed a commit that referenced this issue Aug 14, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Aug 14, 2020
…ment (and no need for the workaround)

* Removed the style-element-with-no-link workaround code.
* Other changes to the stylesheet-link-adding function; specifically, still using a non-namespaced link element.
* Apparently, Thunderbird _is_ willing to use linked chrome in content documents if it's via a `resource://` URI; so - doing that:
   * Registering our chrome folder for use as a "resource"
   * Tweaked the stylesheet injector function to use a `resource://` URI
eyalroz pushed a commit that referenced this issue Aug 16, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Aug 16, 2020
…ment (and no need for the workaround)

* Removed the style-element-with-no-link workaround code.
* Other changes to the stylesheet-link-adding function; specifically, still using a non-namespaced link element.
* Apparently, Thunderbird _is_ willing to use linked chrome in content documents if it's via a `resource://` URI; so - doing that:
   * Registering our chrome folder for use as a "resource"
   * Tweaked the stylesheet injector function to use a `resource://` URI
eyalroz pushed a commit that referenced this issue Sep 5, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Sep 5, 2020
…ment (and no need for the workaround)

* Removed the style-element-with-no-link workaround code.
* Other changes to the stylesheet-link-adding function; specifically, still using a non-namespaced link element.
* Apparently, Thunderbird _is_ willing to use linked chrome in content documents if it's via a `resource://` URI; so - doing that:
   * Registering our chrome folder for use as a "resource"
   * Tweaked the stylesheet injector function to use a `resource://` URI
eyalroz pushed a commit that referenced this issue Sep 5, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Sep 5, 2020
…ment (and no need for the workaround)

* Removed the style-element-with-no-link workaround code.
* Other changes to the stylesheet-link-adding function; specifically, still using a non-namespaced link element.
* Apparently, Thunderbird _is_ willing to use linked chrome in content documents if it's via a `resource://` URI; so - doing that:
   * Registering our chrome folder for use as a "resource"
   * Tweaked the stylesheet injector function to use a `resource://` URI
eyalroz pushed a commit that referenced this issue Sep 5, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
eyalroz pushed a commit that referenced this issue Sep 5, 2020
…ment (and no need for the workaround)

* Removed the style-element-with-no-link workaround code.
* Other changes to the stylesheet-link-adding function; specifically, still using a non-namespaced link element.
* Apparently, Thunderbird _is_ willing to use linked chrome in content documents if it's via a `resource://` URI; so - doing that:
   * Registering our chrome folder for use as a "resource"
   * Tweaked the stylesheet injector function to use a `resource://` URI
eyalroz pushed a commit that referenced this issue Sep 5, 2020
* Workaround for ignored stylesheets - now injecting style elements as text
* Changed the previously-implemented link injectors to create non-HTML elements (`createElement()` with no namespace) - so that it triggers the security error - but at least there's an _attempt_ to load the sheet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant