Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Set frameName for WebPage's resource callbacks. #11373

Merged
1 commit merged into from
Jan 8, 2018

Conversation

kanzure
Copy link
Contributor

@kanzure kanzure commented Jun 3, 2013

Add frameName to the hash passed to the following callbacks:

  • onResourceRequested
  • onResourceReceived (both "start" and "end")
  • onResourceError

Add frameName to the hash passed to the following callbacks:

    * onResourceRequested
    * onResourceReceived (both "start" and "end")
    * onResourceError
@ariya
Copy link
Owner

ariya commented Jun 3, 2013

It's probably a good idea to create a fresh issue to serve as an umbrella for all frameName-related tweaks.

@kanzure
Copy link
Contributor Author

kanzure commented Jun 3, 2013

@ariya, acknowledged. See #11374.

@ariya
Copy link
Owner

ariya commented Jun 9, 2013

It's likely safer to guard frame against possible null.

Also, some minimalistic testing in the spec will be good.

@ariya
Copy link
Owner

ariya commented Jun 10, 2013

Just to be perfectly clear, we've been hit by random crashes in the past because null QWebFrame. Thus, it's better to add an extra safeguard there.

@@ -251,6 +252,9 @@ QNetworkReply *NetworkAccessManager::createRequest(Operation op, const QNetworkR
if (op == QNetworkAccessManager::PostOperation) data["postData"] = postData.data();
data["time"] = QDateTime::currentDateTime();

QWebFrame *frame = qobject_cast<QWebFrame *>(request.originatingObject());
data["frameName"] = frame->frameName();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important to check for NULL. Or it's going to get ugly here.

Same for the similar code below.

@detro
Copy link
Collaborator

detro commented Jun 23, 2013

I think this needs to be merged with this: #11371

@vitallium vitallium force-pushed the master branch 2 times, most recently from b3cd914 to c4df640 Compare June 27, 2015 08:43
@vitallium vitallium force-pushed the master branch 2 times, most recently from 573e969 to b483dd6 Compare October 6, 2015 20:31
@vitallium vitallium force-pushed the master branch 2 times, most recently from 1842ba8 to 842715b Compare March 15, 2016 17:40
@vitallium vitallium force-pushed the master branch 2 times, most recently from e024f31 to 5d99f2a Compare May 19, 2016 20:52
@ghost ghost merged commit 09d36d8 into ariya:master Jan 8, 2018
ghost pushed a commit that referenced this pull request Jan 8, 2018
ghost pushed a commit that referenced this pull request Jan 8, 2018
@rumblefrog rumblefrog mentioned this pull request Mar 4, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants