Closed Bug 777510 Opened 14 years ago Closed 14 years ago

DOM events can be triggered for wrong document

Categories

(Firefox for Android Graveyard :: Reader View, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox16 verified)

VERIFIED FIXED
Tracking Status
firefox16 --- verified

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

STR: 1) Search "united states" in the AwesomeScreen 2) Click the first Google result 3) Once the reader icon appears in the URL bar, click it 4) Once "Loading..." appears, click back twice (to return to the Google results page) 5) Wait until the Readability parsing has finished Expected result: Nothing happens Actual result: When the Readability parse completes, the title for the Google results page is changed to "United States - Wikipedia...". This bug is a side effect of making Readability async (bug 775346). I assume this is happening because of this callback: http://mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/aboutReader.js#253.
If some page (in this case, about:reader) fires document events, we should make sure the document is the one being shown.
Attachment #645895 - Flags: review?(mbrubeck)
Summary: Pressing back during reader mode parse will change page title to article's title → DOM events can be triggered for wrong document
Comment on attachment 645895 [details] [diff] [review] Make sure DOM events match current document The change looks fine, though I'm a little surprised that the DOMTitleChanged event is still dispatched to the browser after navigating away from the document.
Attachment #645895 - Flags: review?(mbrubeck) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment on attachment 645895 [details] [diff] [review] Make sure DOM events match current document [Approval Request Comment] Bug caused by (feature/regressing bug #): revealed by bug 775346 User impact if declined: wrong title can be shown for page after reader mode icon is clicked Testing completed (on m-c, etc.): m-c Risk to taking this patch (and alternatives if risky): low risk String or UUID changes made by this patch: none
Attachment #645895 - Flags: approval-mozilla-aurora?
Attachment #645895 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified fix on: Firefox Mobile 16 beta 2, Nightly 18.0a1 2012-09-04 and Aurora 17.0a2 2012-09-05 on Samsung Galaxy Tab 2 7.0 (Android 4.0.4)
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: