CMB / edbrowse

A command-line editor and web browser.
Other
340 stars 31 forks source link

Infinite loop on Amazon.com #63

Open markus1189 opened 3 years ago

markus1189 commented 3 years ago

edbrowse runs into an infinite loop on https://amazon.com. is there anything I can do to fix this or help fixing it?

To reproduce, I did the following:

$ edbrowse -v
3.7.7
$ edbrowse
edbrowse ready                                                                                            
nojs = amazon.com                                                                                                     
?                
db4                                                                                                       

?                                                                                                         
b www.amazon.com

And here is the trail of the output, including the loop at the end:

...
parse under div 4409
line 9 column 1 - Warning: missing </a> before <div>
line 11 column 1 - Warning: discarding unexpected </a>
line 12 column 159 - Warning: unescaped & or unknown entity "&openid.return_to"
line 12 column 273 - Warning: unescaped & or unknown entity "&openid.identity"
line 12 column 352 - Warning: unescaped & or unknown entity "&openid.assoc_handle"
line 12 column 379 - Warning: unescaped & or unknown entity "&openid.mode"
line 12 column 405 - Warning: unescaped & or unknown entity "&openid.claimed_id"
line 12 column 486 - Warning: unescaped & or unknown entity "&openid.ns"
line 12 column 540 - Warning: unescaped & or unknown entity "&ref_"
line 12 column 1 - Warning: missing </a> before <div>
line 23 column 1 - Warning: discarding unexpected </a>
line 29 column 82 - Warning: missing </a> before <div>
line 29 column 225 - Warning: discarding unexpected </a>
line 29 column 238 - Warning: missing </a> before <div>
line 29 column 393 - Warning: discarding unexpected </a>
line 29 column 406 - Warning: missing </a> before <div>
line 29 column 557 - Warning: discarding unexpected </a>
line 29 column 673 - Warning: missing </a> before <div>
line 29 column 815 - Warning: discarding unexpected </a>
line 29 column 828 - Warning: missing </a> before <div>
line 29 column 968 - Warning: discarding unexpected </a>
line 29 column 981 - Warning: missing </a> before <div>
line 29 column 1122 - Warning: discarding unexpected </a>
line 29 column 1135 - Warning: missing </a> before <div>
line 29 column 1279 - Warning: discarding unexpected </a>
line 29 column 1288 - Warning: missing <li>
line 29 column 1374 - Warning: missing </a> before <div>
line 29 column 1528 - Warning: discarding unexpected </a>
line 29 column 1541 - Warning: missing </a> before <div>
line 29 column 1690 - Warning: discarding unexpected </a>
line 29 column 1703 - Warning: missing </a> before <div>
line 29 column 1872 - Warning: discarding unexpected </a>
line 29 column 1885 - Warning: missing </a> before <div>
line 29 column 2045 - Warning: discarding unexpected </a>
line 29 column 2058 - Warning: missing </a> before <div>
line 29 column 2216 - Warning: discarding unexpected </a>
line 29 column 2229 - Warning: missing </a> before <div>
line 29 column 2388 - Warning: discarding unexpected </a>
line 29 column 2401 - Warning: missing </a> before <div>
line 29 column 2559 - Warning: discarding unexpected </a>
line 29 column 2572 - Warning: missing </a> before <div>
line 29 column 2737 - Warning: discarding unexpected </a>
line 29 column 2750 - Warning: missing </a> before <div>
line 29 column 2911 - Warning: discarding unexpected </a>
line 29 column 2924 - Warning: missing </a> before <div>
line 29 column 3094 - Warning: discarding unexpected </a>
line 29 column 3107 - Warning: missing </a> before <div>
line 29 column 3259 - Warning: discarding unexpected </a>
line 29 column 3272 - Warning: missing </a> before <div>
line 29 column 3436 - Warning: discarding unexpected </a>
line 29 column 3449 - Warning: missing </a> before <div>
line 29 column 3606 - Warning: discarding unexpected </a>
line 29 column 3619 - Warning: missing </a> before <div>
line 29 column 3772 - Warning: discarding unexpected </a>
line 29 column 3785 - Warning: missing </a> before <div>
line 29 column 3949 - Warning: discarding unexpected </a>
line 29 column 3962 - Warning: missing </a> before <div>
line 29 column 4131 - Warning: discarding unexpected </a>
line 29 column 4144 - Warning: missing </a> before <div>
line 29 column 4303 - Warning: discarding unexpected </a>
line 29 column 4316 - Warning: missing </a> before <div>
line 29 column 4472 - Warning: discarding unexpected </a>
line 29 column 4490 - Warning: missing </a> before <div>
line 29 column 4602 - Warning: discarding unexpected </a>
line 29 column 4606 - Warning: missing </a> before <div>
line 29 column 4717 - Warning: discarding unexpected </a>
line 29 column 4834 - Warning: missing </a> before <div>
line 29 column 4977 - Warning: discarding unexpected </a>
line 29 column 5092 - Warning: missing </a> before <div>
line 29 column 5236 - Warning: discarding unexpected </a>
line 29 column 5249 - Warning: missing </a> before <div>
line 29 column 5404 - Warning: discarding unexpected </a>
line 29 column 5413 - Warning: missing <li>
line 29 column 5657 - Warning: unescaped & or unknown entity "&ref_"
line 29 column 5758 - Warning: missing </a> before <div>
line 29 column 5870 - Warning: discarding unexpected </a>
line 29 column 5874 - Warning: missing </a> before <div>
line 29 column 5985 - Warning: discarding unexpected </a>
line 29 column 6386 - Warning: unescaped & or unknown entity "&ref_"
line 29 column 6311 - Warning: missing </a> before <div>
line 29 column 6575 - Warning: discarding unexpected </a>
line 29 column 6588 - Warning: missing </a> before <div>
line 29 column 6792 - Warning: discarding unexpected </a>
line 29 column 6858 - Warning: unescaped & or unknown entity "&ref_"
line 29 column 7069 - Warning: unescaped & or unknown entity "&openid.claimed_id"
line 29 column 7150 - Warning: unescaped & or unknown entity "&openid.identity"
line 29 column 7229 - Warning: unescaped & or unknown entity "&openid.mode"
line 29 column 7255 - Warning: unescaped & or unknown entity "&openid.ns"
line 29 column 7308 - Warning: unescaped & or unknown entity "&openid.pape.max_auth_age"
line 29 column 7335 - Warning: unescaped & or unknown entity "&openid.return_to"
line 29 column 7450 - Warning: unescaped & or unknown entity "&ref_"
line 33 column 5 - Warning: missing </a> before <div>
line 33 column 131 - Warning: discarding unexpected </a>
line 29 column 82 - Warning: <a> attribute "href" lacks value
line 29 column 238 - Warning: <a> attribute "href" lacks value
line 29 column 406 - Warning: <a> attribute "href" lacks value
line 29 column 673 - Warning: <a> attribute "href" lacks value
line 29 column 828 - Warning: <a> attribute "href" lacks value
line 29 column 981 - Warning: <a> attribute "href" lacks value
line 29 column 1135 - Warning: <a> attribute "href" lacks value
line 29 column 1374 - Warning: <a> attribute "href" lacks value
line 29 column 1541 - Warning: <a> attribute "href" lacks value
line 29 column 1703 - Warning: <a> attribute "href" lacks value
line 29 column 1885 - Warning: <a> attribute "href" lacks value
line 29 column 2058 - Warning: <a> attribute "href" lacks value
line 29 column 2229 - Warning: <a> attribute "href" lacks value
line 29 column 2401 - Warning: <a> attribute "href" lacks value
line 29 column 2572 - Warning: <a> attribute "href" lacks value
line 29 column 2750 - Warning: <a> attribute "href" lacks value
line 29 column 2924 - Warning: <a> attribute "href" lacks value
line 29 column 3107 - Warning: <a> attribute "href" lacks value
line 29 column 3272 - Warning: <a> attribute "href" lacks value
line 29 column 3449 - Warning: <a> attribute "href" lacks value
line 29 column 3619 - Warning: <a> attribute "href" lacks value
line 29 column 3785 - Warning: <a> attribute "href" lacks value
line 29 column 3962 - Warning: <a> attribute "href" lacks value
line 29 column 4144 - Warning: <a> attribute "href" lacks value
line 29 column 4316 - Warning: <a> attribute "href" lacks value
line 29 column 4490 - Warning: <a> attribute "href" lacks value
line 29 column 4606 - Warning: <a> attribute "href" lacks value
line 29 column 4834 - Warning: <a> attribute "href" lacks value
line 29 column 5092 - Warning: <a> attribute "href" lacks value
line 29 column 5249 - Warning: <a> attribute "href" lacks value
line 29 column 5758 - Warning: <a> attribute "href" lacks value
line 29 column 5874 - Warning: <a> attribute "href" lacks value
line 3 column 1 - Warning: <div> proprietary attribute "cel_widget_id"
linkset r|0x2e7a1a8,div 0x2ec9dd8,div 0x0,
linkage, div 4418 removed from div 4409
linkset a|0x2e79c48,#document-fragment 0x2ec9dd8,div 0x0,
linkage, div 4418 linked into #document-fragment 4408
fixup div 4418
linkset r|0x2d7e528,div 0x2d7eb78,script 0x0,
linkage, script 4447 removed from div 4446
linkset a|0x2e79c48,#document-fragment 0x2d7eb78,script 0x0,
linkage, script 4447 linked into #document-fragment 4408
fixup script 4447
linkset r|0x2e79c48,#document-fragment 0x2d7eb78,script 0x0,  <---+
linkage, script 4447 removed from #document-fragment 4408         |
linkset a|0x2e79c48,#document-fragment 0x2d7eb78,script 0x0,      |
linkage, script 4447 linked into #document-fragment 4408          |
fixup script 4447                                                 |
linkset r|0x2e79c48,#document-fragment 0x2d7eb78,script 0x0,  +---+
< endless loop as the arrow indicates >
eklhad commented 3 years ago

Your use of nojs suggests you are trying to disable javascript, but nojs is a .ebrc directive. Use js to toggle javascript on or off, or js- to turn it off. If you turn it off then there is no infinite loop, however, amazon probably won't work at all without it. If it is on, then obviously there is a bug, and we will look into it. It is rather complicated. amazon does something strange to its window.onload function.

Karl Dahlke

markus1189 commented 3 years ago

Thanks for the heads up!

eklhad commented 3 years ago

Sorry for the delay. We have been working on major, one might say seismic, shifts, like switching to a different javascript engine, hopefully in 3.8.0. Somehow, in amongst all that, I believe we fixed the infinite loop issue. For me, amazon home page browses, under duktape js and under quick js, though it is slow to come up, and no clue if one could actually log in or do anything on the site. amazon might be the most complicated website on earth, so I don't know if edbrowse will ever support it. Hope so, some day, as it is a valuable site, particularly during the pandemic, and particularly for the disabled.

Karl Dahlke

markus1189 commented 3 years ago

I understand that, that resolves the issue for me, feel free to close :)

On Thu, Mar 11, 2021, 07:04 eklhad notifications@github.com wrote:

Sorry for the delay. We have been working on major, one might say seismic, shifts, like switching to a different javascript engine, hopefully in 3.8.0. Somehow, in amongst all that, I believe we fixed the infinite loop issue. For me, amazon home page browses, under duktape js and under quick js, though it is slow to come up, and no clue if one could actually log in or do anything on the site. amazon might be the most complicated website on earth, so I don't know if edbrowse will ever support it. Hope so, some day, as it is a valuable site, particularly during the pandemic, and particularly for the disabled.

Karl Dahlke

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CMB/edbrowse/issues/63#issuecomment-796482525, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEQNT4EXQ4R5HR6ZMEAVDTTDBMNRANCNFSM4XIP5PUA .

sylware commented 2 years ago

sad, not too long ago, you could buy and pay (with wallet code) on amazon with a noscript/basic (x)html browsers.

The toxic web guys did manage their way into amazon in the end.

eklhad commented 2 years ago

Yup. In my dream world edbrowse would be powerful enough to manage amazon, but that is the most complicated site I've ever seen.

Karl Dahlke