Closed
Bug 632774
Opened 13 years ago
Closed 13 years ago
generated source bookmarklet fails
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: phiw2, Unassigned)
Details
(Keywords: regression)
bookmarklet from https://www.squarefree.com/bookmarklets/webdevel.html When clicking the bookmarklet (I have it on the BM bar), it returns an html page instead of a plain text page with generated source. ok - 20110201001851 -- changeset: ec378b316279 fails - 2011020200092 --changeset: 113dcfecad64 http://hg.mozilla.org/camino/pushloghtml?fromchange=ec378b316279&tochange=113dcfecad64
Reporter | ||
Comment 1•13 years ago
|
||
bleh :-( partially broken bookmarks file... once I made a fresh bookmark for the bookmarklet, it works correctly.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Comment 2•13 years ago
|
||
What was broken about the original bookmark and/or file? There might be something we need to fix anyway :)
Reporter | ||
Comment 3•13 years ago
|
||
(In reply to comment #2) > What was broken about the original bookmark and/or file? There might be > something we need to fix anyway :) the url I had in the BM file: javascript:(function()%7B%20function%20htmlEscape(s)%7Bs=s.replace(/&/g,'&');s=s.replace(/%3E/g,'%3E');s=s.replace(/%3C/g,'%3C');return%20s;%7D%20x=window.open();%20x.document.write('%3Cpre%3E'%20+%20htmlEscape('%3Chtml%3E%5Cn'%20+%20document.documentElement.innerHTML%20+%20'%5Cn%3C/html%3E'));%20x.document.close();%20%7D)(); The correct url javascript:(function()%7B%20function%20htmlEscape(s)%7Bs=s.replace(/&/g,'&');s=s.replace(/%3E/g,'>');s=s.replace(/%3C/g,'<');return%20s;%7D%20x=window.open();%20x.document.write('%3Cpre%3E'%20+%20htmlEscape('%3Chtml%3E%5Cn'%20+%20document.documentElement.innerHTML%20+%20'%5Cn%3C/html%3E'));%20x.document.close();%20%7D)(); (view that in a code eitor with syntax highlighting) & instead of & %3E instead of > etc. I'm not yet 100% sure, but I think it happens when exporting bookmarks and then importing. Investigating at the moment.
You need to log in
before you can comment on or make changes to this bug.
Description
•