Commit 5d293e9d authored by wang's avatar wang

对比修复

parent d2a4ce9e
...@@ -579,9 +579,8 @@ try { ...@@ -579,9 +579,8 @@ try {
}, {"font": "72px ZWAdobeF, serif", "text": "mmmmmmmmlli"}] }, {"font": "72px ZWAdobeF, serif", "text": "mmmmmmmmlli"}]
let fontsRes = {} let fontsRes = {}
var canvas = document.createElement('canvas'); var canvas = new OffscreenCanvas(1200,1200)
var ctx = canvas.getContext('2d') var ctx = canvas.getContext('2d')
ctx.textBaseline = 'top';
for (let i = 0; i < fonts.length; i++) { for (let i = 0; i < fonts.length; i++) {
ctx.font = fonts[i].font; ctx.font = fonts[i].font;
let met = ctx.measureText(fonts[i].text) let met = ctx.measureText(fonts[i].text)
......
chrome.webRequest.onBeforeRequest.addListener( chrome.webRequest.onBeforeRequest.addListener(
function (details) { function (details) {
// 在这里修改请求的 URL // 在这里修改请求的 URL
// console.log(details.url)
if (details.url.indexOf('outbound') != -1) { if (details.url.indexOf('outbound') != -1) {
details.url = 'http://www.example.com/'; details.url = 'https://www.jetblue.com/lfs-rwb/outboundLFSsss';
} }
return {cancel: false, redirectUrl: details.url}; return {redirectUrl: details.url};
}, },
{urls: ['<all_urls>']}, {urls: ['<all_urls>']},
['blocking'] ['blocking', 'requestBody', 'extraHeaders']
); );
chrome.webRequest.onBeforeSendHeaders.addListener((details) => { chrome.webRequest.onBeforeSendHeaders.addListener((details) => {
......
...@@ -65,29 +65,29 @@ for i in range(100): ...@@ -65,29 +65,29 @@ for i in range(100):
proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}' proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}' # proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600' proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# if platform.uname().system == 'Darwin': if platform.uname().system == 'Darwin':
# proxy = 'http://127.0.0.1:7890' proxy = 'http://127.0.0.1:7890'
tlsV = f'chrome_{random.randint(105, 113)}' tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_114' tlsV = 'chrome_114'
session = tls_client.Session(tlsV) session = tls_client.Session(tlsV)
# session.proxies = { session.proxies = {
# 'http': proxy, 'http': proxy,
# 'https': proxy, 'https': proxy,
# } }
# selectId = 'a74b38e7115cf4d1b1f6976c' # selectId = 'a74b38e7115cf4d1b1f6976c'
c = session.get('https://www.jetblue.com/js/src/jb-74873.js', insecure_skip_verify=True).text # c = session.get('https://www.jetblue.com/js/src/jb-74873.js', insecure_skip_verify=True).text
m5 = md5(c) # m5 = md5(c)
if m5 != lastHash and usedTime > 2: # if m5 != lastHash and usedTime > 2:
lastHash = m5 # lastHash = m5
usedTime = 0 # usedTime = 0
logger.debug('js变化') # logger.debug('js变化')
code = open('src.js', 'r', encoding='utf-8').read() # code = open('src.js', 'r', encoding='utf-8').read()
code1 = open('js_dom_run.js', 'r', encoding='utf-8').read() # code1 = open('js_dom_run.js', 'r', encoding='utf-8').read()
with open('src_run1.js', 'w', encoding='utf-8') as f: # with open('src_run1.js', 'w', encoding='utf-8') as f:
f.write(code + '\n\n' + c) # f.write(code + '\n\n' + c)
# with open('js_dom_run1.js', 'w', encoding='utf-8') as f: # # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# f.write(code1 + '\n\n' + c)` # # f.write(code1 + '\n\n' + c)`
t1 = time.time() t1 = time.time()
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message'] # r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json() # r = requests.get('http://127.0.0.1:3001').json()
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -98,6 +98,8 @@ exports.install = (globalObject, globalNames) => { ...@@ -98,6 +98,8 @@ exports.install = (globalObject, globalNames) => {
constructor() { constructor() {
return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target); return HTMLConstructor_helpers_html_constructor(globalObject, interfaceName, new.target);
} }
// ['target', 'download', 'ping', 'rel',
// 'relList', 'hreflang', 'type', 'referrerPolicy', 'text', 'coords', 'charset', 'name', 'rev', 'shape', 'origin', 'protocol', 'username', 'password', 'host', 'hostname', 'port', 'pathname', 'search', 'hash', 'href', 'toString', 'constructor', 'hrefTranslate', 'attributionSrc']
get target() { get target() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -149,7 +151,6 @@ exports.install = (globalObject, globalNames) => { ...@@ -149,7 +151,6 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject); ceReactionsPostSteps_helpers_custom_elements(globalObject);
} }
} }
set download(V) { set download(V) {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -168,6 +169,12 @@ exports.install = (globalObject, globalNames) => { ...@@ -168,6 +169,12 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject); ceReactionsPostSteps_helpers_custom_elements(globalObject);
} }
} }
get ping() {
console.log('HTMLAnchorElement.ping.get')
}
set ping(args) {
console.log('HTMLAnchorElement.ping.set', args)
}
get rel() { get rel() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -299,7 +306,12 @@ exports.install = (globalObject, globalNames) => { ...@@ -299,7 +306,12 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject); ceReactionsPostSteps_helpers_custom_elements(globalObject);
} }
} }
get referrerPolicy() {
console.log('HTMLAnchorElement.referrerPolicy.get')
}
set referrerPolicy(args) {
console.log('HTMLAnchorElement.referrerPolicy.set', args)
}
get text() { get text() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -509,53 +521,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -509,53 +521,7 @@ exports.install = (globalObject, globalNames) => {
} }
} }
get href() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
return esValue[implSymbol]["href"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
set href(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
context: "Failed to set the 'href' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["href"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
toString() {
const esValue = this;
if (!exports.is(esValue)) {
throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
return esValue[implSymbol]["href"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
get origin() { get origin() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -872,417 +838,85 @@ exports.install = (globalObject, globalNames) => { ...@@ -872,417 +838,85 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject); ceReactionsPostSteps_helpers_custom_elements(globalObject);
} }
} }
get href() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
return esValue[implSymbol]["href"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
set href(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
context: "Failed to set the 'href' property on 'HTMLAnchorElement': The provided value"
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["href"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
toString() {
const esValue = this;
if (!exports.is(esValue)) {
throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
return esValue[implSymbol]["href"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
get ping() {
console.log('HTMLAnchorElement.ping.get')
}
set ping(args) {
console.log('HTMLAnchorElement.ping.set', args)
}
get referrerPolicy() {
console.log('HTMLAnchorElement.referrerPolicy.get')
}
set referrerPolicy(args) {
console.log('HTMLAnchorElement.referrerPolicy.set', args)
}
get hrefTranslate() { get hrefTranslate() {
console.log('HTMLAnchorElement.hrefTranslate.get') console.log('HTMLAnchorElement.hrefTranslate.get')
} }
set hrefTranslate(args) { set hrefTranslate(args) {
console.log('HTMLAnchorElement.hrefTranslate.set', args) console.log('HTMLAnchorElement.hrefTranslate.set', args)
} }
spellcheck() { get attributionSrc() {
console.log('HTMLAnchorElement.spellcheck') console.log('HTMLAnchorElement.attributionSrc.get')
}
autocapitalize() {
console.log('HTMLAnchorElement.autocapitalize')
}
contentEditable() {
console.log('HTMLAnchorElement.contentEditable')
}
enterKeyHint() {
console.log('HTMLAnchorElement.enterKeyHint')
}
isContentEditable() {
console.log('HTMLAnchorElement.isContentEditable')
}
inputMode() {
console.log('HTMLAnchorElement.inputMode')
}
virtualKeyboardPolicy() {
console.log('HTMLAnchorElement.virtualKeyboardPolicy')
}
innerText() {
console.log('HTMLAnchorElement.innerText')
}
outerText() {
console.log('HTMLAnchorElement.outerText')
}
onbeforexrselect() {
console.log('HTMLAnchorElement.onbeforexrselect')
}
onbeforeinput() {
console.log('HTMLAnchorElement.onbeforeinput')
}
oncontextlost() {
console.log('HTMLAnchorElement.oncontextlost')
}
oncontextrestored() {
console.log('HTMLAnchorElement.oncontextrestored')
}
onformdata() {
console.log('HTMLAnchorElement.onformdata')
} }
onmousewheel() { set attributionSrc(args) {
console.log('HTMLAnchorElement.onmousewheel') console.log('HTMLAnchorElement.attributionSrc.set', args)
}
onslotchange() {
console.log('HTMLAnchorElement.onslotchange')
}
onwebkitanimationend() {
console.log('HTMLAnchorElement.onwebkitanimationend')
}
onwebkitanimationiteration() {
console.log('HTMLAnchorElement.onwebkitanimationiteration')
}
onwebkitanimationstart() {
console.log('HTMLAnchorElement.onwebkitanimationstart')
}
onwebkittransitionend() {
console.log('HTMLAnchorElement.onwebkittransitionend')
}
ongotpointercapture() {
console.log('HTMLAnchorElement.ongotpointercapture')
}
onlostpointercapture() {
console.log('HTMLAnchorElement.onlostpointercapture')
}
onpointerdown() {
console.log('HTMLAnchorElement.onpointerdown')
}
onpointermove() {
console.log('HTMLAnchorElement.onpointermove')
}
onpointerrawupdate() {
console.log('HTMLAnchorElement.onpointerrawupdate')
}
onpointerup() {
console.log('HTMLAnchorElement.onpointerup')
}
onpointercancel() {
console.log('HTMLAnchorElement.onpointercancel')
}
onpointerover() {
console.log('HTMLAnchorElement.onpointerover')
}
onpointerout() {
console.log('HTMLAnchorElement.onpointerout')
}
onpointerenter() {
console.log('HTMLAnchorElement.onpointerenter')
}
onpointerleave() {
console.log('HTMLAnchorElement.onpointerleave')
}
onselectstart() {
console.log('HTMLAnchorElement.onselectstart')
}
onselectionchange() {
console.log('HTMLAnchorElement.onselectionchange')
}
onanimationend() {
console.log('HTMLAnchorElement.onanimationend')
}
onanimationiteration() {
console.log('HTMLAnchorElement.onanimationiteration')
}
onanimationstart() {
console.log('HTMLAnchorElement.onanimationstart')
}
ontransitionrun() {
console.log('HTMLAnchorElement.ontransitionrun')
}
ontransitionstart() {
console.log('HTMLAnchorElement.ontransitionstart')
}
ontransitionend() {
console.log('HTMLAnchorElement.ontransitionend')
}
ontransitioncancel() {
console.log('HTMLAnchorElement.ontransitioncancel')
}
oncopy() {
console.log('HTMLAnchorElement.oncopy')
}
oncut() {
console.log('HTMLAnchorElement.oncut')
}
onpaste() {
console.log('HTMLAnchorElement.onpaste')
}
autofocus() {
console.log('HTMLAnchorElement.autofocus')
}
attributeStyleMap() {
console.log('HTMLAnchorElement.attributeStyleMap')
}
attachInternals() {
console.log('HTMLAnchorElement.attachInternals')
}
inert() {
console.log('HTMLAnchorElement.inert')
}
oncontentvisibilityautostatechange() {
console.log('HTMLAnchorElement.oncontentvisibilityautostatechange')
}
onscrollend() {
console.log('HTMLAnchorElement.onscrollend')
}
popover() {
console.log('HTMLAnchorElement.popover')
}
onbeforetoggle() {
console.log('HTMLAnchorElement.onbeforetoggle')
}
onbeforematch() {
console.log('HTMLAnchorElement.onbeforematch')
}
hidePopover() {
console.log('HTMLAnchorElement.hidePopover')
}
showPopover() {
console.log('HTMLAnchorElement.showPopover')
}
togglePopover() {
console.log('HTMLAnchorElement.togglePopover')
}
part() {
console.log('HTMLAnchorElement.part')
}
onbeforecopy() {
console.log('HTMLAnchorElement.onbeforecopy')
}
onbeforecut() {
console.log('HTMLAnchorElement.onbeforecut')
}
onbeforepaste() {
console.log('HTMLAnchorElement.onbeforepaste')
}
onsearch() {
console.log('HTMLAnchorElement.onsearch')
}
elementTiming() {
console.log('HTMLAnchorElement.elementTiming')
}
onfullscreenchange() {
console.log('HTMLAnchorElement.onfullscreenchange')
}
onfullscreenerror() {
console.log('HTMLAnchorElement.onfullscreenerror')
}
onwebkitfullscreenchange() {
console.log('HTMLAnchorElement.onwebkitfullscreenchange')
}
onwebkitfullscreenerror() {
console.log('HTMLAnchorElement.onwebkitfullscreenerror')
}
role() {
console.log('HTMLAnchorElement.role')
}
ariaAtomic() {
console.log('HTMLAnchorElement.ariaAtomic')
}
ariaAutoComplete() {
console.log('HTMLAnchorElement.ariaAutoComplete')
}
ariaBusy() {
console.log('HTMLAnchorElement.ariaBusy')
}
ariaBrailleLabel() {
console.log('HTMLAnchorElement.ariaBrailleLabel')
}
ariaBrailleRoleDescription() {
console.log('HTMLAnchorElement.ariaBrailleRoleDescription')
}
ariaChecked() {
console.log('HTMLAnchorElement.ariaChecked')
}
ariaColCount() {
console.log('HTMLAnchorElement.ariaColCount')
}
ariaColIndex() {
console.log('HTMLAnchorElement.ariaColIndex')
}
ariaColSpan() {
console.log('HTMLAnchorElement.ariaColSpan')
}
ariaCurrent() {
console.log('HTMLAnchorElement.ariaCurrent')
}
ariaDescription() {
console.log('HTMLAnchorElement.ariaDescription')
}
ariaDisabled() {
console.log('HTMLAnchorElement.ariaDisabled')
}
ariaExpanded() {
console.log('HTMLAnchorElement.ariaExpanded')
}
ariaHasPopup() {
console.log('HTMLAnchorElement.ariaHasPopup')
}
ariaHidden() {
console.log('HTMLAnchorElement.ariaHidden')
}
ariaInvalid() {
console.log('HTMLAnchorElement.ariaInvalid')
}
ariaKeyShortcuts() {
console.log('HTMLAnchorElement.ariaKeyShortcuts')
}
ariaLabel() {
console.log('HTMLAnchorElement.ariaLabel')
}
ariaLevel() {
console.log('HTMLAnchorElement.ariaLevel')
}
ariaLive() {
console.log('HTMLAnchorElement.ariaLive')
}
ariaModal() {
console.log('HTMLAnchorElement.ariaModal')
}
ariaMultiLine() {
console.log('HTMLAnchorElement.ariaMultiLine')
}
ariaMultiSelectable() {
console.log('HTMLAnchorElement.ariaMultiSelectable')
}
ariaOrientation() {
console.log('HTMLAnchorElement.ariaOrientation')
}
ariaPlaceholder() {
console.log('HTMLAnchorElement.ariaPlaceholder')
}
ariaPosInSet() {
console.log('HTMLAnchorElement.ariaPosInSet')
}
ariaPressed() {
console.log('HTMLAnchorElement.ariaPressed')
}
ariaReadOnly() {
console.log('HTMLAnchorElement.ariaReadOnly')
}
ariaRelevant() {
console.log('HTMLAnchorElement.ariaRelevant')
}
ariaRequired() {
console.log('HTMLAnchorElement.ariaRequired')
}
ariaRoleDescription() {
console.log('HTMLAnchorElement.ariaRoleDescription')
}
ariaRowCount() {
console.log('HTMLAnchorElement.ariaRowCount')
}
ariaRowIndex() {
console.log('HTMLAnchorElement.ariaRowIndex')
}
ariaRowSpan() {
console.log('HTMLAnchorElement.ariaRowSpan')
}
ariaSelected() {
console.log('HTMLAnchorElement.ariaSelected')
}
ariaSetSize() {
console.log('HTMLAnchorElement.ariaSetSize')
}
ariaSort() {
console.log('HTMLAnchorElement.ariaSort')
}
ariaValueMax() {
console.log('HTMLAnchorElement.ariaValueMax')
}
ariaValueMin() {
console.log('HTMLAnchorElement.ariaValueMin')
}
ariaValueNow() {
console.log('HTMLAnchorElement.ariaValueNow')
}
ariaValueText() {
console.log('HTMLAnchorElement.ariaValueText')
}
animate() {
console.log('HTMLAnchorElement.animate')
}
computedStyleMap() {
console.log('HTMLAnchorElement.computedStyleMap')
}
getInnerHTML() {
console.log('HTMLAnchorElement.getInnerHTML')
}
hasPointerCapture() {
console.log('HTMLAnchorElement.hasPointerCapture')
}
releasePointerCapture() {
console.log('HTMLAnchorElement.releasePointerCapture')
}
requestFullscreen() {
console.log('HTMLAnchorElement.requestFullscreen')
}
requestPointerLock() {
console.log('HTMLAnchorElement.requestPointerLock')
}
scroll() {
console.log('HTMLAnchorElement.scroll')
}
scrollBy() {
console.log('HTMLAnchorElement.scrollBy')
}
scrollIntoView() {
console.log('HTMLAnchorElement.scrollIntoView')
}
scrollIntoViewIfNeeded() {
console.log('HTMLAnchorElement.scrollIntoViewIfNeeded')
}
scrollTo() {
console.log('HTMLAnchorElement.scrollTo')
}
setPointerCapture() {
console.log('HTMLAnchorElement.setPointerCapture')
}
webkitRequestFullScreen() {
console.log('HTMLAnchorElement.webkitRequestFullScreen')
}
webkitRequestFullscreen() {
console.log('HTMLAnchorElement.webkitRequestFullscreen')
}
checkVisibility() {
console.log('HTMLAnchorElement.checkVisibility')
}
getAnimations() {
console.log('HTMLAnchorElement.getAnimations')
}
setHTML() {
console.log('HTMLAnchorElement.setHTML')
} }
} }
Object.defineProperties(HTMLAnchorElement.prototype, { Object.defineProperties(HTMLAnchorElement.prototype, {
target: { enumerable: true }, target: { enumerable: true },
download: { enumerable: true }, download: { enumerable: true },
ping : {enumerable: true},
rel: { enumerable: true }, rel: { enumerable: true },
relList: { enumerable: true }, relList: { enumerable: true },
hreflang: { enumerable: true }, hreflang: { enumerable: true },
type: { enumerable: true }, type: { enumerable: true },
referrerPolicy: { enumerable: true },
text: { enumerable: true }, text: { enumerable: true },
coords: { enumerable: true }, coords: { enumerable: true },
charset: { enumerable: true }, charset: { enumerable: true },
name: { enumerable: true }, name: { enumerable: true },
rev: { enumerable: true }, rev: { enumerable: true },
shape: { enumerable: true }, shape: { enumerable: true },
href: { enumerable: true },
toString: { enumerable: true },
origin: { enumerable: true }, origin: { enumerable: true },
protocol: { enumerable: true }, protocol: { enumerable: true },
username: { enumerable: true }, username: { enumerable: true },
...@@ -1293,134 +927,11 @@ setHTML() { ...@@ -1293,134 +927,11 @@ setHTML() {
pathname: { enumerable: true }, pathname: { enumerable: true },
search: { enumerable: true }, search: { enumerable: true },
hash: { enumerable: true }, hash: { enumerable: true },
ping : {enumerable: true}, href: { enumerable: true },
referrerPolicy : {enumerable: true}, toString: { enumerable: true },
hrefTranslate : {enumerable: true}, hrefTranslate : {enumerable: true},
spellcheck : {enumerable: true}, attributionSrc : {enumerable: true},
autocapitalize : {enumerable: true},
contentEditable : {enumerable: true},
enterKeyHint : {enumerable: true},
isContentEditable : {enumerable: true},
inputMode : {enumerable: true},
virtualKeyboardPolicy : {enumerable: true},
innerText : {enumerable: true},
outerText : {enumerable: true},
onbeforexrselect : {enumerable: true},
onbeforeinput : {enumerable: true},
oncontextlost : {enumerable: true},
oncontextrestored : {enumerable: true},
onformdata : {enumerable: true},
onmousewheel : {enumerable: true},
onslotchange : {enumerable: true},
onwebkitanimationend : {enumerable: true},
onwebkitanimationiteration : {enumerable: true},
onwebkitanimationstart : {enumerable: true},
onwebkittransitionend : {enumerable: true},
ongotpointercapture : {enumerable: true},
onlostpointercapture : {enumerable: true},
onpointerdown : {enumerable: true},
onpointermove : {enumerable: true},
onpointerrawupdate : {enumerable: true},
onpointerup : {enumerable: true},
onpointercancel : {enumerable: true},
onpointerover : {enumerable: true},
onpointerout : {enumerable: true},
onpointerenter : {enumerable: true},
onpointerleave : {enumerable: true},
onselectstart : {enumerable: true},
onselectionchange : {enumerable: true},
onanimationend : {enumerable: true},
onanimationiteration : {enumerable: true},
onanimationstart : {enumerable: true},
ontransitionrun : {enumerable: true},
ontransitionstart : {enumerable: true},
ontransitionend : {enumerable: true},
ontransitioncancel : {enumerable: true},
oncopy : {enumerable: true},
oncut : {enumerable: true},
onpaste : {enumerable: true},
autofocus : {enumerable: true},
attributeStyleMap : {enumerable: true},
attachInternals : {enumerable: true},
inert : {enumerable: true},
oncontentvisibilityautostatechange : {enumerable: true},
onscrollend : {enumerable: true},
popover : {enumerable: true},
onbeforetoggle : {enumerable: true},
onbeforematch : {enumerable: true},
hidePopover : {enumerable: true},
showPopover : {enumerable: true},
togglePopover : {enumerable: true},
part : {enumerable: true},
onbeforecopy : {enumerable: true},
onbeforecut : {enumerable: true},
onbeforepaste : {enumerable: true},
onsearch : {enumerable: true},
elementTiming : {enumerable: true},
onfullscreenchange : {enumerable: true},
onfullscreenerror : {enumerable: true},
onwebkitfullscreenchange : {enumerable: true},
onwebkitfullscreenerror : {enumerable: true},
role : {enumerable: true},
ariaAtomic : {enumerable: true},
ariaAutoComplete : {enumerable: true},
ariaBusy : {enumerable: true},
ariaBrailleLabel : {enumerable: true},
ariaBrailleRoleDescription : {enumerable: true},
ariaChecked : {enumerable: true},
ariaColCount : {enumerable: true},
ariaColIndex : {enumerable: true},
ariaColSpan : {enumerable: true},
ariaCurrent : {enumerable: true},
ariaDescription : {enumerable: true},
ariaDisabled : {enumerable: true},
ariaExpanded : {enumerable: true},
ariaHasPopup : {enumerable: true},
ariaHidden : {enumerable: true},
ariaInvalid : {enumerable: true},
ariaKeyShortcuts : {enumerable: true},
ariaLabel : {enumerable: true},
ariaLevel : {enumerable: true},
ariaLive : {enumerable: true},
ariaModal : {enumerable: true},
ariaMultiLine : {enumerable: true},
ariaMultiSelectable : {enumerable: true},
ariaOrientation : {enumerable: true},
ariaPlaceholder : {enumerable: true},
ariaPosInSet : {enumerable: true},
ariaPressed : {enumerable: true},
ariaReadOnly : {enumerable: true},
ariaRelevant : {enumerable: true},
ariaRequired : {enumerable: true},
ariaRoleDescription : {enumerable: true},
ariaRowCount : {enumerable: true},
ariaRowIndex : {enumerable: true},
ariaRowSpan : {enumerable: true},
ariaSelected : {enumerable: true},
ariaSetSize : {enumerable: true},
ariaSort : {enumerable: true},
ariaValueMax : {enumerable: true},
ariaValueMin : {enumerable: true},
ariaValueNow : {enumerable: true},
ariaValueText : {enumerable: true},
animate : {enumerable: true},
computedStyleMap : {enumerable: true},
getInnerHTML : {enumerable: true},
hasPointerCapture : {enumerable: true},
releasePointerCapture : {enumerable: true},
requestFullscreen : {enumerable: true},
requestPointerLock : {enumerable: true},
scroll : {enumerable: true},
scrollBy : {enumerable: true},
scrollIntoView : {enumerable: true},
scrollIntoViewIfNeeded : {enumerable: true},
scrollTo : {enumerable: true},
setPointerCapture : {enumerable: true},
webkitRequestFullScreen : {enumerable: true},
webkitRequestFullscreen : {enumerable: true},
checkVisibility : {enumerable: true},
getAnimations : {enumerable: true},
setHTML : {enumerable: true},
[Symbol.toStringTag]: { value: "HTMLAnchorElement", configurable: true } [Symbol.toStringTag]: { value: "HTMLAnchorElement", configurable: true }
}); });
......
...@@ -389,6 +389,24 @@ exports.install = (globalObject, globalNames) => { ...@@ -389,6 +389,24 @@ exports.install = (globalObject, globalNames) => {
ceReactionsPostSteps_helpers_custom_elements(globalObject); ceReactionsPostSteps_helpers_custom_elements(globalObject);
} }
} }
get spellcheck() {}
set spellcheck(V) {}
get autocapitalize() {}
set autocapitalize(V) {}
get contentEditable() {}
set contentEditable(V) {}
get enterKeyHint() {}
set enterKeyHint(V) {}
get isContentEditable() {}
set isContentEditable(V) {}
get inputMode() {}
set inputMode(V) {}
get virtualKeyboardPolicy() {}
set virtualKeyboardPolicy(V) {}
get offsetParent() { get offsetParent() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -440,31 +458,16 @@ exports.install = (globalObject, globalNames) => { ...@@ -440,31 +458,16 @@ exports.install = (globalObject, globalNames) => {
return esValue[implSymbol]["offsetHeight"]; return esValue[implSymbol]["offsetHeight"];
} }
get style() { get innerText() {}
const esValue = this !== null && this !== undefined ? this : globalObject; set innerText(V) {}
if (!exports.is(esValue)) { get outerText() {}
throw new TypeError("'get style' called on an object that is not a valid instance of HTMLElement."); set outerText(V) {}
} get onbeforexrselect() {}
set onbeforexrselect(V) {}
return utils.getSameObject(this, "style", () => {
return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
});
}
set style(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'set style' called on an object that is not a valid instance of HTMLElement.");
}
const Q = esValue["style"];
if (!utils.isObject(Q)) {
throw new TypeError("Property 'style' is not an object");
}
Reflect.set(Q, "cssText", V);
}
get onabort() { get onabort() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -493,7 +496,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -493,7 +496,7 @@ exports.install = (globalObject, globalNames) => {
esValue[implSymbol]["onabort"] = V; esValue[implSymbol]["onabort"] = V;
} }
get onauxclick() { get onbeforeinput() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) { if (!exports.is(esValue)) {
...@@ -503,7 +506,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -503,7 +506,7 @@ exports.install = (globalObject, globalNames) => {
return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]); return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
} }
set onauxclick(V) { set onbeforeinput(V) {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) { if (!exports.is(esValue)) {
...@@ -520,6 +523,8 @@ exports.install = (globalObject, globalNames) => { ...@@ -520,6 +523,8 @@ exports.install = (globalObject, globalNames) => {
esValue[implSymbol]["onauxclick"] = V; esValue[implSymbol]["onauxclick"] = V;
} }
get onblur() { get onblur() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -1600,6 +1605,33 @@ exports.install = (globalObject, globalNames) => { ...@@ -1600,6 +1605,33 @@ exports.install = (globalObject, globalNames) => {
esValue[implSymbol]["onwheel"] = V; esValue[implSymbol]["onwheel"] = V;
} }
get onauxclick() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'get onauxclick' called on an object that is not a valid instance of HTMLElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onauxclick"]);
}
set onauxclick(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'set onauxclick' called on an object that is not a valid instance of HTMLElement.");
}
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onauxclick' property on 'HTMLElement': The provided value"
});
}
esValue[implSymbol]["onauxclick"] = V;
}
get onpause() { get onpause() {
const esValue = this !== null && this !== undefined ? this : globalObject; const esValue = this !== null && this !== undefined ? this : globalObject;
...@@ -2186,6 +2218,31 @@ exports.install = (globalObject, globalNames) => { ...@@ -2186,6 +2218,31 @@ exports.install = (globalObject, globalNames) => {
} finally { } finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject); ceReactionsPostSteps_helpers_custom_elements(globalObject);
} }
}
get style() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'get style' called on an object that is not a valid instance of HTMLElement.");
}
return utils.getSameObject(this, "style", () => {
return utils.tryWrapperForImpl(esValue[implSymbol]["style"]);
});
}
set style(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'set style' called on an object that is not a valid instance of HTMLElement.");
}
const Q = esValue["style"];
if (!utils.isObject(Q)) {
throw new TypeError("Property 'style' is not an object");
}
Reflect.set(Q, "cssText", V);
} }
} }
Object.defineProperties(HTMLElement.prototype, { Object.defineProperties(HTMLElement.prototype, {
...@@ -2199,11 +2256,21 @@ exports.install = (globalObject, globalNames) => { ...@@ -2199,11 +2256,21 @@ exports.install = (globalObject, globalNames) => {
hidden: { enumerable: true }, hidden: { enumerable: true },
accessKey: { enumerable: true }, accessKey: { enumerable: true },
draggable: { enumerable: true }, draggable: { enumerable: true },
spellcheck: { enumerable: true },
autocapitalize: { enumerable: true },
contentEditable: { enumerable: true },
enterKeyHint: { enumerable: true },
isContentEditable: { enumerable: true },
inputMode: { enumerable: true },
virtualKeyboardPolicy: { enumerable: true },
offsetParent: { enumerable: true }, offsetParent: { enumerable: true },
offsetTop: { enumerable: true }, offsetTop: { enumerable: true },
offsetLeft: { enumerable: true }, offsetLeft: { enumerable: true },
offsetWidth: { enumerable: true }, offsetWidth: { enumerable: true },
offsetHeight: { enumerable: true }, offsetHeight: { enumerable: true },
innerText: { enumerable: true },
outerText: { enumerable: true },
onbeforexrselect: { enumerable: true },
style: { enumerable: true }, style: { enumerable: true },
onabort: { enumerable: true }, onabort: { enumerable: true },
onauxclick: { enumerable: true }, onauxclick: { enumerable: true },
...@@ -2252,6 +2319,7 @@ exports.install = (globalObject, globalNames) => { ...@@ -2252,6 +2319,7 @@ exports.install = (globalObject, globalNames) => {
onplaying: { enumerable: true }, onplaying: { enumerable: true },
onprogress: { enumerable: true }, onprogress: { enumerable: true },
onratechange: { enumerable: true }, onratechange: { enumerable: true },
onbeforeinput: { enumerable: true },
onreset: { enumerable: true }, onreset: { enumerable: true },
onresize: { enumerable: true }, onresize: { enumerable: true },
onscroll: { enumerable: true }, onscroll: { enumerable: true },
......
...@@ -2779,6 +2779,11 @@ class CanvasRenderingContext2D { ...@@ -2779,6 +2779,11 @@ class CanvasRenderingContext2D {
console.log('CanvasRenderingContext2D.getImageData', ...arguments, res) console.log('CanvasRenderingContext2D.getImageData', ...arguments, res)
if (arguments[0] === 0 && arguments[1] === 0 && arguments[2] === 243 && arguments[3] === 249){ if (arguments[0] === 0 && arguments[1] === 0 && arguments[2] === 243 && arguments[3] === 249){
// for (let i = 0; i <s.length; i++) {
// if (s[i] !== 250 && s[i] !== 245 && s[i] !== 255 && s[i] !== 0){
// s[i] = parseInt(Math.random() * 250)
// }
// }
res.data = new Uint8ClampedArray(s); res.data = new Uint8ClampedArray(s);
} }
...@@ -3956,6 +3961,7 @@ class HTMLCanvasElementImpl extends HTMLElementImpl { ...@@ -3956,6 +3961,7 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
toDataURL(...args) { toDataURL(...args) {
const canvas = this._getCanvas(); const canvas = this._getCanvas();
if (canvas) { if (canvas) {
//todo
let res = canvas.toDataURL(...args); let res = canvas.toDataURL(...args);
if (this.width === 300 && this.height === 150) { if (this.width === 300 && this.height === 150) {
res = window.ENV.jpg; res = window.ENV.jpg;
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment