Bug 101595

Summary: Regression(r107593) Crash in ContextMenuController::addInspectElementItem()
Product: WebKit Reporter: Allan Sandfeld Jensen <allan.jensen>
Component: WebKit QtAssignee: Allan Sandfeld Jensen <allan.jensen>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, hausmann, jturcotte, timothy, webkit.review.bot
Priority: P2    
Version: 420+   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 101599    
Attachments:
Description Flags
Patch hausmann: review+, webkit.review.bot: commit-queue-

Description Allan Sandfeld Jensen 2012-11-08 06:00:03 PST
ContextMenuController::addInspectElementItem will if the contextMenu has been cleared first try to access it anyway causing a nullpoint access.

This crashes tst_qwebinspector
Comment 1 Allan Sandfeld Jensen 2012-11-08 06:02:28 PST
Created attachment 173026 [details]
Patch
Comment 2 Jocelyn Turcotte 2012-11-08 07:42:58 PST
*** Bug 101574 has been marked as a duplicate of this bug. ***
Comment 3 Jocelyn Turcotte 2012-11-08 07:44:57 PST
I have most of the WebKit1 tests fixed except 1 WebGL test and 1 QWebElement test still failing. I'm in the process of uploading the work so please tell me if you want to pick anything to avoid duplicate efforts.
Comment 4 Allan Sandfeld Jensen 2012-11-08 08:09:55 PST
(In reply to comment #3)
> I have most of the WebKit1 tests fixed except 1 WebGL test and 1 QWebElement test still failing. I'm in the process of uploading the work so please tell me if you want to pick anything to avoid duplicate efforts.

Sorry about that, great minds think alike, I guess. I was actually coming from this because I was fixing the API tests failing in QtWebKit2.3, I will now stick to those that only fail there then.
Comment 5 Jocelyn Turcotte 2012-11-08 08:16:47 PST
(In reply to comment #4)
> (In reply to comment #3)
> > I have most of the WebKit1 tests fixed except 1 WebGL test and 1 QWebElement test still failing. I'm in the process of uploading the work so please tell me if you want to pick anything to avoid duplicate efforts.
> 
> Sorry about that, great minds think alike, I guess. I was actually coming from this because I was fixing the API tests failing in QtWebKit2.3, I will now stick to those that only fail there then.

Most of them probably apply to trunk as well. If you can wait 2-3 days until you can see the rest of what I have it would be nice. Those tests have been failing for more than 1 year after all.
Comment 6 Allan Sandfeld Jensen 2012-11-08 08:33:40 PST
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > I have most of the WebKit1 tests fixed except 1 WebGL test and 1 QWebElement test still failing. I'm in the process of uploading the work so please tell me if you want to pick anything to avoid duplicate efforts.
> > 
> > Sorry about that, great minds think alike, I guess. I was actually coming from this because I was fixing the API tests failing in QtWebKit2.3, I will now stick to those that only fail there then.
> 
> Most of them probably apply to trunk as well. If you can wait 2-3 days until you can see the rest of what I have it would be nice. Those tests have been failing for more than 1 year after all.

Will do.
Comment 7 WebKit Review Bot 2012-11-08 10:04:52 PST
Comment on attachment 173026 [details]
Patch

Rejecting attachment 173026 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
re/ChangeLog
CONFLICT (content): Merge conflict in Source/WebCore/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 Unreviewed chromium mac rebaseline for r101497.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 154.

Full output: http://queues.webkit.org/results/14770266
Comment 8 Allan Sandfeld Jensen 2012-11-09 03:29:02 PST
Committed r134044: <http://trac.webkit.org/changeset/134044>