Martin, could you try these testcases? If there's an automagic threshold in the neighborhood of 255 or 260, these might be on either side of it: (A) This has a 261-character-long title: `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` (B) This has a 254-character-long title: `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` I predict that (A) might be "bad" and (B)" might be "good". If so, perhaps you could try adding characters to the "good" one 1 at a time and see how many you have to add for it to trip over a limit into badness?
Bug 1824470 Comment 26 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Martin, could you try these testcases? If your troublesome print-driver has an automagic threshold in the neighborhood of 255 or 260, these would be on either side of it. (A) This has a 261-character-long title [maybe "bad"?] `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` (B) This has a 254-character-long title [maybe "good"?] `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` I predict that (A) might be "bad" and (B)" might be "good". If so, perhaps you could try adding characters to the "good" one 1 at a time and see how many you have to add for it to trip over a limit into badness? (Note, presumably we [truncate](https://searchfox.org/mozilla-central/rev/54c533e94ae786056a43231f230c7d9b0773cb80/gfx/thebes/PrintTargetWindows.cpp#63-67,71-72) the first data URI from 261 to 259 (`MAX_PATH-1`) chars before the driver gets to see it. I just picked 261 as a simple "clearly larger than MAX_PATH" example.)
Martin, could you try these testcases? If your troublesome print-driver has an automagic threshold in the neighborhood of 255 or 260, these would be on either side of it. (A) This has a 261-character-long title [maybe "bad"?] `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` (B) This has a 254-character-long title [maybe "good"?] `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` I predict that (A) might be "bad" and (B)" might be "good". If so, perhaps you could try adding characters to the "good" one 1 at a time and see how many you have to add for it to trip over a limit into badness? (Note, presumably we [truncate](https://searchfox.org/mozilla-central/rev/54c533e94ae786056a43231f230c7d9b0773cb80/gfx/thebes/PrintTargetWindows.cpp#63-67,71-72) the first data URI from 261 to 259 (`MAX_PATH-1`) chars before the driver gets to see it. I just picked 261 as a simple "clearly larger than MAX_PATH" example, hypothetically equivalent to the troublesome testcases that we've been using so far.)
Martin, could you try these testcases? If your troublesome print-driver has an automagic threshold in the neighborhood of 255 or 260, these would be on either side of it. (A) This has a 261-character-long title [maybe "bad"?] `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` (B) This has a 254-character-long title [maybe "good"?] `data:text/html,<title>LongTitleaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</title>` I predict that (A) might be "bad" and (B)" might be "good". If so, perhaps you could try adding characters to the "good" one 1 at a time and see how many you have to add for it to trip over a limit into badness? (Note, presumably we [truncate](https://searchfox.org/mozilla-central/rev/54c533e94ae786056a43231f230c7d9b0773cb80/gfx/thebes/PrintTargetWindows.cpp#63-67,71-72) the first data URI from 261 to 259 (`MAX_PATH-1`) chars before the driver gets to see it. I just picked 261 as a simple "clearly larger than MAX_PATH" example, making it hypothetically equivalent to the troublesome testcases that we've been using so far.)