Skip to content

Commit

Permalink
bump version to v1.98.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Jun 9, 2022
1 parent ebe5e49 commit 275d02e
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 22 deletions.
5 changes: 5 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Release Notes of Vimium C
ReadMe: https://github.com/gdh1995/vimium-c/#readme .<br/>
说明文档: https://gitee.com/gdh1995/vimium-c#readme , https://github.com/gdh1995/vimium-c/blob/master/README-zh.md .

#### v1.98.2
* fix `X (restoreTab)` doesn't work in v1.98.1
* fix v1.98.1 scrolls much longer on a screen of 95-149 FPS
* fix `Marks.activate` fails to scroll pages in v1.98.1

#### v1.98.1
* fix configurations were hardly ever synchronized
* Firefox 96+: fix LinkHints may open a link twice
Expand Down
83 changes: 66 additions & 17 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"dependencies": {
"pngjs": "^6.0.0",
"terser": "^5.10.0",
"terser": "^5.14.0",
"typescript": "~4.6.3"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions pages/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ function clickLink(this: void, options: { [key: string]: string }
for (const i in options) {
a.setAttribute(i, options[i]);
}
a.href = VData.url; // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss]
a.href = VData.url; // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss-through-dom]
if (!OnFirefox) {
simulateClick(a, event)
return
Expand Down Expand Up @@ -524,7 +524,7 @@ function copyThing(event: EventToPrevent): void {
return doWrite()
}
const img = document.createElement("img")
img.src = VData.url // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss]
img.src = VData.url // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss-through-dom]
VData.file && (img.setAttribute("aria-title", img.alt = VData.file))
item["text/html"] = new Blob([img.outerHTML], {type: "text/html"})
return doWrite().catch(() => (delete item["text/html"], doWrite()))
Expand Down Expand Up @@ -853,7 +853,7 @@ function fetchImage_(url: string, element: HTMLImageElement, setUrlDirectly: boo
element.classList.add("svg")
}
if (setUrlDirectly) {
element.src = url; // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss]
element.src = url; // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss-through-dom]
} else {
destroyObject_();
body.replaceChild(text, element);
Expand All @@ -872,7 +872,7 @@ function fetchImage_(url: string, element: HTMLImageElement, setUrlDirectly: boo
blobCache[url] = blob
return _shownBlobURL = URL.createObjectURL(_shownBlob = blob)
}, () => url).then(newUrl => {
element.src = newUrl; // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss]
element.src = newUrl; // lgtm [js/client-side-unvalidated-url-redirection] lgtm [js/xss-through-dom]
text.parentNode ? body.replaceChild(element, text) : body.appendChild(element)
});
}
Expand Down

0 comments on commit 275d02e

Please # to comment.