Shouldn't start resource loads before a new view is created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Oxide |
Invalid
|
High
|
Unassigned |
Bug Description
In the standard window.open() case, Chromium creates a WebContents for us, and then we dispatch WebVIew.
Reproducer:
In QML:
import QtQuick 2.0
import com.canonical.Oxide 1.0
WebView {
url: "http://
onNewViewRequ
console.
}
focus: true
width: 200
height: 200
}
test.html:
<html>
<body>
<button onclick=
</body>
</html>
Run the QML app whilst monitoring Apache's access.log, and then click on the button. You see this:
127.0.0.1 - - [01/Apr/
127.0.0.1 - - [01/Apr/
The second request shouldn't happen
Changed in oxide: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in oxide: | |
status: | Triaged → Invalid |
Not really sure, but i think this is part of the HTML5 prefetch/pre-render feature