Closed Bug 916604 Opened 11 years ago Closed 7 years ago

DocShell assertion when testing app redirects

Categories

(DevTools Graveyard :: WebIDE, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ochameau, Unassigned)

References

Details

(Whiteboard: [btpp-backlog])

Attachments

(1 file, 1 obsolete file)

I've been writing a mochitest to cover app redirect for multiple weeks now, and this test used to pass but has started triggering an assertion recently:
mLoadType != LOAD_ERROR_PAGE && mLoadType != LOAD_BYPASS_HISTORY (Do not add error or bypass pages to global history)
http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#11461

When creating an mozapp iframe whose app has a special redirects rule in its manifest, it triggers this exception when loading a document that is redirected and whose redirection is catched by the app redirect rule and is supposed to be redirected to a local app document.

See test script in attachment.
Fabrice, you wrote the original code in docshell.cpp for app redirects, does that assertion make any sense to you? Otherwise, could we find some docshell/history experts to help us figure this out?
Also, do we have any unit test for app redirects? If not, it may have been broken recently...
Flags: needinfo?(fabrice)
I can reproduce the failure with a test app here also, and will start bisecting. I'm gonna check with QA also since the facebook import relies on this and that was not flagged as broken recently.
Flags: needinfo?(fabrice)
Fabrice mentions this affects fb import, which means this isn't a devtools specific bug - it's a core bug.
blocking-b2g: --- → koi?
Component: Developer Tools: App Manager → DOM
Product: Firefox → Core
Version: unspecified → Trunk
I checked with tchung and on my own build, but FB import is not affected. Still investigating though.
And I can't reproduce either with another oauth api (dropbox).
(In reply to Fabrice Desré [:fabrice] from comment #3)
> I can reproduce the failure with a test app here also, and will start
> bisecting. I'm gonna check with QA also since the facebook import relies on
> this and that was not flagged as broken recently.

Can you attach the test app? I can get someone to do a regression window here if I can define clear STR with the test app to do the regression window against.
(In reply to Jason Smith [:jsmith] from comment #7)
> (In reply to Fabrice Desré [:fabrice] from comment #3)
> > I can reproduce the failure with a test app here also, and will start
> > bisecting. I'm gonna check with QA also since the facebook import relies on
> > this and that was not flagged as broken recently.
> 
> Can you attach the test app? I can get someone to do a regression window
> here if I can define clear STR with the test app to do the regression window
> against.

That was actually a network error on the service side. I can't repro for now, so I'll check with ochameau if we can bisect the test failure instead.
blocking-b2g: koi? → ---
Component: DOM → Developer Tools: App Manager
Product: Core → Firefox
I reclassified this bug and removed koi? as it looks like a test specific issue that isn't landed yet because of this assertion. So that this bug doesn't seem that serious at the end. The redirects features has been confirmed to work fine.

I'll try to dig into this assertion when I get some free cycle.
Priority: -- → P2
Priority: P2 → P1
Is there still an issue here or can we close this out?
Flags: needinfo?(poirot.alex)
Rebased, with a new try, to see if the assertion still happens.
Attachment #805049 - Attachment is obsolete: true
There is no more assertion with this test, but it doesn't work anymore and I don't know why.
It would still be great to cover this feature with a test... especially since the test already somewhat exists.
Flags: needinfo?(poirot.alex)
I'll leave it to you to mutate the bug accordingly in that respect, thanks for the update.
Priority: P1 → P3
Whiteboard: [btpp-backlog]
Apps are gone now.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: