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)
Tracking
(firefox16 verified)
VERIFIED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox16 | --- | verified |
People
(Reporter: bnicholson, Assigned: bnicholson)
References
Details
Attachments
(1 file)
|
2.46 KB,
patch
|
mbrubeck
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•14 years ago
|
||
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)
| Assignee | ||
Updated•14 years ago
|
Summary: Pressing back during reader mode parse will change page title to article's title → DOM events can be triggered for wrong document
Comment 2•14 years ago
|
||
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+
| Assignee | ||
Comment 3•14 years ago
|
||
| Assignee | ||
Comment 4•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 5•14 years ago
|
||
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?
| Assignee | ||
Updated•14 years ago
|
status-firefox16:
--- → affected
Updated•14 years ago
|
Attachment #645895 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
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
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•