Bug 468111

Summary: firefox extension `Plasma Integration` throws errors on raw xml files in developer console
Product: [Plasma] plasma-browser-integration Reporter: Stefan Krüger <mail>
Component: FirefoxAssignee: Kai Uwe Broulik <kde>
Status: REPORTED ---    
Severity: normal CC: mail
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Stefan Krüger 2023-04-03 08:48:47 UTC
# SUMMARY
extension throws errors on raw xml files in developer console.

## STEPS TO REPRODUCE
1. enable extension in Firefox
2. browse to https://www.w3schools.com/xml/note.xml
3. open dev console (F12)

## OBSERVED RESULT
warnings / errors in the console:
``` 
(WARNING) InstallTrigger is deprecated and will be removed in the future. constants.js:50:14
(ERROR) XML Parsing Error: not well-formed
Location: 
Line Number 17, Column 51:
(ERROR) SyntaxError: An invalid or illegal string was specified content-script.js:39
```



## EXPECTED RESULT
no errors no warnings.

the first warning is fixed by https://invent.kde.org/plasma/plasma-browser-integration/-/commit/dfa12f8dd4bfb5c3f2a872fb72c686de52b0d03c
(so should be fine in an upcoming release...)

the second could be fixed by
https://invent.kde.org/plasma/plasma-browser-integration/-/commit/55bd5b052569854988bf7d152fdb92c18ad2451d
but i do not now the exact reason for the error..

is there a easy way to check with the current master branch version?

## SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 16 × Intel® Core™ i9-9980HK CPU @ 2.40GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ZenBook Pro Duo UX581GV_UX581GV
System Version: 1.0