You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task 'ScriptTask' failed at 'Failed to load page URL file:///Users/jack/src/static-suite/stackoverflow/Undo%20the%20last%20Git%20commit?%20-%20Stack%20Overflow.html, error: couldn't open file', dom/htmlbuttonelement.rs:53
@metajack, how do you get to this error? I could reproduce it by letting my shell auto-complete mach run path/to/static-suite/stackoverflow/Undo<tab>
As @jdm suggests, replacing ? with %3F in the file name works around the issue.
Currently, command line arguments are parsed as URLs with the current directory (converted to a file: URL) as the base URL. ? and # have special meaning in URLs (start of query string or fragment identifier.) Instead, we might want to try to parse an absolute URL (without a base), and if that fails assume a filename and convert that.
The question is, how do we want the command line to behave? On my machine, Chromium interpret relative filenames as such, but Firefox seems to be trying to guess an URL out of it with the first component as a domain name, appending .com and prepending www. when resolving fails.
Activity
metajack commentedon Sep 15, 2014
Blocks #3289
jdm commentedon Sep 15, 2014
@SimonSapin Presumably ? should be encoded here before the rest is turned into a query string?
SimonSapin commentedon Sep 16, 2014
@metajack, how do you get to this error? I could reproduce it by letting my shell auto-complete
mach run path/to/static-suite/stackoverflow/Undo<tab>As @jdm suggests, replacing
?with%3Fin the file name works around the issue.Currently, command line arguments are parsed as URLs with the current directory (converted to a
file:URL) as the base URL.?and#have special meaning in URLs (start of query string or fragment identifier.) Instead, we might want to try to parse an absolute URL (without a base), and if that fails assume a filename and convert that.The question is, how do we want the command line to behave? On my machine, Chromium interpret relative filenames as such, but Firefox seems to be trying to guess an URL out of it with the first component as a domain name, appending
.comand prependingwww.when resolving fails.jdm commentedon Sep 16, 2014
Yes, I got this by autocompleting and running
target/servodirectly instead of via mach.Try to parse command line argument as file names
Try to parse command line argument as file names
Try to parse command line argument as file names